PHP3 Manual | ||
---|---|---|
Prev | Next |
mail -- send mail
Mail() automatically mails the message specified in message to the receiver specified in to. Multiple recipients can be specified by putting a space between each address in to.
Example 1. Sending mail. mail("rasmus@lerdorf.on.ca", "My Subject", "Line 1\nLine 2\nLine 3"); |
If a fourth string argument is passed, this string is inserted at the end of the header.
Example 2. Sending mail with extra headers. mail("ssb@guardian.no", "the subject", $message, "X-Mailer: PHP/" . phpversion()); |
Prev | Home | Next |
Mail Functions | Up | Mathematical Functions |