1

I have a script that takes data from an existing data table and sends it out to a distro list.

A quick snippet of the code I'm using is:

var emailDelivery = templateSheet.getRange("C2").getValue();
var emailSubject = templateSheet.getRange("D2").getValue();
var emailText = templateSheet.getRange("E2").getValue();
var emailText = fillInTemplateFromObject(eNewRecBody, rowData);
var emailSubject = fillInTemplateFromObject(eNewRecSubject,rowData);
GmailApp.sendEmail(emailDelivery,emailSubject,emailText,{noreply:true});

Where fillInTemplateFromObject is a subfunction that parses regex items to pull from the table into the body/subject of the email.

The issue comes with the last line - the additional options in the sendEmail function are not applying; that is when it runs, it shows the emails are coming from my email, rather than a noreply account.

What could be causing this?

2

According to the documentation

this option [noreply] is only possible for Google Apps accounts, not Gmail users

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.