Server IP : 103.119.228.120 / Your IP : 13.59.87.145 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/local/ssl/local/ssl/local/ssl/local/share/man/man3/ |
Upload File : |
.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28) .\" .\" 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 .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . 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 turned on, 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 .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Mail::Internet 3" .TH Mail::Internet 3 "2016-05-19" "perl v5.16.3" "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 .SH "NAME" Mail::Internet \- manipulate email messages .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& use Mail::Internet; \& my $msg = Mail::Internet\->new(\e*STDIN); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This package implements reading, creating, manipulating, and writing email messages. Sometimes, the implementation tries to be too smart, but in the general case it works as expected. .PP If you start writing a \fBnew application\fR, you should use the Mail::Box distribution, which has more features and handles messages much better according to the RFCs. See <http://perl.overmeer.net/mailbox/>. You may also chose MIME::Entity, to get at least some multipart support in your application. .SH "METHODS" .IX Header "METHODS" .SS "Constructors" .IX Subsection "Constructors" .ie n .IP "$obj\->\fBdup\fR()" 4 .el .IP "\f(CW$obj\fR\->\fBdup\fR()" 4 .IX Item "$obj->dup()" Duplicate the message as a whole. Both header and body will be deep-copied: a new Mail::Internet object is returned. .ie n .IP "$obj\->\fBextract\fR(ARRAY-of-LINES)" 4 .el .IP "\f(CW$obj\fR\->\fBextract\fR(ARRAY-of-LINES)" 4 .IX Item "$obj->extract(ARRAY-of-LINES)" Extract header and body from an \s-1ARRAY\s0 of message lines. Requires an object already created with \fInew()\fR, which contents will get overwritten. .ie n .IP "$obj\->\fBnew\fR( [\s-1ARG\s0], [\s-1OPTIONS\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBnew\fR( [\s-1ARG\s0], [\s-1OPTIONS\s0] )" 4 .IX Item "$obj->new( [ARG], [OPTIONS] )" .PD 0 .IP "Mail::Internet\->\fBnew\fR( [\s-1ARG\s0], [\s-1OPTIONS\s0] )" 4 .IX Item "Mail::Internet->new( [ARG], [OPTIONS] )" .PD \&\s-1ARG\s0 is optional and may be either a file descriptor (reference to a \s-1GLOB\s0) or a reference to an array. If given the new object will be initialized with headers and body either from the array of read from the file descriptor. .Sp The \fIMail::Header::new()\fR \s-1OPTIONS \s0\f(CW\*(C`Modify\*(C'\fR, \f(CW\*(C`MailFrom\*(C'\fR and \f(CW\*(C`FoldLength\*(C'\fR may also be given. .Sp .Vb 3 \& \-Option\-\-Default \& Body [] \& Header undef .Ve .RS 4 .IP "Body => ARRAY-of-LINES" 2 .IX Item "Body => ARRAY-of-LINES" The value of this option should be a reference to an array which contains the lines for the body of the message. Each line should be terminated with \&\f(CW\*(C`\en\*(C'\fR (\s-1LF\s0). If Body is given then \f(CW\*(C`Mail::Internet\*(C'\fR will not attempt to read the body from \f(CW\*(C`ARG\*(C'\fR (even if it is specified). .IP "Header => Mail::Header" 2 .IX Item "Header => Mail::Header" The value of this option should be a Mail::Header object. If given then \&\f(CW\*(C`Mail::Internet\*(C'\fR will not attempt to read a mail header from \f(CW\*(C`ARG\*(C'\fR, if it was specified. .RE .RS 4 .RE .ie n .IP "$obj\->\fBread\fR(\s-1FILEHANDLE\s0)" 4 .el .IP "\f(CW$obj\fR\->\fBread\fR(\s-1FILEHANDLE\s0)" 4 .IX Item "$obj->read(FILEHANDLE)" Read a message from the \s-1FILEHANDLE\s0 into an already existing message object. Better use \fInew()\fR with the \s-1FILEHANDLE\s0 as first argument. .SS "Accessors" .IX Subsection "Accessors" .ie n .IP "$obj\->\fBbody\fR( [\s-1BODY\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBbody\fR( [\s-1BODY\s0] )" 4 .IX Item "$obj->body( [BODY] )" Returns the body of the message. This is a reference to an array. Each entry in the array represents a single line in the message. .Sp If \fI\s-1BODY\s0\fR is given, it can be a reference to an array or an array, then the body will be replaced. If a reference is passed, it is used directly and not copied, so any subsequent changes to the array will change the contents of the body. .ie n .IP "$obj\->\fBhead\fR()" 4 .el .IP "\f(CW$obj\fR\->\fBhead\fR()" 4 .IX Item "$obj->head()" Returns the \f(CW\*(C`Mail::Header\*(C'\fR object which holds the headers for the current message .SS "Processing the message as a whole" .IX Subsection "Processing the message as a whole" .ie n .IP "$obj\->\fBas_mbox_string\fR( [\s-1ALREADY_ESCAPED\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBas_mbox_string\fR( [\s-1ALREADY_ESCAPED\s0] )" 4 .IX Item "$obj->as_mbox_string( [ALREADY_ESCAPED] )" Returns the message as a string in mbox format. \f(CW\*(C`ALREADY_ESCAPED\*(C'\fR, if given and true, indicates that \fIescape_from()\fR has already been called on this object. .ie n .IP "$obj\->\fBas_string\fR()" 4 .el .IP "\f(CW$obj\fR\->\fBas_string\fR()" 4 .IX Item "$obj->as_string()" Returns the message as a single string. .ie n .IP "$obj\->\fBprint\fR( [\s-1FILEHANDLE\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBprint\fR( [\s-1FILEHANDLE\s0] )" 4 .IX Item "$obj->print( [FILEHANDLE] )" Print the header, body or whole message to file descriptor \fI\s-1FILEHANDLE\s0\fR. \&\fI\f(CI$fd\fI\fR should be a reference to a \s-1GLOB.\s0 If \fI\s-1FILEHANDLE\s0\fR is not given the output will be sent to \s-1STDOUT.\s0 .Sp example: .Sp .Vb 1 \& $mail\->print( \e*STDOUT ); # Print message to STDOUT .Ve .ie n .IP "$obj\->\fBprint_body\fR( [\s-1FILEHANDLE\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBprint_body\fR( [\s-1FILEHANDLE\s0] )" 4 .IX Item "$obj->print_body( [FILEHANDLE] )" Print only the body to the \s-1FILEHANDLE \s0(default \s-1STDOUT\s0). .ie n .IP "$obj\->\fBprint_header\fR( [\s-1FILEHANDLE\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBprint_header\fR( [\s-1FILEHANDLE\s0] )" 4 .IX Item "$obj->print_header( [FILEHANDLE] )" Print only the header to the \s-1FILEHANDLE \s0(default \s-1STDOUT\s0). .SS "Processing the header" .IX Subsection "Processing the header" Most of these methods are simply wrappers around methods provided by Mail::Header. .ie n .IP "$obj\->\fBadd\fR(PAIRS-of-FIELD)" 4 .el .IP "\f(CW$obj\fR\->\fBadd\fR(PAIRS-of-FIELD)" 4 .IX Item "$obj->add(PAIRS-of-FIELD)" The \s-1PAIRS\s0 are field-name and field-content. For each \s-1PAIR, \&\s0\fIMail::Header::add()\fR is called. All fields are added after existing fields. The last addition is returned. .ie n .IP "$obj\->\fBcombine\fR( \s-1TAG,\s0 [\s-1WITH\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBcombine\fR( \s-1TAG,\s0 [\s-1WITH\s0] )" 4 .IX Item "$obj->combine( TAG, [WITH] )" See \fIMail::Header::combine()\fR. .ie n .IP "$obj\->\fBdelete\fR( \s-1TAG,\s0 [TAGs] )" 4 .el .IP "\f(CW$obj\fR\->\fBdelete\fR( \s-1TAG,\s0 [TAGs] )" 4 .IX Item "$obj->delete( TAG, [TAGs] )" Delete all fields with the name \s-1TAG. \s0\fIMail::Header::delete()\fR is doing the work. .ie n .IP "$obj\->\fBfold\fR( [\s-1LENGTH\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBfold\fR( [\s-1LENGTH\s0] )" 4 .IX Item "$obj->fold( [LENGTH] )" See \fIMail::Header::fold()\fR. .ie n .IP "$obj\->\fBfold_length\fR( [\s-1TAG\s0], [\s-1LENGTH\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBfold_length\fR( [\s-1TAG\s0], [\s-1LENGTH\s0] )" 4 .IX Item "$obj->fold_length( [TAG], [LENGTH] )" See \fIMail::Header::fold_length()\fR. .ie n .IP "$obj\->\fBget\fR( \s-1TAG,\s0 [TAGs] )" 4 .el .IP "\f(CW$obj\fR\->\fBget\fR( \s-1TAG,\s0 [TAGs] )" 4 .IX Item "$obj->get( TAG, [TAGs] )" In \s-1LIST\s0 context, all fields with the name \s-1TAG\s0 are returned. In \s-1SCALAR\s0 context, only the first field which matches the earliest \s-1TAG\s0 is returned. \&\fIMail::Header::get()\fR is called to collect the data. .ie n .IP "$obj\->\fBheader\fR( [ARRAY\-of\-LINES] )" 4 .el .IP "\f(CW$obj\fR\->\fBheader\fR( [ARRAY\-of\-LINES] )" 4 .IX Item "$obj->header( [ARRAY-of-LINES] )" See \fIMail::Header::header()\fR. .ie n .IP "$obj\->\fBreplace\fR(PAIRS-of-FIELD)" 4 .el .IP "\f(CW$obj\fR\->\fBreplace\fR(PAIRS-of-FIELD)" 4 .IX Item "$obj->replace(PAIRS-of-FIELD)" The \s-1PAIRS\s0 are field-name and field-content. For each \s-1PAIR, \&\s0\fIMail::Header::replace()\fR is called with \s-1INDEX 0.\s0 If a \s-1FIELD\s0 is already in the header, it will be removed first. Do not specified the same field-name twice. .SS "Processing the body" .IX Subsection "Processing the body" .ie n .IP "$obj\->\fBremove_sig\fR( [\s-1NLINES\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBremove_sig\fR( [\s-1NLINES\s0] )" 4 .IX Item "$obj->remove_sig( [NLINES] )" Attempts to remove a users signature from the body of a message. It does this by looking for a line equal to \f(CW\*(Aq\-\- \*(Aq\fR within the last \f(CW\*(C`NLINES\*(C'\fR of the message. If found then that line and all lines after it will be removed. If \&\f(CW\*(C`NLINES\*(C'\fR is not given a default value of 10 will be used. This would be of most use in auto-reply scripts. .ie n .IP "$obj\->\fBsign\fR(\s-1OPTIONS\s0)" 4 .el .IP "\f(CW$obj\fR\->\fBsign\fR(\s-1OPTIONS\s0)" 4 .IX Item "$obj->sign(OPTIONS)" Add your signature to the body. \fIremove_sig()\fR will strip existing signatures first. .Sp .Vb 3 \& \-Option \-\-Default \& File undef \& Signature [] .Ve .RS 4 .IP "File => \s-1FILEHANDLE\s0" 2 .IX Item "File => FILEHANDLE" Take from the \s-1FILEHANDLE\s0 all lines starting from the first \f(CW\*(C`\-\-\*(C'\fR. .IP "Signature => STRING|ARRAY\-of\-LINES" 2 .IX Item "Signature => STRING|ARRAY-of-LINES" .RE .RS 4 .RE .PD 0 .ie n .IP "$obj\->\fBtidy_body\fR()" 4 .el .IP "\f(CW$obj\fR\->\fBtidy_body\fR()" 4 .IX Item "$obj->tidy_body()" .PD Removes all leading and trailing lines from the body that only contain white spaces. .SS "High-level functionality" .IX Subsection "High-level functionality" .ie n .IP "$obj\->\fBescape_from\fR()" 4 .el .IP "\f(CW$obj\fR\->\fBescape_from\fR()" 4 .IX Item "$obj->escape_from()" It can cause problems with some applications if a message contains a line starting with \f(CW\`From \*(Aq\fR, in particular when attempting to split a folder. This method inserts a leading \f(CW\*(C`\`\*(C'\fR'> on any line that matches the regular expression \f(CW\*(C`/^\*(C'\fR*From/> .ie n .IP "$obj\->\fBnntppost\fR( [\s-1OPTIONS\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBnntppost\fR( [\s-1OPTIONS\s0] )" 4 .IX Item "$obj->nntppost( [OPTIONS] )" Post an article via \s-1NNTP. \s0 Requires Net::NNTP to be installed. .Sp .Vb 4 \& \-Option\-\-Default \& Debug <false> \& Host <required> \& Port 119 .Ve .RS 4 .IP "Debug => \s-1BOOLEAN\s0" 2 .IX Item "Debug => BOOLEAN" Debug value to pass to Net::NNTP, see Net::NNTP .IP "Host => HOSTNAME|Net::NNTP object" 2 .IX Item "Host => HOSTNAME|Net::NNTP object" Name of \s-1NNTP\s0 server to connect to, or a Net::NNTP object to use. .IP "Port => \s-1INTEGER\s0" 2 .IX Item "Port => INTEGER" Port number to connect to on remote host .RE .RS 4 .RE .ie n .IP "$obj\->\fBreply\fR(\s-1OPTIONS\s0)" 4 .el .IP "\f(CW$obj\fR\->\fBreply\fR(\s-1OPTIONS\s0)" 4 .IX Item "$obj->reply(OPTIONS)" Create a new object with header initialised for a reply to the current object. And the body will be a copy of the current message indented. .Sp The \f(CW\*(C`.mailhdr\*(C'\fR file in your home directory (if exists) will be read first, to provide defaults. .Sp .Vb 5 \& \-Option \-\-Default \& Exclude [] \& Indent \*(Aq>\*(Aq \& Keep [] \& ReplyAll false .Ve .RS 4 .IP "Exclude => ARRAY-of-FIELDS" 2 .IX Item "Exclude => ARRAY-of-FIELDS" Remove the listed \s-1FIELDS\s0 from the produced message. .IP "Indent => \s-1STRING\s0" 2 .IX Item "Indent => STRING" Use as indentation string. The string may contain \f(CW\*(C`%%\*(C'\fR to get a single \f(CW\*(C`%\*(C'\fR, \&\f(CW%f\fR to get the first from name, \f(CW%F\fR is the first character of \f(CW%f\fR, \&\f(CW%l\fR is the last name, \f(CW%L\fR its first character, \f(CW%n\fR the whole from string, and \f(CW%I\fR the first character of each of the names in the from string. .IP "Keep => ARRAY-of-FIELDS" 2 .IX Item "Keep => ARRAY-of-FIELDS" Copy the listed \s-1FIELDS\s0 from the original message. .IP "ReplyAll => \s-1BOOLEAN\s0" 2 .IX Item "ReplyAll => BOOLEAN" Automatically include all To and Cc addresses of the original mail, excluding those mentioned in the Bcc list. .RE .RS 4 .RE .ie n .IP "$obj\->\fBsend\fR( [\s-1TYPE,\s0 [\s-1ARGS...\s0]] )" 4 .el .IP "\f(CW$obj\fR\->\fBsend\fR( [\s-1TYPE,\s0 [\s-1ARGS...\s0]] )" 4 .IX Item "$obj->send( [TYPE, [ARGS...]] )" Send a Mail::Internet message using Mail::Mailer. \s-1TYPE\s0 and \s-1ARGS\s0 are passed on to \fIMail::Mailer::new()\fR. .ie n .IP "$obj\->\fBsmtpsend\fR( [\s-1OPTIONS\s0] )" 4 .el .IP "\f(CW$obj\fR\->\fBsmtpsend\fR( [\s-1OPTIONS\s0] )" 4 .IX Item "$obj->smtpsend( [OPTIONS] )" Send a Mail::Internet message using direct \s-1SMTP. \s0 to the given \&\s-1ADDRESSES,\s0 each can be either a string or a reference to a list of email addresses. If none of \f(CW\*(C`To\*(C'\fR, <Cc> or \f(CW\*(C`Bcc\*(C'\fR are given then the addresses are extracted from the message being sent. .Sp The return value will be a list of email addresses that the message was sent to. If the message was not sent the list will be empty. .Sp Requires Net::SMTP and Net::Domain to be installed. .Sp .Vb 9 \& \-Option \-\-Default \& Bcc undef \& Cc undef \& Debug <false> \& Hello localhost.localdomain \& Host $ENV{SMTPHOSTS} \& MailFrom Mail::Util::mailaddress() \& Port 25 \& To undef .Ve .RS 4 .IP "Bcc => \s-1ADDRESSES\s0" 2 .IX Item "Bcc => ADDRESSES" .PD 0 .IP "Cc => \s-1ADDRESSES\s0" 2 .IX Item "Cc => ADDRESSES" .IP "Debug => \s-1BOOLEAN\s0" 2 .IX Item "Debug => BOOLEAN" .PD Debug value to pass to Net::SMPT, see <Net::SMTP> .IP "Hello => \s-1STRING\s0" 2 .IX Item "Hello => STRING" Send a \s-1HELO \s0(or \s-1EHLO\s0) command to the server with the given name. .IP "Host => \s-1HOSTNAME\s0" 2 .IX Item "Host => HOSTNAME" Name of the \s-1SMTP\s0 server to connect to, or a Net::SMTP object to use .Sp If \f(CW\*(C`Host\*(C'\fR is not given then the \s-1SMTP\s0 host is found by attempting connections first to hosts specified in \f(CW$ENV{SMTPHOSTS}\fR, a colon separated list, then \f(CW\*(C`mailhost\*(C'\fR and \f(CW\*(C`localhost\*(C'\fR. .IP "MailFrom => \s-1ADDRESS\s0" 2 .IX Item "MailFrom => ADDRESS" The e\-mail address which is used as sender. By default, \&\fIMail::Util::mailaddress()\fR provides the address of the sender. .IP "Port => \s-1INTEGER\s0" 2 .IX Item "Port => INTEGER" Port number to connect to on remote host .IP "To => \s-1ADDRESSES\s0" 2 .IX Item "To => ADDRESSES" .RE .RS 4 .RE .PD 0 .ie n .IP "$obj\->\fBunescape_from\fR(())" 4 .el .IP "\f(CW$obj\fR\->\fBunescape_from\fR(())" 4 .IX Item "$obj->unescape_from(())" .PD Remove the escaping added by \fIescape_from()\fR. .SH "SEE ALSO" .IX Header "SEE ALSO" This module is part of the MailTools distribution, \&\fIhttp://perl.overmeer.net/mailtools/\fR. .SH "AUTHORS" .IX Header "AUTHORS" The MailTools bundle was developed by Graham Barr. Later, Mark Overmeer took over maintenance without commitment to further development. .PP Mail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by Peter Orbaek <poe@cit.dk>. Mail::Mailer and Mail::Send by Tim Bunce <Tim.Bunce@ig.co.uk>. For other contributors see ChangeLog. .SH "LICENSE" .IX Header "LICENSE" Copyrights 1995\-2000 Graham Barr <gbarr@pobox.com> and 2001\-2007 Mark Overmeer <perl@overmeer.net>. .PP This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See \fIhttp://www.perl.com/perl/misc/Artistic.html\fR