-
AuthorPosts
-
February 20, 2018 at 12:04 am #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.
February 20, 2018 at 5:17 am #914682Hey 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,
MikeFebruary 20, 2018 at 8:51 pm #915006Ahoy 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.
February 21, 2018 at 2:01 am #915135Hi,
Good that rules one possible error out, let us know what you find out from the host.Best regards,
MikeFebruary 26, 2018 at 10:12 pm #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?
February 27, 2018 at 2:04 am #918130Hi,
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,
MikeFebruary 27, 2018 at 9:12 pm #918638Hi @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.
February 28, 2018 at 3:14 am #918773Hi,
I see that you are getting errors:
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 luvitjewelry
com 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,
MikeFebruary 28, 2018 at 8:50 pm #919267Update* 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…
March 1, 2018 at 2:25 am #919339Hi,
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,
MikeMarch 2, 2018 at 1:11 pm #920309some 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
March 2, 2018 at 1:35 pm #920317hm 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-MailEdit: no – onetime it works – the other time not ??
- This reply was modified 6 years, 9 months ago by Guenni007.
March 5, 2018 at 3:10 am #921263Hi,
Where can we see the contact form? Do you notice missing class attributes or something?
Best regards,
IsmaelMarch 6, 2018 at 5:15 pm #922414the 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 setupMarch 9, 2018 at 3:21 am #924226Hi,
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,
IsmaelMarch 9, 2018 at 5:01 pm #924611yes – you mean this one here ? https://kriesi.at/support/topic/contact-forms-not-sending-not-in-spam-or-inbox/#post-920309
March 10, 2018 at 5:32 pm #924959Hi,
@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:
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,
MikeMay 11, 2018 at 10:56 pm #955497Hi
I am having kind of the same issue. I do receive messages to my gmail accounts but not to mydomain emails
Please helpMay 12, 2018 at 1:45 pm #955742Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.