Sep 7th, 2016, 1:58 PM
I found two issues with the Swift Mail Upgrade files from the GitHub repository, and fixed them, so wanted to post the fix here, in case anyone wants to try this upgrade. I also notified Ben McClure, who placed the Swift Mailer upgrade on GitHub, so that he can fix the problem on his end.
Until that happens, anyone wanting to install and use this upgrade would need to add the following steps.
After first doing the steps in my first post of this thread to download and upgrade the Swift Mailer module:
1) On the GitHub repository, view the code for the file library.php in "raw" and copy/paste it into a new library.php file. For some reason, the copy of the library.php file that downloaded in the ZIP download is not the most current one that is needed, so this gets you the right copy.
2) now edit this library.php file and change line 164 to read
$email->setBody($email_components["html_content"], 'text/html');
3) Upload the new library.php file to your site's formtools swift_mailer folder at %formtools%/modules/swift_mailer
Until that happens, anyone wanting to install and use this upgrade would need to add the following steps.
After first doing the steps in my first post of this thread to download and upgrade the Swift Mailer module:
1) On the GitHub repository, view the code for the file library.php in "raw" and copy/paste it into a new library.php file. For some reason, the copy of the library.php file that downloaded in the ZIP download is not the most current one that is needed, so this gets you the right copy.
2) now edit this library.php file and change line 164 to read
$email->setBody($email_components["html_content"], 'text/html');
3) Upload the new library.php file to your site's formtools swift_mailer folder at %formtools%/modules/swift_mailer