Thanks for a great plugin. I am wondering where the best place is to inject some code that will encrypt the email body text. I know how to do it using my-functions.php, but if I go that route than I have to do a lot more formatting than I want to do, so I'd like to just be able to inject that encryption code wherever the email body is being created by cforms. Problem is, I can't find the correct file that cforms ultimately uses to write the email body. I've gone into a bunch of files to try to track it down, but when I comment out where i THINK the body is being writen and replace it with some text like "this is the body" as a test, I still receive the regular email… so my test text isn't getting read in these files: lib_nonajax.php, cforms_phpmailer.php, class.phpmailer.php). Can you point me in the right direction?
Note that there is no error-checking, which is poor programming practice. You could probably add that in by doing something like this instead (untested):
What this does is encrypt the body of the non-ajax admin email. The reason I edited lib_nonajax.php instead of using my-functions.php to do it is that the admin email is so nicely formatted and I just didn't have the time to figure out how to duplicate that in my-functions.php.