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
Thank you for pointing out the other post. I was considering editing the line generating the error to check/bypass null values, though I was not sure whether the variable was designed to ever be null and allowing the code to continue with null would cause issues. Also, I am concerned that my edits will get wiped out if the codebase is ever updated.
What steps will reproduce the problem?
The bug occurs when trying to use swiftMailer to send emails in PHP 7.4.x. Works fine in PHP 7.3.
The config:
The code sample that generates the fatal error:
What is the expected result?
Should send an email to the recipient, optionally include HTML or text-only view templates.
What do you get instead?
PHP error -
Additional info
I have tried sending with HTML and Text views, only one view, no views - using setHtmlBody() and setTextBody() - all prodiced the same error.
The text was updated successfully, but these errors were encountered: