Support » Plugin: Contact Form by BestWebSoft » [Plugin: Contact Form] Need "from" Email to work with spam prevention

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

    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?

    Plugin Author bestwebsoft

    (@bestwebsoft)

    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

    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)

    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.