我已经使用MailR通过我的个人Gmail轻松,直接地自动发送大量电子邮件。但是,使用我的Amazon电子邮件是一个问题,没有用吗?我的Amazon电子邮件是通过Outlook进行的,但是我已经尝试过通过主机进行Outlook的操作,但是没有用。任何帮助都将非常有用,所以我可以找出答案!
sender <- "jsmith@amazon.com"
receipient <- "jsmith@gmail.com"
send.mail(from = sender,
to = receipient,
subject = "subject",
body = "msg",
authenticate = TRUE,
smtp = list(host.name = "smtp.office365.com", port = 587,
user.name = "jsmith@amazon.com", passwd = "password", tls =
TRUE))`
Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to
host, port: smtp.office365.com, 587; timeout 60000;
nested exception is:
java.net.ConnectException: Connection timed out: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2053)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697)
at javax.mail.Service.connect(Service.java:386)
at javax.mail.Service.connect(Service.java:245)
at javax.mail.Service.connect(Service.java:194)
at javax.mail.Transport.send0(Transport.java:253)
at javax.mail.Transport.send(Transport.java``:124)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)
... 6 more