send.mail(from = "jsmith@amazon.com",
to = "jsmith@gmail.com",
subject = "subject",
body = "msg",
authenticate = TRUE,
smtp = list(host.name = "smtp.office365.com", port = 587,
user.name = "jsmith@amazon.com", passwd = "pw!", tls = TRUE))
org.apache.commons.mail.EmailException: Sending the email to the following
server failed : smtp.office365.com:587
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)
at org.apache.commons.mail.Email.send(Email.java:1437)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at RJavaTools.invokeMethod(RJavaTools.java:386)
Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to
host, port: smtp.office365.com, 587; timeout 60000;
nested exception is:
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.