Re: PHP mail() question?

From: Date: Wed, 02 Apr 2003 22:28:16 +0000
Subject: Re: PHP mail() question?
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-26818@lists.php.net to get a copy of this message
function htmlemailheaders($from="somename<youremai@somedomain.com>",$CC="",$BCC=""){ //three arguments, last two optional // http://www.mindspring.com/~mgrand/mime.html voor mime specificaties $mailheaders = NULL;//initi $mailheaders .= "From: $from\r\n";//waarde van eerste argument van de functie $mailheaders .= "Reply-To: $from\r\n"; //$mailheaders .= "Return-Path: $from\r\n"; //$mailheaders .= "Return-Receipt-To: $from\r\n"; $mailheaders .= "MIME-Version: 1.0 \r\n"; // $mailheaders .= "X-Mailer: Register PHP by DPDK\r\n"; //mailer $mailheaders .= "X-Priority: 3\r\n"; //1 UrgentMessage, 3 Normal $mailheaders .= "Content-type: text/html;charset=us-ascii \r\n";//charset=iso-8859-1 $mailheaders .= "Content-Transfer-Encoding: 7bit \r\n"; //add more headers if($CC!="") { $mailheaders .= "Cc: $CC\r\n";//tweede argument, alleen toevoegen als er een waarde voor is } if($BCC!="") { $mailheaders .= "Bcc: $BCC\r\n";//derde argument, BCC altijd achteraan de headers } return $mailheaders;//function returns the headers, either store them in variable or use in php mail() function }//end function htmlemailheaders()-------------------------------------------------

« previous php.db (#26818) next »