Your Cart is Empty Reseller Login or Sign up FAQ Search

How to properly configure an mail form

If you have a PHP-based contact form on your website and it does not work properly, i.e. it does not send e-mails, here is what you need to do:

  1. Make sure that the e-mail account of either the recipient or the sender of the message is hosted here. In order for your contact form to work properly it must comply with the following rule: the e-mail account of either the recipient or the sender of the message must be located in the E-Mail Manager section of your Web Hosting Control Panel. When you have a contact form on your website you usually want people to provide their e-mail address (sender), and you want the e-mail message to be sent to your e-mail (recipient). In this case you can only use an e-mail account hosted on this server as a recipient.
  2. Test with a simple PHP script that uses phpmail() If your contact form complies with the rule explained in (1) you can test whether you are able to send script-generated e-mails at all, using this simple PHP script:
<?
$from = 'From: TestSender';
$to = 'email@my-best-domain.com';
$subject = 'Subject';
$body = 'TEST';
if (mail ($to, $subject, $body, $from)) {
echo 'MAIL - OK'; } else {
echo 'MAIL FAILED';
}
?>

In the above example you must replace email@my-best-domain.com with one of your e-mail accounts present in the Email Manager. Should you receive an error "MAIL FAILED", please contact us by opening a support ticket.

If Sendmail is used, make sure the path is correct. If your script is using Sendmail to send messages, please make sure the sendmail path is set to "/usr/sbin/sendmail".

Setting up some popular web applications to comply with the rule that the e-mail account of either the recipient or the sender of the message must be located in your E-Mail Manager:

Joomla:

Moodle:

phpBB3:

WordPress:

« Back to menu