Page 1 of 1

php mail

Posted: Wed Jan 30, 2008 7:57 am
by sri.sjc
Hi friends,
i'm pretty new to php. i want to know that, can i send mail to domains like yahoo,gmail etc.
from my localhost? Further i want to develop a messenger which would work with the LAN to send messages from one machine to other. Any help would be accepted with thanks

Re: php mail

Posted: Wed Jan 30, 2008 11:23 am
by Christopher
Yes, the PHP manual has good examples of how to use the mail() function to send emails. There is also the excellent SwiftMailer package which has a support forums here.

Re: php mail

Posted: Wed Jan 30, 2008 11:52 am
by RobertGonzalez
Remember that you will need a mail server on localhost and that php.ini may need to be modified so that PHP knows which mail server to use. I think it defaults to sendmail. I could be wrong though.

Re: php mail

Posted: Fri Feb 01, 2008 6:57 am
by sri.sjc
can i use the IP address of a machine on my LAN with the php mail() function? If yes, how? Is there any other way to communicate with the machines on LAN?