I have trouble sending email with the packages sendmailR
via Outlook.
It work fine on my main computer (windows machine) but when I try it on my virtual machine running with Ubuntu I get the following error:
Error in socketConnection(host = server, port = port, blocking = TRUE) :
cannot open the connection
In addition: Warning message:
In socketConnection(host = server, port = port, blocking = TRUE) :
MYADRESSE.local:25 cannot be opened
I used the following code that once again work fine on the host machine.
library(sendmailR)
from <- "myname@company.com"
to <- "myname@company.com"
subject <- "Performance Result"
body <- "This is the result of the test:"
mailControl=list(smtpServer="MYADRESSE.local")
sendmail(from=from,to=to,subject=subject,msg=body,control=mailControl)
Do I have to set up the virtual machine to access MYADRESSE.local
? The network between the two (host and hosted) is set up to "bridge". My final goal would be to use shiny server to creat an app able to send emails through the main Outlook of the host, that for the moment, emails put aside work perfectly.