in reply to Sending an attachment with Email::Send::SMTP::Gmail

You're passing the -attachments to the wrong method -- specifically, to the constructor, not the ->send call on the mail object it returns. Try changing that.

If it still doesn't work after that, try passing -verbose => '1' as an extra parameter and see what debug messages you get; perhaps there'll be a clue there.

  • Comment on Re: Sending an attachment with Email::Send::SMTP::Gmail

Replies are listed 'Best First'.
Re^2: Sending an attachment with Email::Send::SMTP::Gmail
by IvanH (Acolyte) on Aug 06, 2014 at 23:58 UTC

    Pure stupidity on my part. Passing it to the right method fixed it.

    Thanks