Using gmail smtp to send mails - server disconnects

Tarzan

New Member
Messages
66
Reaction score
0
Points
0
Hi!

I've looked all over for an answer to this one but can't seem to find any:

I'm trying to use gmails smtp server to send mails, but once I've sent "STARTTLS" it seems like the smtp.gmail.com disconnects. I'm trying to use port 587 with both telnet and fsockopen (php function).

Does anyone have an idea on how to solve this?
 
Last edited:

Tarzan

New Member
Messages
66
Reaction score
0
Points
0
Thanks for the tip!
I just prefer trying it out old school :)
And I finally got it to work (after some intensive googling) by executing
stream_socket_enable_crypto($server_handle, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)
after the "STARTTLS" call. That's probably why telnet didn't work - it didn't support the TLS encryption.

Thanks again!

P.S. Jane good, me Tarzan.
 

reginaalcaraz62

New Member
Messages
15
Reaction score
1
Points
0
I've just crossed here reading this topic. Can someone teach me how to se gmail smtp to send mails? Hehe. Any reply would be nice. : )
 

vv.bbcc19

Community Advocate
Community Support
Messages
1,524
Reaction score
92
Points
48
Can someone please help how can we send smtp email from google when Joomla or wordpress is installed as my site.
Thank you.
Regards,
VVBB
 
Top