cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




New cform filter

Add a New Topic Reply to Post
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.

Add a New Topic Reply to Post


Reply to Topic: New cform filter
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 8 + 4        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)