Send Mail in PHP in the This example, we'll show how to send an e-mail message to someone in PHP. PHP Code: "; Mail ("karn@nucleus.com", "Subject", "hello!"); echo "Sending mail ..."; echo "";?> It is that simple! The PHP mail function has a to four parameters. The first parameter is the recipient of the message. The second parameter is the subject of the email message. The third parameter is the body of the message. And the fourth parameter is optional, which'll be covered on the next page. If The above example does not work when you view it in your browser then the Sendmail variable in your PHP setup file is P Robably not set correctly. In UNIX, it should BES set to something like/usr/sbin/sendmail-t. Consult your PHP documentation for more in depth instru Ctions.
http://www.bkjia.com/PHPjc/531937.html www.bkjia.com true http://www.bkjia.com/PHPjc/531937.html techarticle send Mail in PHP in the This example, we'll show how to Send an e-mail message to someone in PHP. PHP Code:; Mail (karn@nucleus.com, Subject, hello!); echo Sending mail ...; echo;