cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tamer66
Level: Powered On

Send multiple Emails only in Bcc

Hi,

 

i want sent multiple Emails from my app only in bcc, so i see for one Email adress is this possible with Bcc: but i dont know how can i do this for multiple adresses? my _emailRecipientString has in this case 30 adresses.

 

This is my code.

 

Set(
    _emailRecipientString;
    Concat(
        Filter(
            myEmails.Email;
            !IsBlank(Email)
        );
        Email & ";"
    )
);;
Office365.SendEmail(
    _emailRecipientString;
    TextEmailSubject1.Text;
    TextEmailMessage1.Text;
    {
        Importance: "Normal"
    }
);;
Reset(TextEmailSubject1);;
Reset(TextEmailMessage1);;
Clear(myEmails)

Thanks for all your support.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Send multiple Emails only in Bcc

@Tamer66 

Oh, so it's that you want to send a BCC to all the people in the myEmails list.

Then, just change your formula to this:

Set(
    _emailRecipientString;
    Concat(
        Filter(
            myEmails.Email;
            !IsBlank(Email)
        );
        Email & ";"
    )
);;
Office365.SendEmailV2(
    "someEmail@domain.com";  // I've not confirmed, but I believe you need at least one valid email to send to.
    TextEmailSubject1.Text;
    TextEmailMessage1.Text;
    {
        Bcc: _emailRecipientString,  
        Importance: "Normal"
    }
);;
Reset(TextEmailSubject1);;
Reset(TextEmailMessage1);;
Clear(myEmails)

That will send an email to the "dummy" email address you have in the recipient parameter, and it will then also send to the list of recipients as BCC's.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
4 REPLIES 4
Super User
Super User

Re: Send multiple Emails only in Bcc

@Tamer66 

If I understand you correctly, you want to add a BCC to your message.

If you want that, then you will need to change your formula a bit (also, I recommend SendMailV2).

Set(
    _emailRecipientString;
    Concat(
        Filter(
            myEmails.Email;
            !IsBlank(Email)
        );
        Email & ";"
    )
);;
Office365.SendEmailV2(
    _emailRecipientString;
    TextEmailSubject1.Text;
    TextEmailMessage1.Text;
    {
Bcc: "email@domain.com", // <- put whatever BCC address you want in here Importance: "Normal" } );; Reset(TextEmailSubject1);; Reset(TextEmailMessage1);; Clear(myEmails)

I hope that is what you are looking for and it is helpful.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Tamer66
Level: Powered On

Re: Send multiple Emails only in Bcc

@RandyHayes 

 

thanks for your answer. I have a mutiple email adress that comes from a collection "myEmails" and i want to send this only in Bcc and not in normal to.

 

So i have currently no idea how can i do this. 

Super User
Super User

Re: Send multiple Emails only in Bcc

@Tamer66 

Oh, so it's that you want to send a BCC to all the people in the myEmails list.

Then, just change your formula to this:

Set(
    _emailRecipientString;
    Concat(
        Filter(
            myEmails.Email;
            !IsBlank(Email)
        );
        Email & ";"
    )
);;
Office365.SendEmailV2(
    "someEmail@domain.com";  // I've not confirmed, but I believe you need at least one valid email to send to.
    TextEmailSubject1.Text;
    TextEmailMessage1.Text;
    {
        Bcc: _emailRecipientString,  
        Importance: "Normal"
    }
);;
Reset(TextEmailSubject1);;
Reset(TextEmailMessage1);;
Clear(myEmails)

That will send an email to the "dummy" email address you have in the recipient parameter, and it will then also send to the list of recipients as BCC's.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
Tamer66
Level: Powered On

Re: Send multiple Emails only in Bcc

@RandyHayes 

 

great, thanks a lot for your Support.