Use the ’eFormOnMailSent’ event and set &noemail to 1. $protectSubmit is supposed to protect against multiple mailings, or submissions, or db updates (using eForm2db). ’eFormOnBeforeMailSent’ is for events to occur before the form is actually submitted.
However, I invoke the eFormOnBeforeMailSent method to use eForm2db, however, eFormOnBeforeMailSent comes BEFORE thecheck...if( $protectSubmit ){
...Should it come after??
I have no idea
So, I guess what I want to know now is, when/why would you want to invoke eFormOnBeforeMailSent before if( $protectSubmit ){ .. ?

[!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[(email_sender)]` &fromname='Adrian Lawley' &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &gotoid=`46`!]

fromname is using single-quotes, not back-tics.
and it’s [(emailsender)].

Sorry, was thinking you were referring to the default MODx email, as set in the site configuration.
So that I could try and find the error.
This discussion is closed to further replies. Keep calm and carry on.