I recently upgraded one of our client's sites from Evolution 1.0.7 to Evolution 1.0.8 and all of the forms using the eForm snippet have stopped sending email. Thankfully, the onValidate function we're using to populate a database table with the entries is still working, but it would still be nice if the emails went through as well.
Any suggestions/help would be greatly appreciated.
The 1.0.8 update only changed the Forgot Manager Plugin so unless you had a corrupt upload of something in the eForm folder or overwrote some customisation in the eForm snippet it's difficult to see how the upgrade would have been the culprit.
-
☆ A M B ☆
- 24,524 Posts
I know I lost more than one email feature when upgrading and overwriting an eForm that had been customized to use SMTP mailing instead of the PHP mail() function that eForm comes with.
-
☆ A M B ☆
- 24,524 Posts
If you upgraded the eForm snippet, it overwrote your modified version that used swiftmailer. Normally eForm uses the phpmailer class from /manager/includes/controls. If you had eForm modified to use SMTP, that also was overwritten to use the default php mail() function.
When doing modifications to a standard installed snippet, it's best to actually clone it by copying the whole assets/snippets/eform directory as well as the snippet in the Manager, then rename your cloned version eg. smtpForm, directory and snippet, then use that snippet instead of eForm. That way when you upgrade, you don't have to worry about overwriting your modifications.
-
☆ A M B ☆
- 39 Posts
Hi Susan
Thank you for your reply.
I checked the new versions of the eForm and swiftmailer snippets against the original versions and did not find any code modifications that would have impacted on their respective functions. I have since reverted to installing PEAR onto the new host server and use SMTP auth to process the confirmation emails, which now works (save for a couple of minor oddities that I will post separately).
While still being a relative novice with all this, I suspect it was more of an issue with the new host servers configuration and PHP settings than with the eForm snippet. I do note and appreciate your advise regarding the practice of cloning any snippets for modification purposes and thank you for your help with this.