Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1044978

    Hi
    I noticed that when filling in the contact form on my website that if I used an email address other than one from the same domain as the website the email to the recipient would not be sent. I amusing Siteground to host the website and did contact them to see if they had any setting that would need to be changed on the Siteground server and they said there was not.

    This is the issue in more detail

    If I entered an email address with (Email address hidden if logged out) the email was sent

    If I entered an email address with (Email address hidden if logged out) the email was not sent

    I fixed it with the code below that I found in another Enfold forum thread and email addresses other than my own domain name now get sent.

    add_filter(‘avf_form_from’, ‘avf_form_from_mod’, 10, 3);
    function avf_form_from_mod($from, $new_post, $form_params) {
    $from = ” (Email address hidden if logged out) “;
    return $from;
    }

    I believe that it had been working before I updated to 4.5

    I also see a new field in the contact form on 4.5 title “Autoresponder from email address” which I did have set to the sender address containing the same domain name as the website.

    Can you tell me if I need to make the change to the functions.php file with any site I upgrade to 4.5 or if there is a better solution.

    • This topic was modified 5 years, 11 months ago by brenf15.
    #1045445

    Hey brenf15,

    This is how mail works, you kind of cannot send mail from another domain. You might want to consider using some plugin for SMTP mail.

    Best regards,
    Victoria

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.