PHP Mail () function

Source: Internet
Author: User
Tags configuration settings

<?PHP/*The PHP Mail () function parameter describes to required.        Specify email recipients. Subject required. Specify the subject of email.        Note: This parameter cannot contain any new line characters. Message required. Defines the message to be sent.        You should use LF (\ n) to separate the rows. Headers is optional. Specify additional headings, such as from, Cc, and BCC.        You should use CRLF (\ r \ n) to separate additional headings. Parameters is optional.    Specify additional parameters for the mail sender. Syntax: Mail (to,subject,message,headers,paramenters) HP requires an installed and running messaging system to make mail functions available. The program used is defined by the configuration settings in the php.ini file. */    $to= "[Email protected]"; $subject= "Test Mail"; $message= "hello! A simple email message. "; $from= "[Email protected]"; $headers= "From:$from"; Mail($to,$subject,$message,$headers); Echo"Mail Sent.";?>

PHP Mail () function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.