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 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;