Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Gmail Smtp Connection Problem Rate Topic   - - - - -

 
  • sahibpkrbw
  • Advanced Member
  • Members
  • Join Date: 16-Aug 12
  • 82 posts

Posted 01 April 2020 - 02:51 PM #21

Does the mailtest.php file I posted return OK?

I just cheekcd again and the  mailtest.php have error as below
 
Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Network is unreachable) in /home/shop/public_html/mailtest.php on line 9

Hi

 

i have the same Problem kindly let me know how to solve it, i did exactly what here send buy i am getting still the same error,

 

kindly help me to solve it 

 

 

Error Message could not be sent.
Mailer Error: SMTP connect() failed. https://github.com/P...Troubleshooting

 

 

thanks

 

Hi

 

I just checkcd again and the  mailtest.php have error as below
 
Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Network is unreachable) in /home/shop/public_html/mailtest.php on line 9
 
 
kindly let me know how i can enable ssl socket transport support in my WHM Panel?.
 
Thanks


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11660 posts

Posted 01 April 2020 - 07:34 PM #22

Suggest you ssh into your server and run 

# ping smtp.gmail.com

 

It should return a bunch of round-trip summaries.  If not, then your hosting has a network problem or 'gmail' is down.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • FDGWEB
  • Junior Member
  • Authorized Reseller
  • Join Date: 20-Aug 10
  • 147 posts

Posted 01 April 2020 - 09:09 PM #23

People really should be using something like Sendgrid for smtp relay. Trying to tunnel through Gsuite or Office365 is difficult and constantly changing. 


FDG Web, Inc - Seattle Web Design : Custom CS-Cart Programming & Design | Toll-Free: 877.239.3083

Download Proposal Templates & Web Design Contract Samples

 
  • sahibpkrbw
  • Advanced Member
  • Members
  • Join Date: 16-Aug 12
  • 82 posts

Posted 01 April 2020 - 09:58 PM #24

Suggest you ssh into your server and run 

# ping smtp.gmail.com

 

It should return a bunch of round-trip summaries.  If not, then your hosting has a network problem or 'gmail' is down.

Hi

 

thanks for your kind reply i have run via SHH as you said and its ends like the that

 

 

64 bytes from wl-in-f108.1e100.net (64.233.167.108): icmp_seq=83 ttl=46 time=15.9 ms
64 bytes from wl-in-f108.1e100.net (64.233.167.108): icmp_seq=84 ttl=46 time=15.9 ms
64 bytes from wl-in-f108.1e100.net (64.233.167.108): icmp_seq=85 ttl=46 time=15.9 ms
64 bytes from wl-in-f108.1e100.net (64.233.167.108): icmp_seq=86 ttl=46 time=15.9 ms
^C
--- smtp.gmail.com ping statistics ---
86 packets transmitted, 86 received, 0% packet loss, time 85116ms
rtt min/avg/max/mdev = 15.891/16.059/18.408/0.401 ms
[myshop@host public_html]$ ^C


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11660 posts

Posted 02 April 2020 - 07:55 PM #25

Then your server CAN connect to smtp.gmail.com at that point in time.  Have you tried generating another email since you ping'd?


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • sahibpkrbw
  • Advanced Member
  • Members
  • Join Date: 16-Aug 12
  • 82 posts

Posted 02 April 2020 - 11:26 PM #26

Then your server CAN connect to smtp.gmail.com at that point in time.  Have you tried generating another email since you ping'd?

 

 

 

Hi 

 

I have not tried any other,  can you tell me how can i connect to smtp.gmail.com? as i have root access and i can do if you tell me how to fix it?

 

many thanks



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11660 posts

Posted 03 April 2020 - 08:21 PM #27

What I was suggesting is that you generate another email through the system.  I.e. send an invoice to admin to see if it works now that you know the core connection works.  But again, I'd put a marker in your PHP error_log file (a single line with the date/time) and then try to send the mail.  If it fails, review the error_log AFTER your timestamp.  If you need help, you can contact me through the 'get a quote' link in my signature.  It won't be free, but it will be reasonable.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.