cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

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
Highlighted
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

6 REPLIES 6
Highlighted
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.
Highlighted
Helper III
Helper III

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. 

Highlighted
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
Helper III
Helper III

Re: Send multiple Emails only in Bcc

@RandyHayes 

 

great, thanks a lot for your Support.

 

 

Highlighted
New Member

Re: Send multiple Emails only in Bcc

Hello RandyHayes, great script 😉 

 

Could I set another subject in bcc?

Highlighted
New Member

Re: Send multiple Emails only in Bcc

Hello RandyHayes, great script... 😉

 

Could I set another subject in the bcc?

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,286)