Page 1 of 1

PHP smtp mail

Posted: Tue Jul 28, 2009 12:24 pm
by derobee
Hi,
I am new to PHP and learning.
I am running Apache 2.2 on Windows XP Pro SP3. I have PHP 5.2.9 installed.
I want to send mail from my php script which is on localhost via smtp (eg: smtp.google.com)
I tried searching, but I could find any successful complete answer.

My php directory: c:\php
My project directory : C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\Mail

Questions :
1) I downloaded PEAR mail package ( Stable version 1.1.14 ) from http://pear.php.net/package/Mail, Where should I place package.xml file and Mail-1.1.14 folder?
2) What changes should I make to php.ini, if any?
3) What changes should I make to apache configuration file, if any?

A small program calling the function and sending an email from Gmail server, smtp.gmail.com:465/587 will be very helpful.
Any other example sending email via smtp will be helpful.

Thanks,

Re: PHP smtp mail

Posted: Sat Mar 13, 2010 2:24 am
by findarvind.singh
hi to all
can anyone send me successful code for send mail from gmail smtp server.
without using php mail().
email-findarvind.singh@gmail.com

PHP smtp mail

Posted: Sat Mar 13, 2010 2:50 am
by rozemarry
dude,i think you have to concern to google where each and every thing and solution even you got there coding also

Re: PHP smtp mail

Posted: Sat Mar 13, 2010 4:24 am
by findarvind.singh
dear friend
i have tried all things which can posible with best of my knowledge.
please if you have link or successful code for send mail through smtp.gmail.com send me.
it's urgent
thanx for your support-
findarvind.singh@gmail.com