send mail with option bcc

161 views
Skip to first unread message

ANDY LOL

unread,
Apr 3, 2020, 12:21:32 PM4/3/20
to Google Apps Script Community

I need to send mail from google app script using bcc as parameter
i separe mail with comma


It works, but in the mail i have in send mail section you don't see the adreessed of mails in bcc
when you do i t maually you can see the mails

mails was sended becasue i sended them to myself to test, so I get them, this side is ok

only problem is that the behaviour is not the same when you do it manually and with google script, because the adressed are not vidibile in the last case

any solution?

it's stange this

Alan Wells

unread,
Apr 3, 2020, 12:48:20 PM4/3/20
to Google Apps Script Community
So, the BCC emails aren't showing up in the email when you open the "Sent" email from the "Sent" folder?

ANDY LOL

unread,
Apr 3, 2020, 12:55:39 PM4/3/20
to Google Apps Script Community

yes, but now i'm trying to use gmail service, I didn't notice script use mail service

it seems to work now, I write something like this
i need to write empty adress inside quote or i get a error
structure is a little different from mail service

        GmailApp.sendEmail('', oggetto_mail, messaggio_html, {
         bcc: mail_personale,
         htmlBody: messaggio_html
        });


now i try also to write empty quote inside the mail app service script since in the mail there is myself,
who kwno in this way you can see the bcc

otherwise i change scritp using gmail service since seem to work better in tis case
Reply all
Reply to author
Forward
0 new messages