WordPress.org

Ready to get started?Download WordPress

Forums

Email Before Download
Hosting company stopping sending mail without fifth parameter (1 post)

  1. designsbyko
    Member
    Posted 1 year ago #

    Love this plugin and have just used it in a cliet's website. All was working well until I moved the site to their hosting company and now the email option doesn't send to some email providers. It only seems to work when the email address the download is to be sent to is a gmail account.

    I have emailed the hosting company and this is the reply:-

    Please can you provide us the system requirements of this particular plug-in so that we can check if this is supported or not?

    To prevent spam being sent through our webservers, there are certain conditions
    that must be met before our SMTP servers will send the email.

    Email must be sent to, or from, an existing email address hosted by Streamline.
    This must be a mailbox on the same domain name on which the form to mail script
    is being hosted.

    To stop misuse of your form by third parties the sendmail_from variable should
    be set to your Streamline hosted email address. While access to the php.ini
    file is restricted on our shared environment, you can send this variable using
    the ini_set() command, shown below. 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:

    <?php
     ini_set("sendmail_from", "user@yourdomain.com");
     mail($email_to, $email_subject, $email_message, $headers, "-fuser@yourdomain.com");
     ?>

    Provided that your form to mail script meets the requirements above, you should
    have no problems. Third party scripts using sendmail will also work on
    Streamline servers, although some will need slight changes made in order to
    work correctly.

    Problem is I can't seem to work out where I would be able to add this from the code.

    Really hoping that someone may know how to get around this.

    http://wordpress.org/extend/plugins/email-before-download/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.