mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
PHPMailer can't find config after upgrade to version 7.10.20 #4024
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#4024
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iba-jsykes on GitHub (Oct 2, 2019).
Issue
This could be related to the upgrade issues for previous 7.x versions. When trying to test my settings, before or after save, PHPMailer does not see them.
Expected Behavior
Phpmailer should be able to take settings from the admin/email settings page and test outgoing mail.
Actual Behavior
It doesn't seem to get any of the info from the form, here are the logs :
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][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.
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][ERROR] send: PHPMailer Exception: { SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
}
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][DEBUG] smtp send: { 3: Connection: opening to smtp.myserver.com:465, timeout=300, options=array ( }
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][DEBUG] smtp send: { ) }
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][DEBUG] smtp send: { 3: Connection failed. Error #2: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. [C:\home\Apache24\htdocs\sugarcrm\include\phpmailer\class.smtp.php line 298] }
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][DEBUG] smtp send: { 3: Connection failed. Error #2: stream_socket_client(): unable to connect to smtp.myserver.com:465 (php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. ) [C:\home\Apache24\htdocs\sugarcrm\include\phpmailer\class.smtp.php line 298] }
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][DEBUG] smtp send: { 1: SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. (0) }
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][DEBUG] smtp send: { 3: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting }
Wed Oct 2 17:34:05 2019 [15076][e18e3432-96cb-a21e-1baf-5d5d82d03fce][DEBUG] ------------ Exiting SugarMailer send
Context
I'm not sure how your hot fixes get included in older builds, I did apply the proposed , now merged , fix to no avail. This was working before the upgrade.
Your Environment
Version 77.0.3865.90 (Official Build) (64-bit)
@iba-jsykes commented on GitHub (Oct 3, 2019):
Inbound has stopped working as well, also says there is nothing configured.
@pgorod commented on GitHub (Oct 3, 2019):
This looks like DNS issues. Can you check if your server can resolve the address
smtp.myserver.comcorrectly and get an IP address?@iba-jsykes commented on GitHub (Oct 3, 2019):
Yeah, that's the thing, that's not mine, i'm assuming thats some kind of placeholder? Remember, this was working prior to this upgrade.
@pgorod commented on GitHub (Oct 3, 2019):
Ok, but maybe some other thing changed at the same time of the upgrade.
You can connect to your server, and try a ping to the real address of the SMTP server that you have configured. If that doesn't get proper DNS resolution, it explains the error in SuiteCRM.
@iba-jsykes commented on GitHub (Oct 3, 2019):
Sure, i can ping, telnet, all the usual stuff. The inbound email actually says that an email server isn't configured, although I see it on the screen and in the db. Definitely a weird bug.
@pgorod commented on GitHub (Oct 3, 2019):
Did you uncomment this line?
github.com/salesagility/SuiteCRM@1391bd278c/include/SugarPHPMailer.php (L452)@iba-jsykes commented on GitHub (Oct 3, 2019):
I did when upping the logging. I was so hopeful that was it, but still :
Thu Oct 3 21:06:24 2019 [18824][e18e3432-96cb-a21e-1baf-5d5d82d03fce][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not connect to SMTP host.
Thu Oct 3 21:06:24 2019 [18824][e18e3432-96cb-a21e-1baf-5d5d82d03fce][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not connect to SMTP host.
Thu Oct 3 21:06:24 2019 [18824][e18e3432-96cb-a21e-1baf-5d5d82d03fce][ERROR] send: PHPMailer Exception: { SMTP Error: Could not connect to SMTP host.
}
I'll try and get a better error message.
@iba-jsykes commented on GitHub (Oct 3, 2019):
I went back and applied this :
https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/19163-email-sending-settings#66312
And now both errors are gone, only some authentication issue, which should be totally unrelated.
Thanks for getting me past the obvious!