IvanH has asked for the wisdom of the Perl Monks concerning the following question:
I am setting up a PERL program using Email::Send::SMTP::Gmail to send emails with attachemnts on a Windows 8 machine. I have everything working except the attachment. The parameters look like:
my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', -layer=>'ssl', -port=>465, -login=>'IHipschman@gmail.com' +, -attachments=>'C:\Users\Ivan\D +ocuments\BSA\EMAIL\Fliers\Gmail\CurrentFlier.pdf', -pass=>'password');
For the attachments path I have tried all combinations of single and double quotes, backslashes, double backslashes and forward slashes and none seem to work. The email gets sent but there is no attachment. Can anyone suggest what I am doing wrong?
Thanks, Ivan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending an attachment with Email::Send::SMTP::Gmail
by AppleFritter (Vicar) on Aug 06, 2014 at 18:00 UTC | |
by IvanH (Acolyte) on Aug 06, 2014 at 23:58 UTC | |
|
Re: Sending an attachment with Email::Send::SMTP::Gmail
by roboticus (Chancellor) on Aug 06, 2014 at 18:01 UTC |