Question

How can I send email using Perl through my Gmail account? The one CPAN library (Mail::Webmail::Gmail) that I tried didn't work and I don't see much activity with it.

At the moment I really only need to send a message. However, the advanced functionality of getting my contacts, acting when a new email is received that has a certain label, etc. certainly seems appealing for another day.

Was it helpful?

Solution

Did you try Email::Send::Gmail?

OTHER TIPS

You could always send with SMTP. The server is smtp.gmail.com, it requires TLS and uses authentication. You may also have to enable POP/IMAP in your account.

I had the same problem with Mail::Webmail::Gmail, I ended up using Net::IMAP::Simple::SSL to get my mail from gmail. I'd guess if I had to try to send mail with it I would first try Net::SMTP::Server .

I have extended WWW::Contact::GoogleContactsAPI to get all the contact fields. See:

Is there a Perl module to interface to Google Contacts API?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top