php mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sri.sjc
Forum Newbie
Posts: 5
Joined: Wed Jan 30, 2008 7:34 am

php mail

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: php mail

Post 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.
(#10850)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: php mail

Post 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.
sri.sjc
Forum Newbie
Posts: 5
Joined: Wed Jan 30, 2008 7:34 am

Re: php mail

Post 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?
Post Reply