Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

email::sender::transport::smtp::tls(3pm) [debian man page]

Email::Sender::Transport::SMTP::TLS(3pm)		User Contributed Perl Documentation		  Email::Sender::Transport::SMTP::TLS(3pm)

NAME
Email::Sender::Transport::SMTP::TLS - Email::Sender with Net::SMTP::TLS (Eg. Gmail) VERSION
version 0.10 SYNOPSIS
use Email::Sender::Simple qw(sendmail); use Email::Sender::Transport::SMTP::TLS; use Try::Tiny; my $transport = Email::Sender::Transport::SMTP::TLS->new( host => 'smtp.gmail.com', port => 587, username => 'username@gmail.com', password => 'password', helo => 'fayland.org', ); # my $message = Mail::Message->read($rfc822) # || Email::Simple->new($rfc822) # || Mail::Internet->new([split / /, $rfc822]) # || ... # || $rfc822; # read L<Email::Abstract> for more details use Email::Simple::Creator; # or other Email:: my $message = Email::Simple->create( header => [ From => 'username@gmail.com', To => 'to@mail.com', Subject => 'Subject title', ], body => 'Content.', ); try { sendmail($message, { transport => $transport }); } catch { die "Error sending email: $_"; }; DESCRIPTION
Email::Sender replaces the old and sometimes problematic Email::Send library, while this module replaces the Email::Send::SMTP::TLS. It is still alpha, but it works. use it at your own risk! ATTRIBUTES The following attributes may be passed to the constructor: host - the name of the host to connect to; defaults to localhost port - port to connect to; defaults to 587 username - the username to use for auth; required password - the password to use for auth; required helo - what to say when saying HELO; no default allow_partial_success - if true, will send data even if some recipients were rejected PARTIAL SUCCESS If "allow_partial_success" was set when creating the transport, the transport may return Email::Sender::Success::Partial objects. Consult that module's documentation. AUTHOR
Fayland Lam <fayland@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Fayland Lam. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-25 Email::Sender::Transport::SMTP::TLS(3pm)

Check Out this Related Man Page

Email::Folder(3pm)					User Contributed Perl Documentation					Email::Folder(3pm)

NAME
Email::Folder - read all the messages from a folder as Email::Simple objects. SYNOPSIS
use Email::Folder; my $folder = Email::Folder->new("some_file"); print join " ", map { $_->header("Subject") } $folder->messages; METHODS
new($folder, %options) Takes the name of a folder, and a hash of options If a 'reader' option is passed in then that is used as the class to read in messages with. messages Returns a list containing all of the messages in the folder. Can only be called once as it drains the iterator. next_message acts as an iterator. reads the next message from a folder. returns false at the end of the folder bless_message($message) Takes a raw RFC822 message and blesses it into a class. By default this is an Email::Simple object but can easily be overriden in a subclass. For example, this simple subclass just returns the raw rfc822 messages, and exposes the speed of the parser. package Email::RawFolder; use base 'Email::Folder'; sub bless_message { $_[1] }; 1; reader read-only accessor to the underlying Email::Reader subclass instance PERL EMAIL PROJECT
This module is maintained by the Perl Email Project <http://emailproject.perl.org/wiki/Email::Folder> AUTHORS
Simon Wistow <simon@thegestalt.org> Richard Clamp <richardc@unixbeard.net> COPYING
Copyright 2006, Simon Wistow Distributed under the same terms as Perl itself. This software is under no warranty and will probably ruin your life, kill your friends, burn your house and bring about the doobie brothers. SEE ALSO
Email::LocalDelivery, Email::FolderType, Email::Simple perl v5.10.0 2009-07-27 Email::Folder(3pm)
Man Page