The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Swiftmailer mod for 'return-path' - 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: Swiftmailer mod for 'return-path' (/showthread.php?tid=107) |
Swiftmailer mod for 'return-path' - Chuck - Apr 4th, 2009 I left a post in the Form Tools / Modules / Other / Swiftmailer / Feature Requests thread asking for access to the header 'return-path' value for email. In the meantime I have a mod in place that puts a single email address into all Swiftmailer generated email for both text and html formats. The script I altered was: formtools/modules/swift_mailer/library.php Code: // now send the appropriate email This places the same return-path email on top of all email generated by Swiftmailer. I hope this helps others looking for a similar solution. Maybe this can make the official list as a feature request. Enjoy! Chuck RE: Swiftmailer mod for 'return-path' - Ben - Apr 5th, 2009 This is terrific! Thanks for posting your solution, Chuck. I'll definitely keep this in mind for future versions of the Swift Mailer module. What I'll probably do is make this a configurable option on the Edit Template page so users can enter it there. - Ben RE: Swiftmailer mod for 'return-path' - Chuck - Apr 5th, 2009 (Apr 5th, 2009, 9:02 PM)Ben Wrote: This is terrific! Thanks for posting your solution, Chuck. I'm not completly sure but you might want to consider adding a third line for the emails that have attachments: Code: // now send the appropriate email I haven't tested the third line but it looks like it should work. Thank you Ben! RE: Swiftmailer mod for 'return-path' - Ben - Apr 9th, 2009 Hey Chuck, I really liked your idea for this, so I've added it to the main core script. See the documentation here: http://modules.formtools.org/swift_mailer/documentation.php?page=undeliverable_emails Basically, a new field shows up on your Edit Email Template » Recipient tab, labeled "Undeliverable Email Recipient", where you can enter a custom email recipient for each email template. Note: it WILL require you to be running the latest version of the Form Tools Core, too. So when upgrading, just select both the Core + the Swift Mailer module. Enjoy! - Ben RE: Swiftmailer mod for 'return-path' - Chuck - Apr 9th, 2009 (Apr 9th, 2009, 5:11 PM)Ben Wrote: See the documentation here: Sweet! Thanks Ben! Just a note to others on the upgrade. After downloading the upgrade code and installing it onto my site I had to visit the Modules section and click on the Upgrade link for Swiftmailer. No big deal but if you don't take this step the new functionality won't be active. RE: Swiftmailer mod for 'return-path' - Ben - Apr 9th, 2009 Good point - thanks for mentioning that. RE: Swiftmailer mod for 'return-path' - esmoke - Apr 17th, 2011 Thanks for posting your solution |