Hi there!
I'm breaking my head over this. I can't seem to get my contact form working. Anyone mind taking a peek? I've tried the debugging mode, and the log.txt file filed: Delivery Success, though no email came through.
Basically my code looks like this:
What am I doing wrong?
I'm breaking my head over this. I can't seem to get my contact form working. Anyone mind taking a peek? I've tried the debugging mode, and the log.txt file filed: Delivery Success, though no email came through.
Basically my code looks like this:
- Code: Select all
<cms:form action='' method='post' id='contact_form'>
<label for="name">Name</label>
<cms:input type='text' name='name' id='name' required='1' />
<cms:if k_error_name>
<p id='name_error' class='error' style="display:block">Insert a Name</p>
</cms:if>
<label for="email">Email Address</label>
<cms:input type='text' name='email' id='email' required='1' validator='email' />
<cms:if k_error_email>
<p id='email_error' class='error' style="display:block">Enter a valid email address</p>
</cms:if>
<label for="message">Message</label>
<cms:input type='textarea' name='message' id='message' required='1' rows="30" cols="30"></cms:input>
<cms:if k_error_message>
<p id='message_error' class='error' style="display:block">Enter a message</p>
</cms:if>
<cms:if k_success >
<p id='mail_success' class='success' style="display:block">Thank you. I'll get back to you as soon as possible.</p>
<cms:send_mail from=k_email_from to=k_email_to subject='Feedback from your site'>
The following is an email sent by a visitor to your site:
<cms:show k_success />
</cms:send_mail>
</cms:if>
<input type='submit' id='send_message' class="button" value='Submit' />
</cms:form>
What am I doing wrong?