This forum requires Javascript to be enabled for posting content
Search
Select Forum
Announcements
Troubleshooting
Feature Requests
CSS Styling and Layout
Show and Tell
New/Recently Updated Topics
Don't show #usermessagea in URL
CC Option for User e-mail is blank
fatal error
Need to add additional parameter to...
cforms-captcha.php
How use the API to get specific fie...
Comment does not display
problem editing fiels settings
Adding Newsletter Form to side bar
Select Box Input Field Validation
Paypal integration
Generate PDF?
random in a multipart form
Displaying form Submissions in Post...
Customizing CSS for Form ... Having...
Post
Greg Bellucci - Guest
3:38 pm - June 16, 2008
Please replace the ??? with your data!
Your URL: http://???
The browser used: ???
cforms version: ???
Your Wordpress version : ???
[desc]: I have a client that would lke to modify the body of an email just before it is sent. Is there one location in the code (or several locations) where I could add a filter hook to cforms in which I can pass components of an email (i.e. subject, to, from, etc) to a filter subscriber for changes. Syntactically, the hook would probably look like:
apply_filters('cform_send', &to, &from, &subject, &body);
Maybe the hook could be placed at the top of cforms_phpmailer? Anything I should know? Is there a way to do this already?
_
Oliver
- Admin
11:39 pm - June 16, 2008
posts 3549
You'd have to build this in at the appropriate places, typically before any @mail() function call.
Reply to Topic: New cform filter
PLEASE READ THE FAQs FIRST! THANK YOU.