Hi,
I’ve added an eform to my modx site. Everything runs smoothly except no mail is sent.
I know that I am able to send mail from my server, as I have carried out simple mail scripts.
I’m just wondering what other possible reasons why eform isn’t sending out mail?
Here are my chunks and snippet call:
chunks:
eFeedbackForm:
[+validationmessage+]
<form method="post" action="[~[*id*]~]" id="feedbackForm">
<p><label accesskey="n" for="name">Your Name</label>
<input type="text" name="name" maxlength="60" eform="Your Name::1:Expected at least two words:#REGEX /^\w+\s\w+/i" /></p>
<p><label accesskey="e" for="email">Your Email Address</label>
<input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" /></p>
<p><label accesskey="s" for="department">Subject</label>
<select name="department">
<option value="1">Website feedback</option>
<option value="2">Support request</option>
<option value="3">Feature request</option>
</select></p>
<p><label accesskey="c" for="comments">Comments</label>
<textarea cols="40" rows="10" name="comments" eform="Comments:html:1"></textarea></p>
<p>
<label accesskey="c" for="vericode">code</label>
<input type="text" name="vericode" size="20" />
</p>
<p><input type="submit" name="submit" value="Send Feedback"></p>
</form>
eFeedbackReport
<p>This is a response sent by [+name+] using the feedback form on the website. The details of the message follow below:</p>
<table>
<tr valign="top"><td>Name:</td><td>[+name+]</td></tr>
<tr valign="top"><td>Email:</td><td>[+email+]</td></tr>
<tr valign="top"><td>comments:</td><td>[+comments+]</td></tr>
</table>
<p>You can use this link to reply: <a href="mailto:[+email+]?subject=RE:[+subject+]">[+email+]</a></p>
eFeedbackThanks
<h3>Thank you for your feedback</h3>
<p>Below is a copy of your message:</p>
<table>
<tr><td>Your name:</td><td>[+name+]</td></tr>
<tr><td>Your email address</td><td>[+email+]</td></tr>
<tr valign="top"><td>Your comments</td><td>[+comments+]</td></tr>
</table>
snippet call:
[!eForm? &formid=`feedbackForm` &to=`[(emailsender)]` &tpl=`eFeedbackForm` &report=`eFeedbackReport` &thankyou=`eFeedbackThanks` &subject=`ABC`!]
I think it may be a problem with the server configuration, I can’t seem to find any errors - although I have been staring at this for a while, I need new eyes!
Thanks.