tags:

views:

1594

answers:

4

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.

+8  A: 

Did you try Email::Send::Gmail?

brian d foy
+7  A: 

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.

MrKurt
No POP/IMAP required.
bzlm
+4  A: 

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 .

gpojd
A: 

Hola,

Puedes enviar un correo a través de tu cuenta de Gamil utilizando el módulo Net::SMTP::TLS. El proporciona autenticación TLS, que es la utilizada por Gmail. En CPAN lo encontrarás y también un script muy sencillo de ejemplo.

Saludos.

desconocido
http://blog.stackoverflow.com/2009/07/non-english-question-policy/
David Dorward