Re: PHP mail() question?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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()-------------------------------------------------




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux