Problems, need help? Have a tip or advice? Post it here.
8 posts Page 1 of 1
Hi,
I tried to use the contact form as described in the tutorial, but it doesn't work at all (it doesn't detect errors, nor does it send the mail).

I followed the instructions properly, but I still don't get it… I even tried and upload the contact page of Aurelius as is, it doesn't work either.

My hosting is at go daddy.com, I think they are reliable. What do you think happen?

Best regards,
Paolo

There's the code, I can't attached it

<?php require_once( 'paoloweb/cms.php' ); ?>

<!DOCTYPE html>

<head>

<title>Vietnam Website Design And Development</title>

<meta name="description" content="Vietnam Website Design And Development">
<meta name="keywords" content="vietnam, website, design, development, SEO, responsive, CMS">

<meta name="robots" content="ALL">

<cms:embed 'headbase.html' />

</head>

<body>

<cms:embed 'header.html' />

</header>
<!--breadcrumbs -->
<div class="container breadcrumbs">
<h1>Contact Us</h1>
<div>You are here: &nbsp&nbsp<a href="#">Home</a> &nbsp/&nbsp Contact</div>
</div>

<!--container-->
<section id="container">
<div class="container">
<div class="row">
<section id="page-sidebar" class="alignrleft span9">
<article>
<h3>Contact us</h3>
<cms:editable name='contact_intro' label='Introductory text' type='richtext'>
Etiam imperdiet, ante at porttitor rutrum, felis nisi pellentesque enim, vel viverra quam orci eu massa.
Integer commodo, velit eget dapibus tincidunt, mauris ligula porttitor sapien, eget rhoncus dolor mi eu velit.
Fusce mattis dui eu velit fringilla viverra. Aliquam non nibh non orci imperdiet venenatis.
Quisque varius orci a lacus adipiscing id tempus elit pharetra.
</cms:editable>
</article>

<hr />
<cms:form action='' method='post' id='contact_form'>

<div class="af-outer af-required">
<div class="af-inner">
<label for="name" id="name_label">Your Name:</label>
<cms:input type='text' name='name' id='name' required='1'/>
<cms:if k_error_name>
<label class="error" for="name" id="name_error">Name is required.</label>
</cms:if>
</div>
</div>
<div class="af-outer af-required">
<div class="af-inner">
<label for="email" id="email_label">Your Email:</label>
<cms:input type='text' name='email' id='email' required='1' validator='email'/>
<cms:if k_error_email>
<label class="error" for="email" id="email_error">Email is required.</label>
</cms:if>
</div>
</div>
<div class="af-outer af-required">
<div class="af-inner">
<label for="input-message" id="message_label">Your Message:</label>
<cms:input type='textarea' name='message' id='message' required='1'></cms:input>
<cms:if k_error_subject>
<label class="error" for="input-message" id="message_error">Message is required.</label>
</cms:if>
</div>
</div>

<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>


<div class="af-outer af-required">
<div class="af-inner">
<input type="submit" name="submit" class="form-button btn" id="submit_btn" value="Send Message!" />
</div>
</div>
</cms:form>
</section>




<!--sidebar-->
<aside id="sidebar" class="alignright span3">
<section>
<div class="title-divider">
<div class="divider-arrow"></div>
<h4>Address</h4>
</div>
<address>
<strong>Vietnam Website Design</strong><br>
28 Do Quang Dau street,<br>
District 1,<br>
Ho Chi Minh city, 700000<br>
Vietnam<br>
<abbr title="Phone">P:</abbr> (+84)93 33 76 918
</address>
<address>
<strong>Paolo Euvrard</strong><br>
<a href="mailto:#">paolo@paolowebdesign.com</a>
</address>
</section>
<!--twitter -->
<section id="twitter-sidebar">
<div class="title-divider">
<div class="divider-arrow"></div>
<h4>Twitter</h4>
</div>
<div class="twitter"></div>
<cms:embed 'twitter.html' />

</section>
</aside>
</div>
</div>
</section>

<cms:embed 'footer.html' />

</body>
</html>
<?php COUCH::invoke(); ?>
Hi,

Let us test first if the email tag is working at all on your setup.

For that, please put in your valid email addresses in the following code snippet and place it somewhere at the top of your template (i.e. outside the form success condition). The idea is that accessing the template everytime should execute and send the test mail.
Code: Select all
<cms:send_mail from='you@gmail.com' to='you@gmail.com' debug='1' subject='Feedback from your site'>
This is a test message.
</cms:send_mail>

See if the email gets through. Since the debug parameter is set you should also get a 'log.txt' file in your site's root. Please take a look at it and see if it tells something.

If the step above fails to send the mail, please set the following in config file to '1' -
// 15.
// By default the inbuilt php function 'mail()' is used to deliver messages.
// On certain hosts this function might fail due to configuration problems.
// In such cases, set the following to '1' to use an alternative method to send emails
define( 'K_USE_ALTERNATIVE_MTA', 1 );

Try accessing the template once again and see if this works.

Please let us know how it goes.
Thanks.
Hi,

I try to send a mail with
<cms:send_mail from='paolo@paolowebdesign.com' to='sales@vietnamsales.com' debug='1' subject='Feedback from your site'>
This is a test message.
</cms:send_mail>

and it worked like a charm, no problem.

What next?

Regards,
Paolo
Have you configured K_EMAIL_TO and K_EMAIL_FROM appropriately in config.php since you are using them in your send_mail tag?
yes sure:
// 13.
// Your Email address. Will be used in contact forms.
define( 'K_EMAIL_TO', 'sales@vietnamsales.com' );

// 14.
// Will be used as the sender of messages delivered by contact forms to the address above.
define( 'K_EMAIL_FROM', 'paolo@paolowebdesign.com' );
Paolo, I tested your code on my local setup and it seems to be working just fine.

Please add debug='1' to the send_mail tag within form and take a look at the log.txt file to ascertain that all the parameters are being passed as expected.

Let us know.
Thanks.
Hi,

it's still doesn't work, no more than pretty url works as well.

I tried the code on http://hopper-paintings.com/reproduction/

and you're right, it works. It might be a problem with godaddy hosting.

Any idea why?

The form doesn't bother me much, I can set-up a SMTP form directly, but the pretty url is a problem…

regards,
Paolo

PS: I had
<cms:send_mail from=k_email_from to=k_email_to subject='Feedback from your site' debug='1'>

no result
Please PM me FTP + Couch creds for your site, Paolo.
I'll have to login to see for myself what is going wrong.

Thanks.
8 posts Page 1 of 1
cron