I’m using Campaign Monitor for subscriptions. Campaign Monitor uses it’s own ‘action’ script to process the form. Is there any way to add an additional script to send to an email address? For example, if I was to javascript, I would be able to add something like:
<form action="mailto:you@yourdmainhere.com"...>
But since Campaign Monitor has its own form action script, is there a way to add any additional code to send this form to an additional email?
No, I’m afraid that won’t work. The problem is that some people may fill out the form twice, in which case campaign monitor does not add double emails to the list. If someone fills it out twice, it’s only entered in the list once (which is ok). but i would only be notified the first time; so i wanted it to go through the list process, but get notified regardless.
“to send this form”… i’m afraid in order to get any sort of actual helpful response, we would need to see “this form”, as you’re asking us to make blind assumptions about what the form currently does. As we’re not the Campaign Monitor Forums, that knowledge cannot be presumed.
There doesnt appear to be any script set to capture the form before it gets posted… so theoretically you could capture it with javascript or point the form at a local PHP script and then forward the data array on…
Yup, that’s a remote server script though, right? So you could point the action to localprocess.php on your own site, use that PHP page to send the email to yourself, and then use PHP to post the data ahead to the target script.
I’m familiar with using a local script to process to an individual email (or emails), but then how does it work to include within the script to process the data to the target ‘http://email.companynamea.co’ script?
Well it somewhat depends on what the user’s expected experience is at the remote site - if the receiving script simply bounces the user back to your site after processing the form, you can safely send the data from your script to theirs via [FPHP]cURL[/FPHP]. If the user is expected to interact with the remote site, however, you’ll probably be better off intercepting the data at submit-time with javascript, firing the data at your local code, and then allowing the form to process as normal.
Well i would have thought that Campaign Monitor would have an option to notify you via email when someone submits a form… there’s no value in seeing when someone accidentally submits the form twice.
it does, but not when the user has submitted more than once, which is something Campaign Monitor filters. Thus the possible option to send it to an alternate email address while executing the Campaign Monitor script.