Archive for July, 2013

Send Email Using Gmail as my SMTP from XAMPP (PHP)

July 31st, 2013, posted in PHP
FacebookTwitterGoogle+Share

I have been trying to send email using PHP script and XAMPP Lite. The PHP script itself is not a biggies but the default XAMPP configuration doesnt allow me to send out the email.
My objective is to use Gmail as my SMTP (rather than localhost). After some digging and try and error.. Here is my solution :

Edit your php.ini (xamppphpphp.ini). Search for [mail function] and change these parameters accordingly :

SMTP = smtp.gmail.com
smtp_port = 587
sendmail_from = [your_gmail_username]@gmail.com

Note: This gmail account will be used to send the email

sendmail_path = “”D:xamppsendmailsendmail.exe” -t”

Note: I did install my xampp at D:xampp




1. Edit your sendmail.ini (xamppsendmailsendmail.ini)

Comment the “Mercury”and “A free mail service example” contents as shown below:

# Mercury
#account Mercury
#host localhost
#from postmaster@localhost
#auth off

# A freemail service example
#account Hotmail
#tls on
#tls_certcheck off
#host smtp.live.com
#from [exampleuser]@hotmail.com
#auth on
#user [exampleuser]@hotmail.com
#password [examplepassword]



2. Add the account through which you want to send your mails. In my example I have configured the Gmail account as shown below:

account Gmail
tls on
tls_certcheck off
host smtp.gmail.com
from [your_gmail_username]@gmail.com
auth on
user [your_gmail_username]@gmail.com
password [your_gmail_password]port 587



3. Set the default account to Gmail as shown below:

account default : Gmail

Many thanks to this link . His original post point me to the right direction. The only missing piece is port number in sendmail.ini where gmail no longer use port 25 as smtp port but 587. Hope this help.

FacebookTwitterGoogle+Share

Ran Into Door

July 31st, 2013, posted in BoYs, COMiCS, GiRLs
FacebookTwitterGoogle+Share

Ran Into Door

FacebookTwitterGoogle+Share

Islamic Great Mathematician

July 30th, 2013, posted in COMiCS, Saying Of Hazrat Ali ( A.S )
FacebookTwitterGoogle+Share

Hazrat Ali, Imam Ali,Ali,muslims,muslim,islam,muslim stories,story,islamic history,maths,division in three,Dividing 17 camels between 3 people,sufi comics,sufi,comics,Hazrat Ali a Great Mathematician,Great Mathematician,will of dying person,Islamic Great Mathematician,problem solver,

FacebookTwitterGoogle+Share

Baby Waking Up From Sleep

July 30th, 2013, posted in Art, BoYs
FacebookTwitterGoogle+Share

Baby Waking Up From Sleep,Baby Waking Up ,Waking Up From Sleep,From Sleep,Waking Up,Baby Sleeping ,Colour Painting,Baby ,Sleeping, Colour ,Painting,sleep,sketch

FacebookTwitterGoogle+Share

Main Houn Don

July 30th, 2013, posted in COMiCS, PAKiSTAN
FacebookTwitterGoogle+Share

Main Houn Don,don,don movie,movie don,PakistaniMeme,Pakistani Meme,meme,Pakistan,Paki Jokes,meme,memeabad,Altaf Husain,Altaf Husain Meme,Altaf Meme,Altaf Husain Comics,Altaf Husain JOkes,Altaf Husain funny,90 Karachi,karachi,MQMQ

FacebookTwitterGoogle+Share