PHP smtp mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
derobee
Forum Newbie
Posts: 2
Joined: Tue Jul 28, 2009 12:00 pm

PHP smtp mail

Post 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,
findarvind.singh
Forum Newbie
Posts: 2
Joined: Sat Mar 13, 2010 2:08 am

Re: PHP smtp mail

Post 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
rozemarry
Forum Newbie
Posts: 1
Joined: Sat Mar 13, 2010 2:38 am

PHP smtp mail

Post by rozemarry »

dude,i think you have to concern to google where each and every thing and solution even you got there coding also
findarvind.singh
Forum Newbie
Posts: 2
Joined: Sat Mar 13, 2010 2:08 am

Re: PHP smtp mail

Post 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
Post Reply