Forums

Sending to 2 emailaddresses

Liesbeth 23 Jan, 2017
How do I create a form that is sent to 2 e-mailadresses: 1 to a standard e-mailadres and one to the e-mailadress that is added in the emailfield?

What I did is adding 2 e-mailactions:
- 1 emailactions sends the form to a standard (static) e-mailaddress
- the other e-mail to a dynamic e-mail address.

There are no issues reported, both email actions are enabled. A from address is filled in as well as a to address, subject and e-mailtemplate, etc.

Whatever I do, the form is just sent to one e-mailaddresss. If I disable one of the 2 e-mail actions, the form is sent correctly to the enabled one, if I disable the other e-mailaction, the form is also sent correctly to the other enabled one, so sending is not the problem, but when I use 2 actions it doesn't seem to work....

I tried to do this with one e-mailaction by filling in the standard (static) e-mail address as wel as the dynamic emailaddress.

(In the general settings also the standard e-mail address is filled.)

Thanks in advance for helping.

Kind regards,
Liesbeth
GreyHead 23 Jan, 2017
Hi Liesbeth,

Is this the same email you want to send to two addresses? If so you can use a single Email action with a Dynamic To address and a CC address.

There is no interaction between the two Email actions so the most likely answer is some problem with the Email settings. Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.

Bob
Liesbeth 23 Jan, 2017
Thanks for your quick reply.

I am now using a single email action with dynamic to address and cc address, but still the form is only sent to the dynamic to address.

Here's the debug info:

Array
(
    [8] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:info@skelp.org
                    [2] => Subject:aanmelding Lets via website
                    [3] => From name:Lets Leeuwarden
                    [4] => From email:letsleeuwarden@hotmail.com
                    [5] => CC:letsleeuwarden@hotmail.com
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<p>Beste Liesbeth Hiddema,</p>
<p>Bedankt voor je aanmelding bij Lets Leeuwarden. Hieronder vind je de gegevens zoals je die ingevuld hebt op de website.</p>
<p>Heb je nog vragen? Dan kun je bellen met Frank: 058-2122298</p>
<p>Hartelijke groet,<br />Lets Leeuwarden.</p>
<p> </p>
<table width="364" border="0" cellspacing="5" cellpadding="5">
<tbody>
<tr>
<td><strong>Naam*:</strong></td>
<td>Liesbeth Hiddema</td>
</tr>
<tr>
<td><strong>Straat*:</strong></td>
<td>Himdyk</td>
</tr>
<tr>
<td><strong>Huisnummer*:</strong></td>
<td>14</td>
</tr>
<tr>
<td><strong>Postcode*:</strong></td>
<td>9011 WR</td>
</tr>
<tr>
<td><strong>Woonplaats:</strong></td>
<td>Jirnsum</td>
</tr>
<tr>
<td><strong>Telefoonnummer*:</strong></td>
<td>0613009834</td>
</tr>
<tr>
<td><strong>Geboortedatum*:</strong></td>
<td></td>
</tr>
<tr>
<td><strong>E-mail*:</strong></td>
<td>info@skelp.org</td>
</tr>
<tr>
<td><strong>LETS handelsnaam:</strong></td>
<td>hoi</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
                )

        )

)
GreyHead 23 Jan, 2017
Hi Liesbeth,

Please change the From Email address to match the site domain. If you use a Hotmail address then the email will probably be marked as spam and dropped.

Bob
This topic is locked and no more replies can be posted.