I would like to do two things:
- send a copy of an email sent via a frontend contact form to the sender, if the user has ticked a checkbox, with a different subject,
- send a copy of an email sent via a frontend application form to the sender, with some added intro text in the message and a different subject.
I had a look at the code in the email plugin and noticed a convenient hook, onEmailMessage, which is fired just before the message is sent. I figured I could just jump in there, copy the whole message, tweak the subject, the recipient and the actual body text a bit, and send that copy off, buuuuuuut I can't seem to change anything in the copy (I don't know how) and also I'm not sure that is a good way to go about it?
Any ideas are much appreciated…