I've been working on this for some time, but I just can't figure it out. (on J1.0.x)
I'm using a very simple form and set all the available parameters for sending e-mail, including the from-address. See the attached image for all settings.
I've tested sending e-mail by contact-form and this worked without problems. I've also tried switching between sending by PHP, sending by sendmail and sending by SMTP, but the results are the same for all settings.
This is the result if debugging is set:
(Fireboard seems to puke on the two empty brackets so i've replaced them)
My form:
And the template:
I'm using a very simple form and set all the available parameters for sending e-mail, including the from-address. See the attached image for all settings.
I've tested sending e-mail by contact-form and this worked without problems. I've also tried switching between sending by PHP, sending by sendmail and sending by SMTP, but the results are the same for all settings.
This is the result if debugging is set:
_POST: Array (
[naam] => Martijn
[email_aanmelder] => martijn@faces.nl
[partner] => Ja
[submitbutton] => Verstuur uw aanmelding
)
Case 2: Use template
E-mail: 'Yes' custom
Email not sent
From: *empty square brackets here*
To: martijn@h3groep.nl, martijn@faces.nl
Subject:
Beste Martijn,
[...]
(Fireboard seems to puke on the two empty brackets so i've replaced them)
My form:
<table>
<tr>
<td>Uw naam:</td>
<td><input type="text" name="naam" size="40" maxlength="60"></td>
</tr>
<tr>
<td>Uw e-mailadres:</td>
<td><input type="text" name="email_aanmelder" size="40" maxlenth="254"></td>
</tr>
<tr>
<td>Komt u met uw partner?</td>
<td><select name="partner">
<option value="Ja" selected>Nee</option>
<option value="Nee">Ja</option>
</select><td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submitbutton" value="Verstuur uw aanmelding"></td>
</tr>
</table>
And the template:
<p>Beste {naam},</p>
<p>U heeft zich aangemeld voor het 40-jarig jubileum van Reflex Nederland!</p>
<p>Wij hebben het volgende geregistreerd:
<ul>
<li>{naam}</li>
<li>{email_aanmelder}</li>
<li>Ik kom met mijn partner: {partner}</li>
</ul></p>
<p>Een routebeschrijving naar de feestlokatie is op de volgende website te bekijken:</p>
<p>Wij kijken er naar uit u te zien op [datum]!</p>
<p>Met vriendelijke groeten,<br />
Reflex Nederland</p>