Page 1 of 1

Sending email in php

Posted: Wed Mar 30, 2005 6:34 am
by hashmio9
Hi

I would like to know how I can send an email from my php code. I am aware there is a function called mail(), but there are no Username and Password settings. I am trying to use gmail as my SMTP. Can anyone help? I need to know how to configure for an external email server such as Gmail

Oz

Posted: Wed Mar 30, 2005 10:24 am
by feyd
Gmail isn't an SMTP server, FYI. PHPmailer (SourceForge.net) has SMTP login linkage. I believe Pear's does as well. (pear.php.net)

Posted: Wed Mar 30, 2005 10:29 am
by Maugrim_The_Reaper
Generally mail() will not require a username or password to be specified directly from a host account. I suggest testing it in a small script or verifying it with your host.