Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29748

MailApp.sendEmail sending email to myself when not set to in google apps script

$
0
0
MailApp.sendEmail({
to: " someemail@gmail.com , ",
subject: "New change for " + variable1+ " at " + variable2,
htmlBody: "Added: " + addedlist_new.toString() + "<br><br>" + 
"Removed: " + removedlist_old.toString() + "<br><br>" +
" https://docs.google.com/spreadsheets/d/someurlhere ",
})

When I have an email directed to a user other than myself, I find that I end up having the email that was sent to them, in my inbox. It shows it's sent to the user I entered in the "To" area, but it's in my inbox. Why does it place it in my Inbox instead of Sent Mail?


Viewing all articles
Browse latest Browse all 29748

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>