blastula icon indicating copy to clipboard operation
blastula copied to clipboard

Not working with office365

Open kmaheshkulkarni opened this issue 4 years ago • 1 comments

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

kmaheshkulkarni avatar May 22 '20 04:05 kmaheshkulkarni

I imagine host should be something like smtp.office365.com.

ErickChacon avatar Nov 23 '20 14:11 ErickChacon

Yeah, was going to say (nearly 2 years ago) that the host address seems a bit long.

rich-iannone avatar Apr 25 '23 13:04 rich-iannone