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

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,698)