Emails not sending
-
Dear whom it may concern,
Recently after the 4.4 update I do not receive any emails.
Apparently, the only way to fix this error is to change the “From” settings in your contact form to have the senders address to be your own email address or another email address from your web server.
I have created an email from the host with my domain name, yet this still does not work.
What could be causing the problem?
-
Hey JTwordpress, nakathor, BrunoSousa, funkymonk145.
Try this:
1. Download WP-Mail-SMTP and activate the plugin. (Download here)
2. Make an Email account at your host starting with wordpress (So if your website is called https://www.testingthis.com, make an Email account called [email protected] and remember the password. (the default emails sent by wordpress start with wordpress)
3. Find out your hosts SMTP settings. (My website is hosted by Verzio so I googled “Verzio SMTP settings”. Every hosting company should have this.)
4. Login to your website, go to Settings -> Email. You should see something like this: SMTP page
5. Leave “From Email” EMPTY. “From Name” whatever you desire. Send all WordPress emails via SMTP. Return path UNCHECKED. Fill out the SMTP Host, Port Encryption, Authentication according to your hosts SMTP settings.
6. At Username, type in the email you created which starts with wordpress, at step 2 I created [email protected] as a test. FILL IN THAT EMAIL TOGETHER WITH THE PASSWORD TO THAT EMAIL. Save this and send a test mail to your email to see if you receive them. The test should come out as Boolean (true).
7. Go to your Contact forms. Click on E-mail. At “To” type in the email you would like the messages to go to. At “From” type in [your-name] <[email protected]>
8. At Additional Settings type in “Reply-to: [your-name] <[your-email]>”.Now you can try and see if it works. Hope it works!
Hey Marc2412, thank you for taking your time to help us.
I tried WP EASY SMTP plugin this morning and it didn’t work. So I gave a try to this other plugin (which do the same thing I guess), and I have exactly the same error :
SMTP Error: The following recipients failed: ****@gmail.com: sorry, that domain isn’t allowed to be relayed thru this MTA, smtpauth: no [mail694] (#5.7.1)
I tried different e-mail for the test email (like @hotmail, @gmail and one email account at my host) but I have the same error…
Edit : Nevermind ! My bad, I forgot to give the authentication name and password, the test worked fine, I’ll try with the contact form and edit this message.
Edit2 : God, it works fine now. Thank you so much Marc2412, your last solution is the good one, atleast for my case. Have a nice day !
Glad to be of help. Well done.
Hi Marc2412,
I just updated Contact Form 7 but It doesn’t work. All time appear a message to say: “There was an error trying to send your message. Please try again later”. If I download WP-Mail-SMTP and I activate the plugin, the issue can be resolve?
Thanks.
I followed everything you wrote to a tee Marc, other than putting in the “From” field: [your-name] <[email protected]> because when I did it gave me a syntax error flag, so I just put “[email protected]” and I got “bool(false)” after my test email, and the email was not received ??
FAQ: https://contactform7.com/faq/#After_submitting_the_form_I_get_an_error_message
@jtwordpress “[email protected]” Won’t work unless it’s between brackets, as in.. <[email protected]>
“Romance Novel Convention <[email protected]>”
Can you copy paste your Boolean(false) log?
I tried it within the brackets as well and it still comes up false ?? The log is really long!…
bool(false)
The full debugging output is shown below:
object(PHPMailer)#149 (75) {
[“Version”]=>
string(6) “5.2.14”
[“Priority”]=>
NULL
[“CharSet”]=>
string(5) “UTF-8”
[“ContentType”]=>
string(10) “text/plain”
[“Encoding”]=>
string(4) “8bit”
[“ErrorInfo”]=>
string(82) “SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting”
[“From”]=>
string(36) “[email protected]”
[“FromName”]=>
string(12) “RNConvention”
[“Sender”]=>
string(0) “”
[“ReturnPath”]=>
string(0) “”
[“Subject”]=>
string(63) “WP Mail SMTP: Test mail to [email protected]”
[“Body”]=>
string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
[“AltBody”]=>
string(0) “”
[“Ical”]=>
string(0) “”
[“MIMEBody”:protected]=>
string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.
“
[“MIMEHeader”:protected]=>
string(442) “Date: Wed, 2 Mar 2016 18:38:17 +0000
To: [email protected]
From: RNConvention
Subject: WP Mail SMTP: Test mail to [email protected]
Message-ID: <[email protected]>
X-Mailer: PHPMailer 5.2.14 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit“
[“mailHeader”:protected]=>
string(0) “”
[“WordWrap”]=>
int(0)
[“Mailer”]=>
string(4) “smtp”
[“Sendmail”]=>
string(18) “/usr/sbin/sendmail”
[“UseSendmailOptions”]=>
bool(true)
[“PluginDir”]=>
string(0) “”
[“ConfirmReadingTo”]=>
string(0) “”
[“Hostname”]=>
string(0) “”
[“MessageID”]=>
string(0) “”
[“MessageDate”]=>
string(30) “Wed, 2 Mar 2016 18:38:17 +0000”
[“Host”]=>
string(24) “smtpout.secureserver.net”
[“Port”]=>
string(3) “465”
[“Helo”]=>
string(0) “”
[“SMTPSecure”]=>
string(3) “ssl”
[“SMTPAutoTLS”]=>
bool(true)
[“SMTPAuth”]=>
bool(true)
[“SMTPOptions”]=>
array(0) {
}
[“Username”]=>
string(36) “[email protected]”
[“Password”]=>
string(15) “XXXXXXXXXXXXXXX”
[“AuthType”]=>
string(0) “”
[“Realm”]=>
string(0) “”
[“Workstation”]=>
string(0) “”
[“Timeout”]=>
int(300)
[“SMTPDebug”]=>
bool(true)
[“Debugoutput”]=>
string(4) “echo”
[“SMTPKeepAlive”]=>
bool(false)
[“SingleTo”]=>
bool(false)
[“SingleToArray”]=>
array(0) {
}
[“do_verp”]=>
bool(false)
[“AllowEmpty”]=>
bool(false)
[“LE”]=>
string(1) “
“
[“DKIM_selector”]=>
string(0) “”
[“DKIM_identity”]=>
string(0) “”
[“DKIM_passphrase”]=>
string(0) “”
[“DKIM_domain”]=>
string(0) “”
[“DKIM_private”]=>
string(0) “”
[“action_function”]=>
string(0) “”
[“XMailer”]=>
string(0) “”
[“smtp”:protected]=>
object(SMTP)#331 (13) {
[“Version”]=>
string(6) “5.2.14”
[“SMTP_PORT”]=>
int(25)
[“CRLF”]=>
string(2) “
“
[“do_debug”]=>
bool(true)
[“Debugoutput”]=>
string(4) “echo”
[“do_verp”]=>
bool(false)
[“Timeout”]=>
int(300)
[“Timelimit”]=>
int(300)
[“smtp_conn”:protected]=>
bool(false)
[“error”:protected]=>
array(4) {
[“error”]=>
string(0) “”
[“detail”]=>
string(0) “”
[“smtp_code”]=>
string(0) “”
[“smtp_code_ex”]=>
string(0) “”
}
[“helo_rply”:protected]=>
NULL
[“server_caps”:protected]=>
NULL
[“last_reply”:protected]=>
string(0) “”
}
[“to”:protected]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(36) “[email protected]”
[1]=>
string(0) “”
}
}
[“cc”:protected]=>
array(0) {
}
[“bcc”:protected]=>
array(0) {
}
[“ReplyTo”:protected]=>
array(0) {
}
[“all_recipients”:protected]=>
array(1) {
[“[email protected]”]=>
bool(true)
}
[“RecipientsQueue”:protected]=>
array(0) {
}
[“ReplyToQueue”:protected]=>
array(0) {
}
[“attachment”:protected]=>
array(0) {
}
[“CustomHeader”:protected]=>
array(0) {
}
[“lastMessageID”:protected]=>
string(61) “<[email protected]>”
[“message_type”:protected]=>
string(5) “plain”
[“boundary”:protected]=>
array(3) {
[1]=>
string(35) “b1_7c8549a55a534f3faf4c630875b89c06”
[2]=>
string(35) “b2_7c8549a55a534f3faf4c630875b89c06”
[3]=>
string(35) “b3_7c8549a55a534f3faf4c630875b89c06”
}
[“language”:protected]=>
array(19) {
[“authenticate”]=>
string(35) “SMTP Error: Could not authenticate.”
[“connect_host”]=>
string(43) “SMTP Error: Could not connect to SMTP host.”
[“data_not_accepted”]=>
string(30) “SMTP Error: data not accepted.”
[“empty_message”]=>
string(18) “Message body empty”
[“encoding”]=>
string(18) “Unknown encoding: “
[“execute”]=>
string(19) “Could not execute: “
[“file_access”]=>
string(23) “Could not access file: “
[“file_open”]=>
string(33) “File Error: Could not open file: “
[“from_failed”]=>
string(35) “The following From address failed: “
[“instantiate”]=>
string(36) “Could not instantiate mail function.”
[“invalid_address”]=>
string(17) “Invalid address: “
[“mailer_not_supported”]=>
string(25) ” mailer is not supported.”
[“provide_address”]=>
string(54) “You must provide at least one recipient email address.”
[“recipients_failed”]=>
string(45) “SMTP Error: The following recipients failed: “
[“signing”]=>
string(15) “Signing Error: “
[“smtp_connect_failed”]=>
string(22) “SMTP connect() failed.”
[“smtp_error”]=>
string(19) “SMTP server error: “
[“variable_set”]=>
string(30) “Cannot set or reset variable: “
[“extension_missing”]=>
string(19) “Extension missing: “
}
[“error_count”:protected]=>
int(2)
[“sign_cert_file”:protected]=>
string(0) “”
[“sign_key_file”:protected]=>
string(0) “”
[“sign_extracerts_file”:protected]=>
string(0) “”
[“sign_key_pass”:protected]=>
string(0) “”
[“exceptions”:protected]=>
bool(true)
[“uniqueid”:protected]=>
string(32) “7c8549a55a534f3faf4c630875b89c06”
}
The SMTP debugging output is shown below:
2016-03-02 18:38:17 Connection: opening to ssl://smtpout.secureserver.net:465, timeout=300, options=array (
)
2016-03-02 18:38:18 SMTP ERROR: Failed to connect to server: Connection refused (111)
2016-03-02 18:38:18 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingI just rolled it back to the previous version (Version 4.3.1) and it works again. This was a poor update if it has caused so many issues. I think I will wait until the next update to try again. I have several sites and the update broke on every one.
Hey Marc2412 and everybody!
I realized my free account at Mandrill, coincidentally, expired at the same week in which CF7 was updated. When I saw a lot of people reporting issues with the 4.4 version, imediately I thought that it was my problem too, but it wasn’t.
Anyway, I gave up to use Mandrill and started using WP Mail SMTP and everything works fine now. I’m using a Digital Ocean Hosting, in which you have to request an authorization for using SMTP on their servers.
Whatever, a good trick is leave empty the FROM field in WP Mail SMTP plugin.
I followed this tutorial for setup WP Mail SMTP for CF7: https://cool-tricks.net/contact-form-7-configuration/#install-contact-form-7
Thanks!
Hey Marc,
I can’t even get the email to go through via Easy WP SMTP plugin.
This website uses godaddy so I have port 465 and my host according to my email is smtpout.secureserver.net. I’m getting the error:
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingI did create a user [email protected].
Am I missing something?
Ken
[“authenticate”]=>
string(35) “SMTP Error: Could not authenticate.”
[“connect_host”]=>
string(43) “SMTP Error: Could not connect to SMTP host.”Did you check ‘authenticate’?
@jkstone113
try WP-Mail-SMTP instead of Easy WP SMTP
Ok, now I’m getting the same error at JT.
[“authenticate”]=>
string(35) “SMTP Error: Could not authenticate.”
[“connect_host”]=>
string(43) “SMTP Error: Could not connect to SMTP host.”
[“data_not_accepted”]=>
string(30) “SMTP Error: data not accepted.”
[“empty_message”]=>
string(18) “Message body empty”I tried unchecking and checking authenticate. What’s weird is I get the same error regardless. I tested the wordpress email I made and it works fine.
If I check Use the PHP mail() function to send emails., then it works fine. It is when I check send via SMTP….it fails.
Kstone and jt,
It seems like your hosts smtp details arent correct. Open a ticket asking why the smtp details do not work.
It could either be that, or you have put in the wrong information.
I THINK THE EMAIL AND THE PASSWORD ARE INCORRECT IF IT DOES NOT AUTHENTICATE.
Could you show me a picture of your from email with the syntax error?
I tried rolling back to 4.3.1 and that didn’t help either. I am actually getting the error:
There was an error trying to send your message. Please try again later.Though I’ve double/triple checked all my settings. When I initially set it all up, it was working fine. I have even tried deleting and reinstalling the plugin.
- The topic ‘Emails not sending’ is closed to new replies.