Message blocked when sending email from Google Script
I have a survey form that people submit the hours they work and it sends their response in an email to me and then CC's two other people. The script was authorized by me to send the emails and has worked fine for a long time until a couple days ago when now I am getting a reply back from all three emails saying Message blocked. Any idea why these are being blocked?
MailApp.sendEmail("myemail@gmail.com",emailSubject,"", {htmlBody: body, cc: "anotheremail@gmail.com, thirdemail@gmail.com"});
If I only send the email to myself then it works perfectly fine. If I include even one CC email address I get the block.
Reporting-MTA: dns; googlemail.com
Arrival-Date: Mon, 12 Nov 2018 04:57:05 -0800 (PST)
X-Original-Message-ID: <000000000000eb73c1057a773c96@google.com>
Final-Recipient: rfc822; myemail@gmail.com
Action: failed
Status: 5.0.0
Diagnostic-Code: smtp; Message rejected. See https://support.google.com/mail/answer/69585 for more information.
Last-Attempt-Date: Mon, 12 Nov 2018 04:57:05 -0800 (PST)
google-apps-script
add a comment |
I have a survey form that people submit the hours they work and it sends their response in an email to me and then CC's two other people. The script was authorized by me to send the emails and has worked fine for a long time until a couple days ago when now I am getting a reply back from all three emails saying Message blocked. Any idea why these are being blocked?
MailApp.sendEmail("myemail@gmail.com",emailSubject,"", {htmlBody: body, cc: "anotheremail@gmail.com, thirdemail@gmail.com"});
If I only send the email to myself then it works perfectly fine. If I include even one CC email address I get the block.
Reporting-MTA: dns; googlemail.com
Arrival-Date: Mon, 12 Nov 2018 04:57:05 -0800 (PST)
X-Original-Message-ID: <000000000000eb73c1057a773c96@google.com>
Final-Recipient: rfc822; myemail@gmail.com
Action: failed
Status: 5.0.0
Diagnostic-Code: smtp; Message rejected. See https://support.google.com/mail/answer/69585 for more information.
Last-Attempt-Date: Mon, 12 Nov 2018 04:57:05 -0800 (PST)
google-apps-script
Is the form embedded in html? That maybe the reason. Also TryGmailApp
instead
– TheMaster
Nov 12 '18 at 14:53
add a comment |
I have a survey form that people submit the hours they work and it sends their response in an email to me and then CC's two other people. The script was authorized by me to send the emails and has worked fine for a long time until a couple days ago when now I am getting a reply back from all three emails saying Message blocked. Any idea why these are being blocked?
MailApp.sendEmail("myemail@gmail.com",emailSubject,"", {htmlBody: body, cc: "anotheremail@gmail.com, thirdemail@gmail.com"});
If I only send the email to myself then it works perfectly fine. If I include even one CC email address I get the block.
Reporting-MTA: dns; googlemail.com
Arrival-Date: Mon, 12 Nov 2018 04:57:05 -0800 (PST)
X-Original-Message-ID: <000000000000eb73c1057a773c96@google.com>
Final-Recipient: rfc822; myemail@gmail.com
Action: failed
Status: 5.0.0
Diagnostic-Code: smtp; Message rejected. See https://support.google.com/mail/answer/69585 for more information.
Last-Attempt-Date: Mon, 12 Nov 2018 04:57:05 -0800 (PST)
google-apps-script
I have a survey form that people submit the hours they work and it sends their response in an email to me and then CC's two other people. The script was authorized by me to send the emails and has worked fine for a long time until a couple days ago when now I am getting a reply back from all three emails saying Message blocked. Any idea why these are being blocked?
MailApp.sendEmail("myemail@gmail.com",emailSubject,"", {htmlBody: body, cc: "anotheremail@gmail.com, thirdemail@gmail.com"});
If I only send the email to myself then it works perfectly fine. If I include even one CC email address I get the block.
Reporting-MTA: dns; googlemail.com
Arrival-Date: Mon, 12 Nov 2018 04:57:05 -0800 (PST)
X-Original-Message-ID: <000000000000eb73c1057a773c96@google.com>
Final-Recipient: rfc822; myemail@gmail.com
Action: failed
Status: 5.0.0
Diagnostic-Code: smtp; Message rejected. See https://support.google.com/mail/answer/69585 for more information.
Last-Attempt-Date: Mon, 12 Nov 2018 04:57:05 -0800 (PST)
google-apps-script
google-apps-script
asked Nov 12 '18 at 13:13
Brad Wickwire
4663926
4663926
Is the form embedded in html? That maybe the reason. Also TryGmailApp
instead
– TheMaster
Nov 12 '18 at 14:53
add a comment |
Is the form embedded in html? That maybe the reason. Also TryGmailApp
instead
– TheMaster
Nov 12 '18 at 14:53
Is the form embedded in html? That maybe the reason. Also Try
GmailApp
instead– TheMaster
Nov 12 '18 at 14:53
Is the form embedded in html? That maybe the reason. Also Try
GmailApp
instead– TheMaster
Nov 12 '18 at 14:53
add a comment |
2 Answers
2
active
oldest
votes
I wanted to add a comment but I can not do that with a new account so forgive me and don't down-vote please. I do not have a clear answer in here. Again forgive me I just want to be able to converse with devs in the same tough spot between a google algo and a client having his business interrupted.
@amit: First that link you sent does not cover the actual situation. Second I ran my code for a second time manually and it processed everything perfectly so the content is not the sole trigger for this rejection.
To elaborate:
I made a survey tool for a client(with google biz account) that inputs the results in a google sheet with multiple tabs that receive rows of data.
Once a day each tab generates a "day summary" of those results and sends it in an email.
It has 1 TO and 2 BCC targets.
The body of the text contains multiple email addresses as clickable links.
This worked fine till a few weeks ago.
Now today, without changing anything, the emails were sent out with no bounce/rejections. My conclusion is that it is indeed Google's preventive anti-spam filters doing.
Just not as simple as "containing links".
Perhaps it's the time? As I see your email, and mine are sent at 3/4 AM, correct?
Perhaps it has to do with the CC/BCC emails never being opened? As my BCC targets are both my client's own email addresses (in gmail).
I hope this helps you. Really sucks that there is no actionable info from Google on this error.
add a comment |
This likely happens when Google algorithms find any suspicious link in the body of your email. You can consider removing any links from the email and try sending the message again to confirm the issue.
The Google support site has more information.
I did research before posting this and saw that BUT there are no links in the email body just HTML. Also remember that I can send it to myself as the TO just fine, its as soon as I add one CC
– Brad Wickwire
Nov 12 '18 at 13:20
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53262939%2fmessage-blocked-when-sending-email-from-google-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I wanted to add a comment but I can not do that with a new account so forgive me and don't down-vote please. I do not have a clear answer in here. Again forgive me I just want to be able to converse with devs in the same tough spot between a google algo and a client having his business interrupted.
@amit: First that link you sent does not cover the actual situation. Second I ran my code for a second time manually and it processed everything perfectly so the content is not the sole trigger for this rejection.
To elaborate:
I made a survey tool for a client(with google biz account) that inputs the results in a google sheet with multiple tabs that receive rows of data.
Once a day each tab generates a "day summary" of those results and sends it in an email.
It has 1 TO and 2 BCC targets.
The body of the text contains multiple email addresses as clickable links.
This worked fine till a few weeks ago.
Now today, without changing anything, the emails were sent out with no bounce/rejections. My conclusion is that it is indeed Google's preventive anti-spam filters doing.
Just not as simple as "containing links".
Perhaps it's the time? As I see your email, and mine are sent at 3/4 AM, correct?
Perhaps it has to do with the CC/BCC emails never being opened? As my BCC targets are both my client's own email addresses (in gmail).
I hope this helps you. Really sucks that there is no actionable info from Google on this error.
add a comment |
I wanted to add a comment but I can not do that with a new account so forgive me and don't down-vote please. I do not have a clear answer in here. Again forgive me I just want to be able to converse with devs in the same tough spot between a google algo and a client having his business interrupted.
@amit: First that link you sent does not cover the actual situation. Second I ran my code for a second time manually and it processed everything perfectly so the content is not the sole trigger for this rejection.
To elaborate:
I made a survey tool for a client(with google biz account) that inputs the results in a google sheet with multiple tabs that receive rows of data.
Once a day each tab generates a "day summary" of those results and sends it in an email.
It has 1 TO and 2 BCC targets.
The body of the text contains multiple email addresses as clickable links.
This worked fine till a few weeks ago.
Now today, without changing anything, the emails were sent out with no bounce/rejections. My conclusion is that it is indeed Google's preventive anti-spam filters doing.
Just not as simple as "containing links".
Perhaps it's the time? As I see your email, and mine are sent at 3/4 AM, correct?
Perhaps it has to do with the CC/BCC emails never being opened? As my BCC targets are both my client's own email addresses (in gmail).
I hope this helps you. Really sucks that there is no actionable info from Google on this error.
add a comment |
I wanted to add a comment but I can not do that with a new account so forgive me and don't down-vote please. I do not have a clear answer in here. Again forgive me I just want to be able to converse with devs in the same tough spot between a google algo and a client having his business interrupted.
@amit: First that link you sent does not cover the actual situation. Second I ran my code for a second time manually and it processed everything perfectly so the content is not the sole trigger for this rejection.
To elaborate:
I made a survey tool for a client(with google biz account) that inputs the results in a google sheet with multiple tabs that receive rows of data.
Once a day each tab generates a "day summary" of those results and sends it in an email.
It has 1 TO and 2 BCC targets.
The body of the text contains multiple email addresses as clickable links.
This worked fine till a few weeks ago.
Now today, without changing anything, the emails were sent out with no bounce/rejections. My conclusion is that it is indeed Google's preventive anti-spam filters doing.
Just not as simple as "containing links".
Perhaps it's the time? As I see your email, and mine are sent at 3/4 AM, correct?
Perhaps it has to do with the CC/BCC emails never being opened? As my BCC targets are both my client's own email addresses (in gmail).
I hope this helps you. Really sucks that there is no actionable info from Google on this error.
I wanted to add a comment but I can not do that with a new account so forgive me and don't down-vote please. I do not have a clear answer in here. Again forgive me I just want to be able to converse with devs in the same tough spot between a google algo and a client having his business interrupted.
@amit: First that link you sent does not cover the actual situation. Second I ran my code for a second time manually and it processed everything perfectly so the content is not the sole trigger for this rejection.
To elaborate:
I made a survey tool for a client(with google biz account) that inputs the results in a google sheet with multiple tabs that receive rows of data.
Once a day each tab generates a "day summary" of those results and sends it in an email.
It has 1 TO and 2 BCC targets.
The body of the text contains multiple email addresses as clickable links.
This worked fine till a few weeks ago.
Now today, without changing anything, the emails were sent out with no bounce/rejections. My conclusion is that it is indeed Google's preventive anti-spam filters doing.
Just not as simple as "containing links".
Perhaps it's the time? As I see your email, and mine are sent at 3/4 AM, correct?
Perhaps it has to do with the CC/BCC emails never being opened? As my BCC targets are both my client's own email addresses (in gmail).
I hope this helps you. Really sucks that there is no actionable info from Google on this error.
edited Dec 3 '18 at 19:02
answered Dec 3 '18 at 17:50
Johnny G. Mills
212
212
add a comment |
add a comment |
This likely happens when Google algorithms find any suspicious link in the body of your email. You can consider removing any links from the email and try sending the message again to confirm the issue.
The Google support site has more information.
I did research before posting this and saw that BUT there are no links in the email body just HTML. Also remember that I can send it to myself as the TO just fine, its as soon as I add one CC
– Brad Wickwire
Nov 12 '18 at 13:20
add a comment |
This likely happens when Google algorithms find any suspicious link in the body of your email. You can consider removing any links from the email and try sending the message again to confirm the issue.
The Google support site has more information.
I did research before posting this and saw that BUT there are no links in the email body just HTML. Also remember that I can send it to myself as the TO just fine, its as soon as I add one CC
– Brad Wickwire
Nov 12 '18 at 13:20
add a comment |
This likely happens when Google algorithms find any suspicious link in the body of your email. You can consider removing any links from the email and try sending the message again to confirm the issue.
The Google support site has more information.
This likely happens when Google algorithms find any suspicious link in the body of your email. You can consider removing any links from the email and try sending the message again to confirm the issue.
The Google support site has more information.
answered Nov 12 '18 at 13:19
Amit Agarwal
5,20611326
5,20611326
I did research before posting this and saw that BUT there are no links in the email body just HTML. Also remember that I can send it to myself as the TO just fine, its as soon as I add one CC
– Brad Wickwire
Nov 12 '18 at 13:20
add a comment |
I did research before posting this and saw that BUT there are no links in the email body just HTML. Also remember that I can send it to myself as the TO just fine, its as soon as I add one CC
– Brad Wickwire
Nov 12 '18 at 13:20
I did research before posting this and saw that BUT there are no links in the email body just HTML. Also remember that I can send it to myself as the TO just fine, its as soon as I add one CC
– Brad Wickwire
Nov 12 '18 at 13:20
I did research before posting this and saw that BUT there are no links in the email body just HTML. Also remember that I can send it to myself as the TO just fine, its as soon as I add one CC
– Brad Wickwire
Nov 12 '18 at 13:20
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53262939%2fmessage-blocked-when-sending-email-from-google-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is the form embedded in html? That maybe the reason. Also Try
GmailApp
instead– TheMaster
Nov 12 '18 at 14:53