in reply to Re: Bad file descriptor with mail to Gmail using MIME::Lite.
in thread Bad file descriptor with mail to Gmail using MIME::Lite.
I receive no error, but the code immediately returns to a prompt and no mail is sent. I am somewhat new to this and assume you suggested I patch the "send" part (which works with Email::Simple::Creator) to my existing MIME code. Correct? Thoughts?use strict; use warnings; use Email::Send; use Email::Send::Gmail; use MIME::Lite; my $msg = MIME::Lite->new( From =>'bob@gmail.com', To =>'bob@gmail.com', Subject =>'test' ); my $sender = Email::Send->new( { mailer => 'Gmail', mailer_args=>[ username=>'bob@gmail.com',password=>'123456',] } ); eval { $sender->send($msg) }; die "Error sending email: $@" if $@;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Bad file descriptor with mail to Gmail using MIME::Lite.
by Anonyrnous Monk (Hermit) on Jan 13, 2011 at 19:23 UTC | |
by rhubarbpie (Novice) on Jan 13, 2011 at 22:31 UTC |