tags:

views:

66

answers:

2

how can we sending a mail in gmail using php ? plz help me....

+3  A: 

You can use excellent Swift Mailer with these settings:

smtp: smtp.gmail.com
port : 587
user: your gmail email
pass: your gmail password
Sarfraz
I'm having trouble using SwiftMailer in my script to mail to my own gmail account. I've marked port 587 based on your answer, please take a look at my question http://stackoverflow.com/questions/3478906/using-phps-swiftmailer-with-gmail
omgzor
+1  A: 

Great object-oriented php lib for sending emails.

http://swiftmailer.org/

I think they have dedicated gmail settings.

Jason B
Like sAc said use SMTP via Swift Mailer.
Jason B