I have looked a lot for this but cannot find any dedicated solution. Basically I want to do this: How to send email from Craft 3 custom plugin? … but for a Craft 2 plugin.
A how-to for the global email settings would be already helpful, but ideally we would like to use not those SMTP settings in the global email settings but dedicated ones for another email address. Can this be done?
Thanks!
edit August 8th: no ideas? Any help is welcome!
In the meantime I have already tried this way, but I get a internal server error «Class 'EmailModel' not found».
Regarding the 2nd half of my post: I meant how I could change the global settings with server etc. and its from-address to something defined completely in this code?
– romadev Aug 12 '19 at 08:04