Jump to content

After migration can not send manual email, but on daily automated actions it works


Recommended Posts

Hi all

After performed a full migration cpanel backup\restore, and updated domain nameservers, also updated cron jobs and pop. Everything works fine and only email issues... First i ask new host provider to open external SMTP.

I just realized that WHMCS can just send all email to clients (payment reminder, overdue, auto backup emails,etc, etc)

But if I try to send an manual email it pronts an error, exmple of steps done:

- choose one cliente and on summary page try to send an client email Welcome.

This is the error after ativated $smtp_debug='true'; on config file.

2019-07-14 10:34:02 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array ()
2019-07-14 10:34:03 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Network is unreachable) [/home/cpnalelusername/public_html/vendor/phpmailer/phpmailer/class.smtp.php line 298]
2019-07-14 10:34:03 SMTP ERROR: Failed to connect to server: Network is unreachable (101)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

If crons email works what could be????

Emails is from google GSuite, is could be related to MX records??

 

 

 

Link to comment
Share on other sites

 @EvolveWebHosting thanks for help

but still with same problem....

WHMCS can send emails with SMTP during cron automated tasks with no problems.

Manual email send from WHMCS do not work.

PS: If WHMCS can send emails on cron daily automated tasks using SMTP, I guess it means that we can conclude that external SMTP are opened like host provider confirm.

i have setup google MX records on WHM but still have same problem.

Link to comment
Share on other sites

@zitu4life

I can see the following error shows in the SMTP Debug

SMTP ERROR: Failed to connect to server: Network is unreachable (101)

This error is indication of a network / connectivity issue between the server and the SMTP destination. To help you diagnose and troubleshoot your system, please login to your servers terminal window and execute the following command

dig +short smtp.gmail.com

This test will verify your server can resolve the SMTP hostname to ensure your resolvers are properly configured. If your resolvers are working (finding and going to the correct IP address) then do a telnet in the command prompt window.

telnet smtp.gmail.com 587

This test will perform a connection attempt to the destination SMTP server (Gmail in your case) please send the response back to us and we can dig into this further for you.

Link to comment
Share on other sites

Many Thanks @WHMCS Community

WHMCS Support also advice me same. and after that my current hosting provider was able to find problem and solved it with their advanced specialist team.

So, problem were always with hosting, and sometimes they say everything fine from their side.

Problem fixed.

Thank you for your patience.

Our Operations team has indeed opened up SMTP for outbound connections on the VPS. Please let us know if you need any further assistance.

Please do not hesitate to ask if you have any other questions or concerns.
Best Regards,

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated