Archive for July, 2013

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

July 31st, 2013, posted in PHP

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_port = 587
sendmail_from = [your_gmail_username]

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
#from [exampleuser]
#auth on
#user [exampleuser]
#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
from [your_gmail_username]
auth on
user [your_gmail_username]
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.


Ran Into Door

July 31st, 2013, posted in BoYs, COMiCS, GiRLs

Ran Into Door


Islamic Great Mathematician

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

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,


Baby Waking Up From Sleep

July 30th, 2013, posted in Art, BoYs

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


Main Houn Don

July 30th, 2013, posted in COMiCS, PAKiSTAN

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