The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Swift Mailer Fatal Error on Submit - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16) +--- Thread: Swift Mailer Fatal Error on Submit (/showthread.php?tid=1657) |
Swift Mailer Fatal Error on Submit - kipshaw - Sep 25th, 2011 Hi - Problem with swift_mailer Here's the deal: before swift mailer setup no errors - correctly went to thank you page then configured swift mailer swift mailer test email successfully sent then email test successfully sent then filled in form and hit submit database entry successfully created but instead of going to thankyou page, error appears saying this Fatal error: Call to a member function setCharset() on a non-object in /home/askme0/public_html/urbanvillageedenton/formtools/modules/swift_mailer/library.php on line 237 Here is line 237 $email->setCharset($settings["charset"]); Here it is with the if line preceding it: if (isset($settings["charset"]) && !empty($settings["charset"])) $email->setCharset($settings["charset"]); What am I doing wrong? RE: Swift Mailer Fatal Error on Submit - kipshaw - Sep 25th, 2011 My goof - I had an empty email template that was causing the hiccup. All is well now. Except I can't get the time offset to work - put it both my main account settings and also in the field settings. The email comes with the correct time in the header. But the submission and mod date in the body of the email has the server date, which is Pacific Time, and all our clients will most likely be eastern time. I set the offset for 3 hours, but it isn't working. |