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.
如何通过我的Gmail帐户使用Perl发送电子邮件?我试过的一个CPAN库(Mail :: Webmail :: Gmail)没有用,我看不到太多的活动。
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.
目前我真的只需要发送消息。然而,获得我的联系人的高级功能,当收到具有特定标签的新电子邮件时起作用等,这似乎对另一天有吸引力。
4 个解决方案
#2
8
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.
您始终可以使用SMTP发送。服务器是smtp.gmail.com,它需要TLS并使用身份验证。您可能还必须在帐户中启用POP / IMAP。
#3
5
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 .
我遇到了与Mail :: Webmail :: Gmail相同的问题,我最终使用Net :: IMAP :: Simple :: SSL从gmail获取邮件。我想如果我不得不尝试用它发送邮件,我会首先尝试Net :: SMTP :: Server。
#4
0
I have extended WWW::Contact::GoogleContactsAPI to get all the contact fields. See:
我扩展了WWW :: Contact :: GoogleContactsAPI以获取所有联系人字段。看到:
Is there a Perl module to interface to Google Contacts API?
是否有与Google Contacts API接口的Perl模块?
#1
#2
8
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.
您始终可以使用SMTP发送。服务器是smtp.gmail.com,它需要TLS并使用身份验证。您可能还必须在帐户中启用POP / IMAP。
#3
5
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 .
我遇到了与Mail :: Webmail :: Gmail相同的问题,我最终使用Net :: IMAP :: Simple :: SSL从gmail获取邮件。我想如果我不得不尝试用它发送邮件,我会首先尝试Net :: SMTP :: Server。
#4
0
I have extended WWW::Contact::GoogleContactsAPI to get all the contact fields. See:
我扩展了WWW :: Contact :: GoogleContactsAPI以获取所有联系人字段。看到:
Is there a Perl module to interface to Google Contacts API?
是否有与Google Contacts API接口的Perl模块?