web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error: Failed to send ...
Power Automate
Answered

Error: Failed to send email message. Message size exceeds fixed limit

(0) ShareShare
ReportReport
Posted on by 16

I am trying to use "Send Email SMTP" activity for sending email with attachment but it's failing with the below error message. Any help on this appreciated:

Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Failed to send email message. ---> MailKit.Net.Smtp.SmtpCommandException: 5.3.4 Message size exceeds fixed limit
at MailKit.Net.Smtp.SmtpClient.OnSenderNotAccepted(MimeMessage message, MailboxAddress mailbox, SmtpResponse response)
at MailKit.Net.Smtp.SmtpClient.<FlushCommandQueueAsync>d__62.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MailKit.Net.Smtp.SmtpClient.<SendAsync>d__113.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at MailKit.Net.Smtp.SmtpClient.<SendAsync>d__113.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MailKit.Net.Smtp.SmtpClient.Send(FormatOptions options, MimeMessage message, CancellationToken cancellationToken, ITransferProgress progress)
at Microsoft.Flow.RPA.Desktop.Modules.Email.Actions.EmailActions.SendEmail(Variant from, Variant senderDisplayName, Variant to, Variant cc, Variant bcc, Variant subject, Variant body, Variant attachments, Variant smtpServer, Variant username, Variant varPassword, Boolean isBodyHtml, Int32 serverPort, Boolean needsAuthentication, Boolean enableSsl, Boolean acceptUntrustedCertificates)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.Email.Actions.SendEmail.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @CristianP 

    It seems you're trying to send an email with an attachment that exceeds 20MB in size.

     

    Outlook imposes a size limit of 20MB for attachments. Although you might have successfully sent files up to 20MB, you cannot exceed this limit.

     

    Similarly, Gmail also has its size limit, which can be adjusted according to organizational policies.

    In such cases, you might want to consider uploading your file to a cloud service, such as OneDrive or Dropbox.


    Thanks,
    Deenuji Loganathan
    🤖 Automation Evangelist
    Deenuji - Follow me on LinkedIn

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🌟

  • CristianP Profile Picture
    16 on at

    The attached file I'm trying to send has a size of 11MB, and according to the server in my company, emails with attachments of up to 50MB can be sent.

    And according to the following link:
    https://learn.microsoft.com/en-us/power-automate/limits-and-config

    CristianP_0-1710252651840.png

     

    It indicates that the maximum size is 100MB.

    Additionally, as you mentioned, Outlook has a maximum capacity of 20MB, so I should be able to send the email without error.

    I remain attentive to your assistance.

  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @CristianP 

     

    Thank you for providing the information.

     

    Could you please specify which package or method you are utilizing within Power Automate Desktop to send an email with an attachment?

     


    Thanks,
    Deenuji Loganathan
    🤖 Automation Evangelist
    Deenuji - Follow me on LinkedIn

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🌟

  • CristianP Profile Picture
    16 on at

     

    I'm using the Send Mail method via SMTP protocol.

    CristianP_0-1710253680669.png

     

  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @CristianP 

    Just tried I can able to send around 29MB file with below SMTP settings.

    Deenuji_0-1710256160547.png

     

  • Verified answer
    CristianP Profile Picture
    16 on at

    @Deenuji 
    Thank you, I was able to resolve it. In the end, it's an issue with the SMTP server. Since the relay we use here at my company is limited, we had to request a Firewall exception from the Security department.

    The change was made and I was able to attach a 23MB file.

    Thank you very much for the support.


  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @CristianP 

    Thank you for your insights!! Happy Automation!!

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard