PHP has this mail() function to send mails. However, it's more than
plain vanilla to use it to send mails, esp if you don't have a fully
qualified domain name (FQDN), i.e. all systems on the LAN. Of course you
could use network/socket functions to connnect to the smtp port of your
mail server, but below I describe something simpler.
1. Edit /etc/mail/sendmail.cf to add your relay server:
You should have a line beginning with "DS"
Append to it your mail server.
DSmail.iiit.ac.in
2. Start sendmail
3. Use the mail() function, as is.
Note: Of course, this works only if the mail server allows you as a
relay host. i.e. your system must be trusted. All systems on the LAN,
generally, are.
3 comments:
some web-sites allow only 1 session per i.p.
but all LAN machines have same global i.p ? solution ?
I faced the same problem with megaupload..any solution?
http://webhost11.com
Can I Help You.. Yes If you want to get on the web. If you want to start learning about creating a web site of your own.. go to http://webhost11.com. to find out more about webhosting ... We can help find a web host for you.
Post a Comment