PHP smtp mail
Posted: Tue Jul 28, 2009 12:24 pm
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,
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,