lease replace the ??? with your data!
- Your URL: http://???
- The browser used: Firefox 3
- cforms version: 8.6
- Your Wordpress version: 2.6.1
[desc]: I use cforms II for my site's main contact form, and it works great. I am trying to add a second form that will allow the visitor to join an externally hosted ezmlm mailing list, and I'm having a bit of trouble.
The form consists simply of an {Email} field. When the user submits the form, I need to take that value, and manipulate it like this:
john@example.com
listname-subscribe-john=example.com@listdomain.com
The new format now becomes the "TO:" value. IOW, I need to manipulate the form's {Email} value after validation -- which I can do with the filters in my-functions.php -- and have that new value included as the Admin's Email list. Thus, I would get a copy, and a copy would go straight to the ezmlm list manager.
First problem, I have to use smtp, so the @mail() examples in your my-functions.php code won't do. I would like to handle this in one smtp session, but I don't know how to use the filters to add the new "TO:" value to the original form's Admin Email list (even making the new value a CC or BCC would suffice).
Any ideas? I tried one workaround, by creating a hidden field that would hold the new, calculated value, like so:
Email: john@example.com
Join_Address: listname-subscribe-john=example.com@listdomain.com
I have successfully used the post-validation filters to set the Join_Address field, but I don't know how to use the Join_Address field as one of the TO:, CC:, or BCC's.
Any help would be great :)
Thanks,
Steve
_