Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #914593

    Ahoy,

    I’m having some trouble with the contact forms on my website. I don’t receive any emails to the email in the contact form. I have tried a few different emails on the backend form but nothing is being sent. Things are typed correctly as well.

    #914682

    Hey mcraig77,
    There are a few different issues that can cause this, first are you using a gmail or yahoo email address to test with to send to a gmail or yahoo address? In this case it will be dropped and not even reach the spam folder.
    Second does your webhost have spam assassin or other spam protection installed? In this case they may require a static sender address and a “reply to” mail header. You will need to ask them if this is true and what they require. Which this code to the end of your functions.php file in Appearance > Editor should solve:

    add_filter( 'avf_form_from', 'enfold_customization_contact_form_etc', 10, 3 );
    function enfold_customization_contact_form_etc( $from, $p1, $p2 ) {
    	global $enfold_custom_from_header;
    	$enfold_custom_from_header = $from;
    }
    add_filter( 'avf_form_mail_header', 'enfold_customization_contact_form_etc2', 10, 3 );
    function enfold_customization_contact_form_etc2( $header, $p1, $p2 ) {
    	global $enfold_custom_from_header;
    	$header .= 'Reply-To: ' . $enfold_custom_from_header . '\r\n';
    	return $header;
    }

    Third, are you using SMTP for your WordPress mail? In this case the “From” value in SMTP is authenticated and only an authorized address is permitted to send through that SMTP gateway. If so this code to the end of your functions.php file should solve:

    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;
    }

    Please adjust the address in the code.
    I recommend checking the first step first, that is testing without gmail or yahoo addresses. Then ask your webhost if they are using spam protection that you need to know about. Then try using the WP Mail Logging plugin to see if your site is sending the emails and if there are any errors. Also check out this info: http://kriesi.at/documentation/enfold/my-contact-form-is-not-sending-emails/
    With this info you will know which of the above functions may help, please don’t use both at the same time.
    If none of this helps, let us know what you learned from your webhost and have the plugin installed & please include a admin login in the private content area so we can take a closer look.

    Best regards,
    Mike

    #915006

    Ahoy Mike,

    I’m not using a gmail or yahoo email for the contact forms. One account was setup with Office 365 and the other is a webmail account with my website. I did just try it with a gmail address but no luck as well.

    I will reach out to my hosting and circle back.

    #915135

    Hi,
    Good that rules one possible error out, let us know what you find out from the host.

    Best regards,
    Mike

    #918060

    @mike It looks like there is no spam assassin on my website. We discovered that there is no SMTP configured on WordPress. I tried the second bit of code in a snippet and tested but nothing was received as well.

    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’m not sure how an address is authorized and permitted though…How do I find this?

    #918130

    Hi,
    Ok, so no gmail or yahoo, the email is going to your server, and no spam assassin on your server.
    Lets try using the WP Mail Logging plugin to see if your site is sending the emails and if there are any errors.
    Please include a admin login in the private content area so we can take a closer look and run some tests.
    I will try using the plugin and change the email to my address temporarily to find the error.
    This was the “Schedule a Free Demo” on your homepage right?

    Best regards,
    Mike

    #918638

    Hi @mike,

    Yeah, no gmail or yahoo. I did try to add an additional gmail address in the form as well but nothing went through. There are multiple contact forms that aren’t working. Each page has a contact form in a red box area. There is also a contact form on the contact page that is a little different. I installed that plugin and it looks like it is logging the emails but still not receiving anything on the other end.

    #918773

    Hi,
    I see that you are getting errors:
    2018-02-27_195407
    When you hover over the icon it says: “could not instantiate mail function” Typically the solution is: “Its WP Mail that’s causing the problem. Changed it to SMTP and it works

    Please try to set up a SMTP with WP Mail SMTP by WPForms
    But please note that contacting your host could result in a solution, such as this case:

    I eventually got some help from Bluehost after I was put on to a Senior Advisor. This is what he said, “We were able to remove the block from your emails. They were only blocked because they had the url luvitjewelrycom in them, but that was removed. Anyways, you and your site should be able to send out now. And be sure to audit your email lists, so this doesn’t happen again.”

    Best regards,
    Mike

    #919267

    Update* I resolved the issue with that recommended plugin. Thanks for your help!

    Thanks @mike,

    Yeah I see that as well. My client has some janky yahoo hosting but has office 365 for email. I tried the plugin you recommended but get an error when I put in the SMTP details and run a test message – errors come up. I’m going to see if Office 365 has any insight to this…

    #919339

    Hi,
    Glad to hear this has helped put you on the right path for a solution. Please share the Office 365 solution when you learn it.

    Best regards,
    Mike

    #920309

    some hosters do not accept different adresses than the one set in general options of the wordpress install.
    With CF7 – i now there is a different handling – and that works almost without any additional code .
    i tried your code :

    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;
    }

    but than the short message isn’t displayed after sending

    edit : and it is not sending – even when i use the code here: Link

    #920317

    hm strange behavior – if i choose the normal form color scheme – the message has been sent ???
    dark-transparent – : no sending – even to the wordpess admin e-Mail

    Edit: no – onetime it works – the other time not ??

    • This reply was modified 6 years, 8 months ago by Guenni007.
    #921263

    Hi,

    Where can we see the contact form? Do you notice missing class attributes or something?

    Best regards,
    Ismael

    #922414

    the thing has been happend on my webers-testseite.de
    so – the admin e-mail is the one i use allways on my pages. – So it has nothing to do with the website domain webers-testseite.de.
    maybe that is the reason why.
    on contact form 7 there was an input field for “from” and that had to be an e-Mail concerning to the website domain.
    For the reply they got an extra input field – that could be any e-mail you like. But it seems to be important that there is a congruency on “sending” e-mail account and domain. The CF7 Mails were allways delivered – the ALB Form not on that setup

    #924226

    Hi,

    Thank you for the info.

    hm strange behavior – if i choose the normal form color scheme – the message has been sent ???

    It’s quite odd that the color scheme will affect the email process. Have you tried using the “avf_form_from” filter to change where the email will be sent from?

    Best regards,
    Ismael

    #924611
    #924959

    Hi,
    @guenni007 I tried to reproduce your error with changing the color scheme of the contact mail form, but I always got the success message & the mail was always sent. Please see if this is the correct set up:
    Enfold 2017 demo, contact form element, email address same as site/admin email, color scheme set to dark, other settings:
    2018-03-10_102032
    no extra functions in functions.php (localhost test) PHP v7.0.3
    message recived:

    Subject: New Message (sent by contact form at v4.2.6)
    To:  (Email address hidden if logged out) 
    X-PHP-Originating-Script: 0:class-phpmailer.php
    Date: Sat, 10 Mar 2018 15:22:07 +0000
    From: " (Email address hidden if logged out) " < (Email address hidden if logged out) >
    Message-ID: < (Email address hidden if logged out) >
    X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer)
    MIME-Version: 1.0
    Content-Type: text/html; charset=utf-8
    
    Name: Mike <br/>E-Mail:  (Email address hidden if logged out)  <br/>Subject: Testing Dark Contact Form <br/> <br/>Message: Testing Dark Transparent Form Color Scheme <br/> <br/>

    I also tested with the function above.

    Best regards,
    Mike

    #955497

    Hi
    I am having kind of the same issue. I do receive messages to my gmail accounts but not to mydomain emails
    Please help

    #955742

    Hi,
    This sounds like your webhost is flagging as spam, often with tools such as spam assassin spam will not make it to the spam folder. Since it is making it to the gmail inbox, I would say your site in sending.
    I would ask your webhost if they require a certain field in the mail header, such as “reply-to”
    Another option is to use SMTP for sending your mail, instead of PHP mail.
    Please try to set up a SMTP with WP Mail SMTP
    If you do use SMTP, often the “From” value in SMTP is authenticated and only an authorized address is permitted to send through that SMTP gateway. If so this code to the end of your functions.php file should solve:

    
    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;
    } 

    But try contacting your webhost first to ensure we are looking at the correct issue.

    Best regards,
    Mike

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