You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
I would like help with this.
I want to automatically reply all to a specific email from "te...@gmail.com" with subject "test". This should happen and also get saved as it was normally replied by us.
Vishal Sheth
unread,
May 29, 2024, 4:23:05 AM5/29/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
I used the above code but it's not running when the email arrives. What am I missing here?
With "To" there would be emails in "cc". The script should do reply all so all get the email.
function onMessageReceived(e) { const message = e.message; const subject = message.getSubject(); const from = message.getFrom();
if (subject === "test" && from === "*@gmail.com") { const body = "Hello"; GmailApp.replyAll(message, body);