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
php mail
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: php mail
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.
(#10850)
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: php mail
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
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?