send mail using google

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
User avatar
guitarlvr
Forum Contributor
Posts: 245
Joined: Wed Mar 21, 2007 10:35 pm

send mail using google

Post by guitarlvr »

as a development environment on my laptop I'd like to use google's smtp server to be able to send email. I dont care that it changes the from address, I just want it to be able to send mail. In the php.ini file, i know i can specify the address and port used for smtp but how would i go about authenticating with a user ID and password? Has anyone ever tried this before?

Thanks,

Wayne
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The mail function doesn't support it if memory serves.

Look through the Swiftmailer forum on posts relating to gmail.
User avatar
guitarlvr
Forum Contributor
Posts: 245
Joined: Wed Mar 21, 2007 10:35 pm

Post by guitarlvr »

Thanks Feyd, I found exactly what i was looking for with Swift. I have downloaded it but have not attempted to use it as of yet. I guess now i will. Thanks again.

Wayne
Post Reply