Forums

contact form 7 and stupid web host (streamline.net) (5 posts)

  1. harpersdesigns
    Member
    Posted 2 years ago #

    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", " user@yourdomain.com ");
    mail($email_to, $email_subject, $email_message, $headers, '-fuser@yourdomain.com');
    ?>

    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!

  2. sultzy
    Member
    Posted 2 years ago #

    Have exactly the same problem. Streamline are fairly popular so I doubt we are the only ones with this issue.

  3. sultzy
    Member
    Posted 2 years ago #

    Obviously it is the missing fifth parameter that is causing the mail to be refused. Any help to which of the plug-ins files should be altered to include this code would be very helpful.

  4. ldexterldesign
    Member
    Posted 2 years ago #

    Leave them. I did :]

    You may also find this useful: http://wordpress.org/extend/plugins/wp-mail-smtp/

  5. sultzy
    Member
    Posted 2 years ago #

    I like the look of that plug-in. I don't suppose it would work with contact form 7 though without some major adjustments?

Topic Closed

This topic has been closed to new replies.

About this Topic