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

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.
Tamer66
Level: Powered On

Re: Send multiple Emails only in Bcc

@RandyHayes 

 

great, thanks a lot for your Support.

 

 

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 142 members 3,706 guests
Please welcome our newest community members: