The contact form on my website is not working – how do I properly configure my 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 Mailboxes section of your Web Hosting Control Panel (Email > Email Manager > Mailboxes). 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:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <?
    $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 ticket using the link at the bottom of this page.

  3. 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:

Log in to the administrator’s panel and go to the “Global Configuration” menu.
Click on the “Server” tab, browse to the “Mail Settings” section and select the sending method:

  • When the PHP Mail function is selected
    Set the “Mail from” address to an e-mail account handled by our mail servers, i.e. present in your Email Manager and fully functional.
  • When Sendmail is selected
    Make sure the “Sendmail Path” is set to: /usr/sbin/sendmail
  • When SMTP Server is selected
    Make sure SMTP Authentication is set to “Yes“.
    Use your full e-mail address hosted with us for SMTP Username.
    Use your mail server for SMTP Host (or use mail.supremecluster.com)

 

Moodle

Log in as administrator and go to Site Administration> Server.
From the extended list select “Email” and make sure that the “No-reply address” and “Support email” fields are set to e-mail accounts handled by our servers, i.e. present in your Email Manager and fully functional.

 

phpBB3

Log in as administrator. Go to the ACP (Admin Control Panel), select the “General” tab, navigate to “Client communication” and click on E-mail settings. Make sure that the “Contact e-mail address:” and “Return e-mail address:” fields are set to use email accounts handled by our servers, i.e. present in your Email Manager and fully functional. Also make sure that the “Enable board-wide e-mails:” setting is enabled.

WordPress

Log in as administrator, click on the “Settings” link in the admin menu and make sure that the “E-mail address” field is set to use an email account handled by our servers, i.e. present in your Email Manager and fully functional.