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