blastula
blastula copied to clipboard
Not working with office365
create_smtp_creds_file(file = "email_creds",
user = "[email protected]",
provider = "office365",
host = "smtps://outlook.office365.com.office.johndeere.myshn.net/mapi/emsmdb/[email protected]",
port = 465,
use_ssl = TRUE)
# Sending email by SMTP using a credentials file
email %>%
smtp_send(
to = "[email protected]",
from = "[email protected]",
subject = "This Mail From Rstudio Mahesh's Project",
credentials = creds_file("email_creds")
)
Error:
Error in curl_fetch_memory(smtp_server, handle = h) : Failed to connect to outlook.office365.com.office.johndeere.myshn.net port 465: Timed out
I imagine host
should be something like smtp.office365.com
.
Yeah, was going to say (nearly 2 years ago) that the host address seems a bit long.