WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form
[resolved] Need "from" Email to work with spam prevention (6 posts)

  1. RDultsin
    Member
    Posted 1 year ago #

    The plugin is neat and simple, but doesn't work on DreamHost, which has enabled spam prevention policy: http://www.dreamhoststatus.com/2012/04/04/improvements-to-outgoing-spam-prevention-policy/. In order to make the plugin work, an additional "from" Email address has to be added to the settings. Due to the lack of such feature I recommend using "Easy Contact Form" plugin instead of this one.

    http://wordpress.org/extend/plugins/contact-form-plugin/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    In our plugin the 'from' field can be filled with user's e-mail who is write to admin via contact form. We know that some servers are not allow to fill 'from' field with other e-mails (registrated e-mails only), but it happens on specified servers.

    Best regards,
    Oksana

  3. Ipstenu-DH
    DreamHost Rep
    Posted 1 year ago #

    bestwebsoft - Would it be possible to make that customizable? That is send from either the person submitting the form or a generic wordpress@domain.com account?

  4. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    generic wordpress@domain.com account - if server check it on spam and doesn't find such kind of email, there is no difference, the message will marked as spam.

    We are thinking about this ability and planing to start realisation process soon.

    Best regards,
    Oksana

  5. Ipstenu-DH
    DreamHost Rep
    Posted 1 year ago #

    True, but if the server checks on wordpress@domain.com and rejects based on it's non-existence, then WP will never be able to send any emails, so I think we're probably okay there ;)

    (wordpress@ is the account WP uses when sending registration emails after all)

  6. Jesse Gardner
    Member
    Posted 1 year ago #

    The solution is pretty simple. Change the following:

    $headers .= 'From: '.stripslashes( $_REQUEST['cntctfrm_contact_email'] )."\r\n";

    to:

    $headers .= 'From: '.stripslashes( $_REQUEST['cntctfrm_contact_name'] ).' <'.stripslashes( $_REQUEST['cntctfrm_contact_email'] ). ">\r\n";

    In lines 808, 826, and 862 of contact_form.php.

    In a nutshell, this passes the name AND the email address in the mail header.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic