DocumentationCommerceCommerce KB

PaaS only

SendGrid limitation for Adobe Commerce Cloud

Last update: March 6, 2024
  • Topics:
  • Deploy
  • Marketing Tools

CREATED FOR:

  • Developer
  • Admin

This article provides some workarounds to the SendGrid limitation for Adobe Commerce on Cloud infrastructure.

Affected products and versions

  • Adobe Commerce on cloud infrastructure, all supported versions

Issue

You attempt to send large attachments in emails and see these log errors:

In /var/log/mail.log

Month Date Time i-xxxxxxxxxxxxxxxxx postfix/sendmail[21408]: fatal: no-reply@xxxxxxxx.com(8080): message file too big
Month Date Time i-xxxxxxxxxxxxxxxxx postfix/sendmail[26434]: fatal: no-reply@xxxxxxxxx.com(8080): message file too big

In /var/log/exception.log

Production:

/app/<project-id>/vendor/laminas/laminas-mail/src/Transport/Sendmail.php:313

Staging:

/app/<project-id_stg>/vendor/laminas/laminas-mail/src/Transport/Sendmail.php:313

Staging2:

/app/<project-id_stg2>/vendor/laminas/laminas-mail/src/Transport/Sendmail.php:313

Cause

SendGrid has a system limitation of 30Mb size for email. It is recommended that you do not use attachments that exceeds 10Mb. See Sending Attachments in SendGrid documentation for more infomation.

Workaround

  • Do not use attachments higher than 6Mb or 10Mb.
  • Consider the use of a remote SMTP server on your Adobe Commerce instance. For steps, refer to Configure email communications in our Admin Systems Guide.
  • Reconfigure your server so that files can be saved within your module, and then attach the link to the files in the emails.

Related reading

  • SendGrid email service in our Commerce on Cloud Infrastructure Guide.
recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a