MailApp.sendEmail method doesn't get through to accounts with URL in the body - Message Blocked

后端 未结 1 376
孤城傲影
孤城傲影 2020-12-04 02:30

I am working on Google Apps Script. I am trying to send email as follows:

function test_sendmail(){
  var subject = \"subject\";
  var body = \"https://www.g         


        
相关标签:
1条回答
  • 2020-12-04 03:14

    Gmail anti-spam algorithms are complex. To prevent that the messages sent by your script being blocked by them, follow the guidelines on Prevent mail to Gmail users from being blocked or sent to spam


    Possible Workaround

    One of my clients had the same issue, I replaced MailApp.sendEmail(message) by GmailApp.sendEmail(recipient,subject,body,options) apparently this worked (No bounce messages after 10 minutes)

    Rafa Guillermo added in a comment:

    Just want to add that in this case if this is an ongoing issue you should get your admin to contact G Suite support

    If you hasn't access to G Suite Support I think that you could report this issue to Google by using Google Feedback (Open Gmail web UI > click the settings button (gear icon) > Send feedback)

    Related

    • MailApp.sendEmail() in Google Apps Script not sending email (it looks that this is first Q/A about this issue that also suggest replace MailApp by GmailApp)
    • Message blocked when sending email from Google Script
    0 讨论(0)
提交回复
热议问题