[R] Send Mail R and Socket Connections
TwistedSkies
david.vicary at talbotuw.com
Wed Jun 5 11:56:03 CEST 2013
Good Afternoon All,
I am attempting to use the SendMailR function, I have checked with our I.T.
department that I am using the correct server and I have the right
permissions to connect and they have sent emails via this server but not
through R and I have also checked that the port should be 25.
The code:
/
# E-Mail #
library(sendmailR)
from <- "david at work.com"
to <- "adam at work.com"
subject <- "Send Mail R- Test"
body <- "TESTING TESTING TESTING"
mailControl=list(smtpServer="uksmtp.global.local")
sendmail(from=from,to=to,subject=subject,msg=body,control=mailControl)
/
I receive the below error:
/
function (host = "localhost", port, server = FALSE, blocking = FALSE,
open = "a+", encoding = getOption("encoding"), timeout =
getOption("timeout"))
.Internal(socketConnection(host, port, server, blocking, open,
encoding, timeout))
<bytecode: 0x00000000071beb18>
<environment: namespace:base>
/
So I figured its an error with or I needed to define a new socket
connection, is this where the problem lies? Could anyone give me any
pointers on where to go next with this to get it working?
Many Thanks in Advance!
--
View this message in context: http://r.789695.n4.nabble.com/Send-Mail-R-and-Socket-Connections-tp4668699.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list