in reply to Bad file descriptor with mail to Gmail using MIME::Lite.

Also see Send mail from gmail SMTP

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Bad file descriptor with mail to Gmail using MIME::Lite.

Replies are listed 'Best First'.
Re^2: Bad file descriptor with mail to Gmail using MIME::Lite.
by rhubarbpie (Novice) on Jan 16, 2011 at 19:12 UTC
    I thank everyone for replying. I'd like to report my solution in hopes of helping the next guy with difficulty mailing to Gmail. Email::Send::SMTP::Gmail works well for me, including attachments. There may well be other solutions, but it seems quite simple and works well. Again, assuming I'm "bob" with a "123456" password, the following code works:
    use strict; use warnings; use Email::Send::SMTP::Gmail; my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'gmail.com', -login=>'bob', -pass=>'123456'); $mail->send(-to=>'bob@gmail.com', -subject=>'Mail w/attachment test', -verbose=>'1', -body=>'Test', -attachments=>'file.zip'); $mail->bye;