![]() ![]() The %options are passed to that back-end. The $type is one of the back-end sender implementations, as described in the DESCRIPTION chapter of this manual page. METHODS Constructors Mail::Mailer-> new($type, %options) The default mailer will be the first one found. Mail::Mailer will search for executables in the above order. Used for debugging, this displays the data to the file named in $Mail::Mailer::testfile::config which defaults to a file named mailer.testfile. Use qmail's qmail-inject program to deliver the mail. $mailer = Mail::Mailer->new('smtps', Server => $server) qmail You have to install Authen::SASL as well. Use the smtp over ssl protocol via Net::SMTP::SSL to deliver the mail. This option is deprecated when you have libnet 1.28 (2014) and above. To make this work, you have to install the Authen::SASL distribution yourself: it is not automatically installed. You may also use the Auth => option for SASL authentication. You need libnet version 1.28 (2014) for this to work. You may also use the StartTLS => 1 options to upgrade the connection with STARTTLS. The Debug options enables debugging output from Net::SMTP. The smtp mailer does not handle Cc and Bcc lines, neither their Resent-* fellows. The server to use can be specified in with $mailer = Mail::Mailer->new('smtp', Server => $server) ![]() Use the smtp protocol via Net::SMTP to deliver the mail. Use the sendmail program to deliver the mail. As TYPE argument to new(), you can specify any of sendmail Sends mail using any of the built-in methods. Or die "couldn't send whole message: $!\n" DESCRIPTION $mailer = Mail::Mailer->new($type, $mailer $body Use Mail::Mailer qw(mail) # specifies default mailer Is an IO::Handle SYNOPSIS use Mail::Mailer Mail::Mailer - send simple emails INHERITANCE Mail::Mailer ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |