IvanH has asked for the wisdom of the Perl Monks concerning the following question:

I'm a bit of a newbie. I am using Windows 8, 64 bit and want to send html formatted email via Gmail SMTP. I don't need to send attachments. Can someone tell me which package module is most suitable? Thanks, Ivan mail::Sendmail Hi again Monks, Thanks for the advice so far, but I'm still a little lost. I have previously successfully sent email using mail::sendmail, but want to send through Gmail and mail::sendmail won't work because Gmail requires authentication protocol. Per the advice given above I have installed Email::Stuffer, which should work, but it doesn't supply sample code in the PERL documentation to the level I need. Specifically, how do I set Gmail as my SMTP host and how do I set the port and supply my signon and password for the authentication? Even better would be some sample code which covers this. Thanks again for all your help, Ivan

Replies are listed 'Best First'.
Re: Gmail SMTP module
by kcott (Archbishop) on May 02, 2014 at 08:10 UTC

    G'day Ivan,

    Welcome to the monastery.

    Email::Stuffer is easy to use and provides all the functionality you want. It does allow attachments in case you want this at some later date.

    The documentation provides links to alternatives if you need something more complicated.

    You should probably also look at Email::Sender::Transport::SMTP for details of calling the transport() method.

    -- Ken

Re: Gmail SMTP module
by soonix (Chancellor) on May 02, 2014 at 08:13 UTC
    don't have experience with automated GMail, but in such cases it is good to know
    • where to search (Google is too general here): CPAN or METACPAN
    • what to search for: "GMail SMTP" is too special, better search for Gmail send
      Thanks to both of you for the kick-start. It's enough to get me to work. I'll probably be back with more questions.