Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    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

    Mika Epstein

    (@ipstenu-dh)

    DreamHost Rep

    bestwebsoft – Would it be possible to make that customizable? That is send from either the person submitting the form or a generic [email protected] account?

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hello,

    generic [email protected] 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

    Mika Epstein

    (@ipstenu-dh)

    DreamHost Rep

    True, but if the server checks on [email protected] 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)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Contact Form] Need "from" Email to work with spam prevention’ is closed to new replies.