• harpersdesigns

    (@harpersdesigns)


    I have a stupid web host so I don’t receive any email from my contact form.

    Apparently I have to add some code to get it to work but I have no idea where I would add this in contact form 7.

    Thank you for your query

    To prevent spam being sent through our webservers, there are certain conditions that must be met before our SMTP servers will send the email.
    1) Email must be sent to, or from, an email address hosted by Streamline.net. An email address hosted by Streamline.net is not the same as a domain name hosted by Streamline.net. If your domain’s MX record points to another email provider, it will not count as being hosted by Streamline.net.

    2) To stop misuse of your form by third parties the sendmail_from variable should be set to your Streamline.net hosted email address. While access to the php.ini file is restricted on our shared environment, you can set this variable using the ini_set() command, shown below.

    3) A fifth parameter -f should be added to the sendmail function. This will set the name of the from email address.

    In its basic form, a simple sendmail script will look like this:

    ini_set(“sendmail_from”, ” [email protected] “);
    mail($email_to, $email_subject, $email_message, $headers, ‘[email protected]’);
    ?>

    Provided that you set the sendmail variable, before attempting to send the email. Specify the from address as a fifth parameter in the sendmail function, and the email is either to, or from, a Streamline.net hosted email address you should have no problems.

    Any help with this would be very much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘contact form 7 and stupid web host (streamline.net)’ is closed to new replies.