cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TomLu1231
Frequent Visitor

How to enable "Mailto" for a large number of recipients?

Hi Expert, 

 

I am trying to create a button to launch the "Mail to".  The design concept is as below:

  1. The user can select the people from a gallery and save it to a Collection called "GroupEmailRecipients" which has one column "EmailName".
  2. Then the PowerApp will auto concat the Email into the "EmailA;EmailB;EmailC..." format.
  3. Then the user can click the Button which will launch the "Mailto" so that the formatted addresses will auto populated in the Outlook and the user can start writing the Email content directly.  The formula used for the button is as below Launch("mailto:" & Concat(GroupEmailRecipients,EmalName & ";"))

 The formula works fine when the number is small. But the challenge I am facing is the number of recipients can be as large as 150. When the number of recipients are large, the formula will not be able to launch outlook. 

 

Is there any max number limitation on the Mailto? Or another solution to achieve the concept?

 

Many thanks!

 

Best regards,

Tom

3 ACCEPTED SOLUTIONS

Accepted Solutions
WarrenBelz
Super User
Super User

HI @TomLu1231 ,

The maximum number of recipients per message in Outlook is 500 - see this information.

Are you saying it is not working at 150?

View solution in original post

EvanTse
Helper III
Helper III

@TomLu1231 - It appears that the "Mailto" functionality has a character limit of about 2000 characters.

 

Is there any reason you can't use the outlook connector?

View solution in original post

v-xida-msft
Community Support
Community Support

Hi @TomLu1231 ,

I agree with @EvanTse 's thought almost. Currently, there is a known limit with the Mailto protocol -- the maximum value of characters in "Mailto" protocol is 2000.

 

As an alternative solution, I think Office365Outlook.SendEmail() function could achieve your needs. On your side, please add Office 365 Outlook connection into your app, then take a try with the following formula:

Office365Outlook.SendEmailV2(
                           Concat(GroupEmailRecipients, EmalName & ";"),
                           "Subject",
                           "Body Content"
)

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

HI @TomLu1231 ,

The maximum number of recipients per message in Outlook is 500 - see this information.

Are you saying it is not working at 150?

EvanTse
Helper III
Helper III

@TomLu1231 - It appears that the "Mailto" functionality has a character limit of about 2000 characters.

 

Is there any reason you can't use the outlook connector?

@TomLu1231 ,

I missed to "MailTo" reference in among the main issue you raised.

@EvanTse is correct in that you should use Office365Outlook.SendEmail, which should take 500 limit documented for Outlook.

v-xida-msft
Community Support
Community Support

Hi @TomLu1231 ,

I agree with @EvanTse 's thought almost. Currently, there is a known limit with the Mailto protocol -- the maximum value of characters in "Mailto" protocol is 2000.

 

As an alternative solution, I think Office365Outlook.SendEmail() function could achieve your needs. On your side, please add Office 365 Outlook connection into your app, then take a try with the following formula:

Office365Outlook.SendEmailV2(
                           Concat(GroupEmailRecipients, EmalName & ";"),
                           "Subject",
                           "Body Content"
)

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

is there a solution for this on Power Bi?

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (2,531)