Is there anything special I have to do in the modx configuration to get e-mail to work? Like set the mail server or something? Some setting in apache?
I’ve got everything working with eForm, except no e-mail goes out. Everything appears to function fine, but then I check the e-mail account I am sending test e-mails to and nothing.
[!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[(email_sender)]` ...
[!eForm? &formid=`[*pagetitle*]` &tpl=`eForm-login-tpl` &report=`eForm-tpl` &from=`[+user.email+]` &to=`[email protected]` &ccsender=`1` &subject=`[+subject+]` &allowhtml=`1` &submitLimit=`5` !]
<div class="eform">
<!--display error msg if any--><p class="error">[+validationmessage+]</p>
<form id="[*pagetitle*]" method="post" action="[~[*id*]~]" name="eForm-loggedin-input" enctype="multipart/form-data"/>
<label class="eform-label" accesskey="n" for="fullname">Name: </label><input class="eform-textinput" type="text" name="fullname" value="[+user.fullname+]" maxlength="60" eform="Name:string:1:Expected at least two words, please fill out your complete name:#REGEX /\w+\b\w{2,}/i" />
<label class="eform-label" accesskey="p" for="product">Product (if applicable): </label><input class="eform-textinput" type="text" name="product" value="" maxlength="30" eform="Product:string:0::" />
<label class="eform-label" accesskey="s" for="subject">Subject: </label><input class="eform-textinput" type="text" name="subject" value="" maxlength="30" eform="Subject:string:1:Please enter a subject:"/>
<label class="eform-label" for="message">Your Question: </label><textarea class="eform-textarea" rows="5" cols="40" eform="Question:html:1:Please enter a message to send.:"></textarea>
<input type="hidden" name="username" value="Posted by: [+user.username+]" eform="::0::" />
<input type="hidden" name="email" value="Email: [+user.email+]" eform="::0::" />
<input type="hidden" name="phone" value="Phone nr: [+user.phone+]" eform="::0::" />
<input type="hidden" name="mobilephone" value="Mobile Phone: [+user.mobilephone+]" eform="::0::" />
<input type="hidden" name="currentlogin" value="User logged in: [+user.thislogin+]" eform="::0::" />
<input type="submit" name="submit" value="Send" />
</form>
</div>[!eForm? &formid=`[*pagetitle*]` &tpl=`eForm-login-tpl` &report=`eForm-tpl` &from=`[+user.email+]` &to=`[email protected]` &ccsender=`1` &subject=`[+subject+]` &allowhtml=`1` &submitLimit=`5`!]
bcc => isset($bcc)? $(anti-spam-(anti-spam-(anti-spam-(anti-spam-(anti-spam-(anti-spam-(anti-spam-bcc:))))))):"",

Are you sending to the same address in both cases? I had one host that blocked outgoing email using the PHP mail() function to all but internal addresses (sending to my own email on the same server that the site was on).
This discussion is closed to further replies. Keep calm and carry on.