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