Campaign Monitor form signup to additional email address?

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?

Do you mean something like this?

https://www.campaignmonitor.com/blog/post/3931/introducing-subscriber-notifications

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.

Will this work, StarLion?

<form action="http://email.companynamea.co/t/j/s/xijtud/" method="post" id="subForm">
    <p style="margin-bottom: -2px">
        <label for="fieldName">Name*</label>
  <div style="font-family: Arial; 
font-size: 12px; color: grey;">This will be the name that the payment is made out to.</div>
        <input id="fieldName" name="cm-name" type="text" />
 
    <p>
        <label for="fieldEmail">Email*</label><br />
        <input id="fieldEmail" name="cm-xijtud-xijtud" type="email"  />
    </p>
    <p>
        <label for="fieldbliidh">Phone (optional)</label><br />
        <input id="fieldbliidh" name="cm-f-bliidh" type="text" />
    </p>
 <p style="margin-bottom: -2px">
        <label for="fieldbliidk">Address*</label><br />
     <div style="font-family: Arial; 
                 font-size: 12px; color: grey;"> Where you'd like payment to be sent.</div>
        <input id="fieldbliidk" name="cm-f-bliidk" type="text" />
    
    <p>
        <label for="fieldbliidu">City*</label><br />
        <input id="fieldbliidu" name="cm-f-bliidu" type="text" />
    </p>
    <p>
        <label for="fieldbliihl">State*</label><br />
        <select id="fieldbliihl" name="cm-fo-bliihl">
            <option value=""></option>
            <option value="1298651">Alabama</option>
            <option value="1298652">Alaska</option>
            <option value="1298653">Arizona</option>
            <option value="1298654">Arkansas</option>
            <option value="1298655">California</option>
            <option value="1298656">Colorado</option>
            <option value="1298657">Connecticut</option>
            <option value="1298658">Delaware</option>
            <option value="1298659">District of Columbia</option>
            <option value="1298660">Florida</option>
            <option value="1298661">Georgia</option>
            <option value="1298662">Hawaii</option>
            <option value="1298663">Idaho</option>
            <option value="1298664">Illinois</option>
            <option value="1298665">Indiana</option>
            <option value="1298666">Iowa</option>
            <option value="1298667">Kansas</option>
            <option value="1298668">Kentucky</option>
            <option value="1298669">Louisiana</option>
            <option value="1298670">Maine</option>
            <option value="1298671">Maryland</option>
            <option value="1298672">Massachusetts</option>
            <option value="1298673">Michigan</option>
            <option value="1298674">Minnesota</option>
            <option value="1298675">Mississippi</option>
            <option value="1298676">Missouri</option>
            <option value="1298677">Montana</option>
            <option value="1298678">Nebraska</option>
            <option value="1298679">Nevada</option>
            <option value="1298680">New Hampshire</option>
            <option value="1298681">New Jersey</option>
            <option value="1298682">New Mexico</option>
            <option value="1298683">New York</option>
            <option value="1298684">North Carolina</option>
            <option value="1298685">North Dakota</option>
            <option value="1298686">Ohio</option>
            <option value="1298687">Oklahoma</option>
            <option value="1298688">Oregon</option>
            <option value="1298689">Pennsylvania</option>
            <option value="1298690">Rhode Island</option>
            <option value="1298691">South Carolina</option>
            <option value="1298692">South Dakota</option>
            <option value="1298693">Tennessee</option>
            <option value="1298694">Texas</option>
            <option value="1298695">Utah</option>
            <option value="1298696">Vermont</option>
            <option value="1298697">Virginia</option>
            <option value="1298698">Washington</option>
            <option value="1298699">West Virginia</option>
            <option value="1298700">Wisconsin</option>
            <option value="1298701">Wyoming</option>
        </select>
    </p>
    <p>
        <label for="fieldbliihr">Zip*</label><br />
        <input id="fieldbliihr" name="cm-f-bliihr" type="text" />
    </p>
  <p style="margin-bottom: -2px">
        <label for="fieldbliihy">Total Face Value Of Stamps (optional)
          <a href="sellunusedstamps.com"><img src="https://cdn4.iconfinder.com/data/icons/6x16-free-application-icons/16/Help_symbol.png"></a>
    </label></p>
        <input id="fieldbliihy" name="cm-f-bliihy" type="text" />

    <p>
        <label for="fieldbliihj">Description Of Stamps / Special Instructions (optional)</label><br />
        <textarea id="fieldbliihj" name="cm-f-bliihj" type="text" ROWS="3" COLS="45"> </textarea>
    </p>
    <p>
  <br>
        <input class="button sqs-system-button sqs-editable-button" type="submit" value="NEXT >"/>
    </p>
</form>

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…

The script is ing the form’s action:

<form action="http://email.companynamea.co/t/j/s/xijtud/...

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.

So then is it more work than it’s worth?

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.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.