using mail with gmail and other on line mail server

the mail() function

Moderators: macek, egami, gesf

programAngel
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Jul 05, 2011 3:43 am

using mail with gmail and other on line mail server

Postby programAngel » Tue Jul 05, 2011 3:46 am

How should I configure php.ini to work with gmail.

Lets say that my user name is user and my password is password.

Where should I put this information in the configuration?

Can mail work with gmail?

jorgepinho
New php-forum User
New php-forum User
Posts: 101
Joined: Tue Jul 05, 2011 5:41 am
Location: Portugal
Contact:

Re: using mail with gmail and other on line mail server

Postby jorgepinho » Wed Jul 06, 2011 5:54 am

Hi,

If you want to send an email, you can use mail() anyway, just place headers, with tracking info so that servers dont think you are SPAM

If you want to interact with the gmail server and read your mail, you have to activate POP on gmail panel and then connect from PHP using SSL

The functions are in here:

http://pt2.php.net/manual/en/book.imap.php

--
Jorge
Live Help on Skype: lets.talk.about.help


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest