使用R发送电子邮件时出现以下错误。
library(sendmailR)
from <- "<boralsoumya@gmail.com>"
to <- "<amarnath.boral@gmail.com>"
subject <- "Performance Result"
body <- "This is the result of the test:"
mailControl=list(smtpServer="ASPMX.L.GOOGLE.COM")
sendmail(from=from,to=to,subject=subject,msg=body,control=mailControl)
错误
Error in wait_for(250) :
SMTP Error: 5.7.1 [45.64.236.186] The IP you're using to send mail is not authorized to
看到这个链接,但帮助不大:https://support.google.com/mail/answer/10336?hl=en
如何解决这个问题?