Web Hosting Talk







View Full Version : PHP mail


mohanmathew
10-27-2006, 02:33 PM
Hi!
Anybody have php mail code that we can use in an authentication required environment. Any help will be greatly appretiated.

CodyRo
10-27-2006, 02:57 PM
That's a bit vague.. if you want to send mail with PHP it's pretty easy.

Check out the php mail() (http://us3.php.net/manual/en/function.mail.php) function.

tolgaorhon
10-27-2006, 07:40 PM
Be careful with the code. If it is coded unsecurely, it will be discovered and become a web mail relay. ISP's hate that ;)

If you want to send mail, try http://phpmailer.sourceforge.net/ It uses SMTP auth, and quite secure.

If you want PHP based mail client, try IMP http://www.horde.org/imp/. May not be the best, but used widely.

mohanmathew
10-27-2006, 08:13 PM
I dont want such a secure code. i'm working with webhosting company. I would like to test with authentication, and with out authentication php mails.

tolgaorhon
10-27-2006, 08:17 PM
I dont want such a secure code. i'm working with webhosting company. I would like to test with authentication, and with out authentication php mails.

If you are talking about SMTP authentication, PHPMailer is the way to go.

dhcart
10-28-2006, 01:30 PM
We use phpmailer and recommend it, too.

mohanmathew
10-28-2006, 05:24 PM
Thanks a lot!

ntkennedy
10-28-2006, 06:34 PM
This is terribly vague, but HORDE/IMP as mentioned is probably the number 1 solution.
The other great possibility is SquirrelMail, which is lighter-weight and easier to set up, if you don't need something quite as full-blown. Has a somewhat better security track record too I think.