You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing a strange behavior when trying to send transactionnal e-mails.
I use symfony/mailer 6.1.* & symfony/sendinblue-mailer 6.1.*, I configured sendinblue+api transport.
Some of my transationnal e-mails throw this fatal error:
Fatal error: escapeshellarg(): Argument exceeds the allowed length of 8192 bytes in C:\www\deposit\vendor\symfony\http-client\DataCollector\HttpClientDataCollector.php on line 194
When using another transport (e.g. smtp, sendmail), I don't have this error. It seems normal as HTTPClient are not involved in these cases.
Send a large e-mail with an API transport, e.g. sendinblue.
Possible Solution
As workarround, it's possible to use 3rd-party-provider+smtp instead of 3rd-party-provider+api transport (but with loss of functionnalities, for instance tags).
Additional Context
Found out that
php -r "escapeshellarg(str_repeat('a', 8000));" does not throw the error.
php -r "escapeshellarg(str_repeat('a', 9000));" throws the error.