in reply to Re^3: Authenticating the Mail Sent
in thread Authenticating the Mail Sent
#!/usr/bin/perl use warnings; use Email::Send; use Email::Send::Gmail; use Email::Simple::Creator; my $email = Email::Simple->create( header => [ From => 'aabc@gmail.com', To => 'abc@Gmail.com', Subject => 'Server down', ], body => 'The server is down. Start panicing.', ); my $sender = Email::Send->new( { mailer => 'Gmail', mailer_args => [ username => 'aabc@gmail.com', password => '1234qwerty', ] } ); eval { $sender->send($email) }; die "Error sending email: $@" if $@;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Authenticating the Mail Sent
by Anonymous Monk on Mar 10, 2010 at 08:19 UTC | |
by Appy16 (Sexton) on Mar 10, 2010 at 08:25 UTC | |
by Anonymous Monk on Mar 10, 2010 at 08:33 UTC | |
by Appy16 (Sexton) on Mar 11, 2010 at 04:57 UTC |