Sep 25th, 2011, 8:33 AM
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?
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?