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
In Cake4, Mailer class clone transport before executing deliver method, then it restores the transport instance. When MailgunTransport is clone, the FormData instance in _formData property is shared between the two instances (original and clone) so even when _reset is called after sending email, the cloned instance keeps the previous _formData generating emails with multiple to, subject and from headers.
Calling _reset in new instance fixes the issue
The text was updated successfully, but these errors were encountered:
ajibarra
added a commit
to CakeDC/cakephp-mailgun
that referenced
this issue
Dec 2, 2022
In Cake4, Mailer class clone transport before executing deliver method, then it restores the transport instance. When MailgunTransport is clone, the FormData instance in _formData property is shared between the two instances (original and clone) so even when _reset is called after sending email, the cloned instance keeps the previous _formData generating emails with multiple
to
,subject
andfrom
headers.Calling
_reset
in new instance fixes the issueThe text was updated successfully, but these errors were encountered: