mailR icon indicating copy to clipboard operation
mailR copied to clipboard

question: how to use with proxy server

Open WSHoekstra opened this issue 9 years ago • 1 comments

hi,

First of all, thank you for your great work on this package. I have a question. Is it possible to use mailR through a password protected proxy server? If so, how? I'm trying to run a variant of the following send.mail() ,which works outside of the proxy environment, but I also need for it to run through a proxy.

thanks a lot! regards WSH


send.mail(from = "[email protected]", to = "[email protected]", subject = "Subject of the email", body = "Body of the email", smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "myaddress", passwd = "mypassword", ssl = TRUE), authenticate = TRUE, send = TRUE)

WSHoekstra avatar Sep 07 '16 11:09 WSHoekstra

you might want to try using the httr package by Hadley. It has the use_proxy command which might help you...

jschelbert avatar Aug 29 '17 07:08 jschelbert