R blastula's send_stmp gives "MAIL failed: 451"

193 Views Asked by At

I'm trying to send emails through R's blastula package. My email program is Outlook/Office. This code

library(blastula)

smtp_send(
  compose_email(body = "hello"),
  to = "[email protected]", 
  from = "[email protected]",
  credentials = creds(
    user = "hello",
    host = "smtp.office365.com",
    port = 587,
    use_ssl = F
  ))

gives

Error in curl_fetch_memory(smtp_server, handle = h) : MAIL failed: 451

I've done a bit of reading and it clearly has something to do with permissions being blocked, which I assume I can't change because I don't have admin privileges on my machine.

Is there anything I can do?

Thanks!

0

There are 0 best solutions below