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.

View solution in original post

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.

View solution in original post

Highlighted
Tamer66
Level: Powered On

Re: Send multiple Emails only in Bcc

@RandyHayes 

 

great, thanks a lot for your Support.

 

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,631)