I have created a bulk email feature , but from reading other comments I believe MS Outlook limits the Bcc list of emails to 500 per email.
My question is , is there a way in PowerApps that if the collection has more than 500 emails and <= 1000 emails , then split the
send email into 2 emails. So the first email sends bcc contacts 1 to 500 from the collection and then another email is sent with >501
My current code is
Clear(bulk_mail_full);
ForAll(mass_contacts_gallery.AllItems,Collect(bulk_mail_full,{AccountID:field_12,code:field_2,email:field_4,account:field_1,region:Region,country:Country,Dataset:Dataset,DatasetSubtype:'Dataset Subtype',SMRep:field_10,ActivityComment:field_4 &" sent " & activity_message.Text}));
ForAll(bulk_mail_full,Patch(Activity_List,Defaults(Activity_List),{AccountID:AccountID},{Title:code},{field_1:account},{field_2:DatasetSubtype},{field_4:SMRep},{field_5:Today(),field_7:ActivityComment}));
Office365Outlook.SendEmail(
"supplierrelations@email.com", // add SupplierRelations@email.com
email_subject.Text,
"<img src=" & header &">" & "</img></br></br></br>" & email_message.HtmlText &
"<a href="&"https://www.youtube.com/watch?v=_" & "class="&"class"&"> <img src="& footer &"> </a>" ,
{
Bcc: Concat(bulk_mail_full,email,";"),
Importance: "Normal",
IsHtml: true
}
);
Set(var_send_mail,false)