Forums

SMTP Error

TheMadMonk 15 Dec, 2016
Hi,

I can successfully send a test email from Joomla Global Configuration - Server set up.
I am also successful sending email from the Joomla login module.

However I cannot send from my form.
The CF email set up is blank which I take means the Joomla global config will be used.

I am receiving the error
Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

When debug is on I get:
2016-12-15 19:39:43 SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) 2016-12-15 19:39:43 SMTP connect() failed.

Any ideas?

Thanks.
GreyHead 15 Dec, 2016
Hi TheMadMonk,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.

Bob
TheMadMonk 15 Dec, 2016
Thanks for the prompt response and apologies for not including this:
[Email] => Array
(
[0] => An email with the details below could NOT be sent:
[1] => To:admin@domain.com
[2] => Subject:Add New Device
[3] => From name:Admin
[4] => From email:enquiries@domain.com
[5] => CC:
[6] => BCC:
[7] => Reply name:Admin
[8] => Reply email:admin@domain.com
[9] => Attachments:
[10] => Array
GreyHead 16 Dec, 2016
Hi TheMadMonk,

Please make sure that the From address is the same as the address in the Joomla! mailer settings and different to the To address; please remove the Reply To Name and Email entries (they are redundant here any may be causing a problem).

Bob
TheMadMonk 16 Dec, 2016
The from email in Joomal global config is enquiries@domain.com and the from email in the email action is enquiries@domain.com.
The to address in the email action is admin@domain.com

I have removed the reply to name and email entries have been removed but results are the same.

Thanks
GreyHead 16 Dec, 2016
Hi TheMadMonk,

By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.

Bob
GreyHead 21 Dec, 2016
Hi The MadMonk,

I suspect that this is a problem with the AWS setup. Are you still in sandbox mode there?

First, I tried to add an 'Email a Friend' link to your Hidden Article to test the Email working. The form there opens but does not submit because there is a JavaScript Error on the page :-(

The Test Email button from the Server Settings page does work - but I think that this is because it it sending to an AWS verified address.

I created a test form that just emails to the address you input; this fails with the message you posted. I then copied the AWS Email settings into the ChronoForms mailer settings and -with Debug there on - I get a more informative message
Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Message rejected: Email address is not verified. The following identities failed the check in region US-WEST-2: info@xxx-xxx.net SMTP code: 554

2016-12-21 09:49:06 CLIENT -> SERVER: EHLO www.aaa-aaa.com
2016-12-21 09:49:06 CLIENT -> SERVER: AUTH LOGIN
2016-12-21 09:49:06 CLIENT -> SERVER: QUtJQUlJRFRVR1hFQlZDUEZFQ1E=
2016-12-21 09:49:06 CLIENT -> SERVER: QWhkTElYaWhacnBoU2pIb1lIaEpJcDIzQTV1cnE2VXRjajZQMG14Qzgvdko=
2016-12-21 09:49:06 CLIENT -> SERVER: MAIL FROM:
2016-12-21 09:49:06 CLIENT -> SERVER: RCPT TO:
2016-12-21 09:49:06 CLIENT -> SERVER: DATA
2016-12-21 09:49:06 CLIENT -> SERVER: Date: Wed, 21 Dec
2016 09:49:06 +0000
2016-12-21 09:49:06 CLIENT -> SERVER: To: info@xxx-xxx.net
2016-12-21 09:49:06 CLIENT -> SERVER: From: "aaa-aaa.com"
2016-12-21 09:49:06 CLIENT -> SERVER: Subject: Testing - aaa-aaa.com
2016-12-21 09:49:06 CLIENT -> SERVER: Message-ID: <6ebc48c106c91f8e4d91e6b13a696fac@www.aaa-aaa.com>
2016-12-21 09:49:06 CLIENT -> SERVER: X-Mailer: PHPMailer 5.2.16 (https://github.com/PHPMailer/PHPMailer)
2016-12-21 09:49:06 CLIENT -> SERVER: MIME-Version: 1.0
2016-12-21 09:49:06 CLIENT -> SERVER: Content-Type: multipart/alternative;
2016-12-21 09:49:06 CLIENT -> SERVER: boundary="b1_6ebc48c106c91f8e4d91e6b13a696fac"
2016-12-21 09:49:06 CLIENT -> SERVER: Content-Transfer-Encoding: 8bit
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER: This is a multi-part message in MIME format.
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER: --b1_6ebc48c106c91f8e4d91e6b13a696fac
2016-12-21 09:49:06 CLIENT -> SERVER: Content-Type: text/plain; charset=us-ascii
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER: Emailinfo@xxx-xxx.net
2016-12-21 09:49:06 CLIENT -> SERVER: IP: 86.214.66.170
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER: --b1_6ebc48c106c91f8e4d91e6b13a696fac
2016-12-21 09:49:06 CLIENT -> SERVER: Content-Type: text/html; charset=us-ascii
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER:
Email info@xxx-xxx.net


IP: 86.214.66.170
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER: --b1_6ebc48c106c91f8e4d91e6b13a696fac--
2016-12-21 09:49:06 CLIENT -> SERVER:
2016-12-21 09:49:06 CLIENT -> SERVER: .
2016-12-21 09:49:06 SMTP ERROR: DATA END command failed: 554 Message rejected: Email address is not verified. The following identities failed the check in region US-WEST-2: info@xxx-xxx.net
2016-12-21 09:49:06  SMTP Error: data not accepted.
2016-12-21 09:49:06 CLIENT -> SERVER: QUIT
You can see more about the 554 message (see near the end) in the AWS docs here

Bob
TheMadMonk 21 Dec, 2016
Hi Bob,

Thanks for the information.
Yes we are still in the sandbox however all the emails in the form are also verified just like the one in the server settings.
In fact the server settings from email is the same address as the from one in the form.

Is there a difference in how AWS treats the emails coming out of the form?

Thanks again.
GreyHead 22 Dec, 2016
Hi The MadMonk,

I know nothing much about AWS and I can't test with a verified address :-(

If the CF mail settings are empty then CF uses the Joomla! mailer settings; at the moment I've copied these into the CF Mail settings to help debug. I suggest that you check my test form with a Verified address to see what the debugger info is in that case.

My best guess is that your problems are with the AWS end rather than with CF.

Bob
TheMadMonk 10 Jan, 2017
1 Likes
Thanks Bob.
Moving out of the sandbox has solved the problem.
Not sure why given that all addresses were verified but onward and upward.

Thanks again.
This topic is locked and no more replies can be posted.