Re: mail() + localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

on 07/01/2010 10:09 AM Shreyas Agasthya said the following:
> PHP'ers,
> 
> I am sure this would have been asked a zillion times but I take this as my
> turn to get some help. I hate to ask such rhetorical questions but quite
> couldn't understand how to tweak this.
> 
> All I am trying to do is send a mail from my localhost to my Gmail ID. I
> read stuff about how the SMTP port should be accessible; should be open et
> al. My set-up is very simple:

You cannot use the mail() function because it does not support
authentication.

You need to use some other component that supports SMTP authentication.

I use the MIME message class along with a SMTP class.

http://www.phpclasses.org/mimemessage

You may want to read this article to learn how to set it right to send
messages via Gmail, Hotmail or Yahoo.

http://www.phpclasses.org/blog/package/9/post/1-Sending-email-using-SMTP-servers-of-Gmail-Hotmail-or-Yahoo-with-PHP.html

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux