Next Big Thing

Tag: email

Email using gmail smtp in PHP

by admin on Aug.14, 2009, under Uncategorized

Sending an email from your backend php script is ( as explained in most of the blogs) not a trivial task.

I followed the tutorial in this blog post and everything worked fine for me.

Important things to note are :

1) That the port has to be 465. ( There is another thread going on about 587 or so, which did not work for me) .

2) That the url has to be “ssl://smtp.gmail.com”  ( if your mail is hosted under gmail ).

I am a total noob when it comes to linux , network and stuff like that. So , I had a slight bit of doubt if there was something different when they were asking for the “SMTP username” and “SMTP password”. But no, its plain and simple. Its your email id, like in youremailid@gmail.com and its password.

So feel free to use the gmail smtp servers.

Leave a Comment :, , , , more...

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...