Email Account Test Works, Campaign Send Fails

Hi

I have just one outbound account configured and the Send Test is successful for this account.

When I try to send a campaign with just three valid targets as a test, I find the following error in the suitecrm.log.

SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Fri Jun 2 08:42:32 2017 [7725][1][FATAL] SugarPHPMailer encountered an error: An outgoing mail server is not configured to send emails. Please configure an outgoing mail server or select an outgoing mail server for the mail account that you are using in Settings >> Mail Account.
Fri Jun 2 08:42:32 2017 [7725][1][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Fri Jun 2 08:42:32 2017 [7725][1][FATAL] Email delivery FAILURE:Array
(
[date_entered] => 2017-06-02 15:41:34
[date_modified] => 2017-06-02 15:42:09
[user_id] => 1
[id] => 82
[campaign_id] => 7e934955-020b-4027-e170-592fd6033afc
[marketing_id] => bca07996-2046-5544-38ff-592fd7428615
[list_id] => b9b997c1-2695-b890-3329-592fd736ea54
[send_date_time] => 2017-06-01 00:00:00
[modified_user_id] => 1
[in_queue] => 0
[in_queue_date] =>
[send_attempts] => 0
[deleted] => 0
[related_id] => 85fed00c-a7e8-3336-bf46-59034f97e0c9
[related_type] => Contacts

Why would this account work for the test send in Admin > Email Settings, but fail to send the campaign emails?

Many Thanks

Luke

I’m afraid this is a known issue

https://github.com/salesagility/SuiteCRM/issues/2807

that is afflicting a lot of people. There is still no solution but if you read that Issue you might get some ways to work around it.

1 Like

Hello all. The thread on github took a swerve off topic for a while there. I’m looking for a quick fix please and wondering if anyone could tell me the cause of this issue in the end?

Sending a test from >> Admin >> Email settings = Works.
Sending a test from >> Admin >> Outbound = Not Works.

I dont get it, the emails that worked still sent with TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256

If anyone could fill me in with what the issue was, I just want to understand !!

Thank you :slight_smile:

erm, not sure but the form seems to add a ‘,’ to the port.

e.g. SMTP Port: 2525
becomes 2,525

I just removed the , and without saving send worked. If I save the comma comes back. If I dont remove the , and try a test, it doesnt work.

Like I said, not sure but it could be my issue?!? If anyone can shine a light on what the issue was for eveyone else I’d love to find out please and thank you (^_^)

I answered you on GitHub.

Anyway, what you wrote there :point_up: is interesting. What are the exact steps to make that happen? Which screens you go to in order to configure the account, and how do you check that it added a comma?

Thanks @pgr

My issue was nothing to do with TLS, although I was thrown off as I use TLS and was likley a bug in older version 7.6.x where smtp port field in outbound email profile was being validated/verified/adjusted to include a comma for 4 digit ports when saved. This issue went away in 7.8.x and I’m now using 7.10.22 LTS with no such issue.

1 Like

Ah ok, so just to confirm, the “comma” issue is solved in our latest versions?

I believe so. The issue was only applicable on saving the profile, testing worked before save. So I’m guessing that either validation occured in script or db. If script then script updates fixed it. If db then the upgrade process and db maintenance aspect fixed it.

In either case the issue does not show any more since updating those.

1 Like

I’ve upgraded to 7.14.3 a few days ago from 7.11.2 and I have this issue. I have turned up the logging to WARN but there is no SMTP related lines in suitecrm log. Any pointers is appreciated