.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.48) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "Mail::Util 3" .TH Mail::Util 3 2026-10-24 "perl v5.44.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh Mail::Util \- mail utility functions .PP .Vb 1 \& use Mail::Util qw( ... ); .Ve .PP This package provides several mail related utility functions. Any function required must by explicitly listed on the use line to be exported into the calling package. .PP WARNING: This method does not quote lines which accidentally also start with the message separator \f(CW\*(C`From\*(C'\fR, so this implementation can be considered broken. See Mail::Box::Mbox .IP \(bu 4 Look for the MAILDOMAIN environment variable, which can be set from outside the program. This is by far the best way to configure the domain. .IP \(bu 4 Look for a sendmail.cf file and extract DH parameter .IP \(bu 4 Look for a smail config file and usr the first host defined in hostname(s) .IP \(bu 4 Try an SMTP connect (if Net::SMTP exists) first to mailhost then localhost .IP \(bu 4 Use value from Net::Domain::domainname (if Net::Domain exists) .PP WARNING: On modern machines, there is only one good way to provide information to this method: the first; always explicitly configure the MAILDOMAIN. .PP .Vb 3 \& # everywhere else \& use Mail::Util \*(Aqmaildomain\*(Aq; \& print maildomain; .Ve .PP WARNING: When not supplied via the environment variable, looks at various configuration files and other environmental data. Although this seems to be smart behavior, this is not predictable enough (IMHO) to be used. Please set the MAILADDRESS explicitly, and do not trust on the "automatic detection", even when that produces a correct address (on the moment) .PP .Vb 3 \& # everywhere else \& use Mail::Util \*(Aqmailaddress\*(Aq; \& print mailaddress; \& \& # since v2.10 \& mailaddress "me@example.com"; .Ve .SH "POD ERRORS" .IX Header "POD ERRORS" Hey! \fBThe above document had some coding errors, which are explained below:\fR .IP "Around line 19:" 4 .IX Item "Around line 19:" Unknown directive: =chapter .IP "Around line 23:" 4 .IX Item "Around line 23:" Unknown directive: =chapter .IP "Around line 27:" 4 .IX Item "Around line 27:" Unknown directive: =chapter .IP "Around line 33:" 4 .IX Item "Around line 33:" Unknown directive: =chapter .IP "Around line 35:" 4 .IX Item "Around line 35:" Unknown directive: =function .IP "Around line 39:" 4 .IX Item "Around line 39:" Deleting unknown formatting code M<> .IP "Around line 75:" 4 .IX Item "Around line 75:" Unknown directive: =function .IP "Around line 97:" 4 .IX Item "Around line 97:" Unknown directive: =example .IP "Around line 174:" 4 .IX Item "Around line 174:" Unknown directive: =function .IP "Around line 187:" 4 .IX Item "Around line 187:" Unknown directive: =example