note 70265 added to function.mail

From: Date: Mon, 09 Oct 2006 13:07:12 +0000
Subject: note 70265 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-118314@lists.php.net to get a copy of this message
HELLO FOLKS Is this code correct by RFC 822? I mean that in example above they do not use \r\n only \n. Or is the example above not in compliance with RFC 822? Thx __________________________________________________ $to = $client->Email; $subject = 'Oznamenie o aktualizacii produktu.'; $message = include('lang/new_actualization_sk.php'); $message = str_replace('<<NAME>>',$GrandsList[$i]['ProgramName'],$message); $message = str_replace('<<DATE>>',Date('d.m.Y'),$message); $headers = "From: ".SYSTEM_MAIL."\r\n"; $headers .= "Content-type: text/plain;charset=\"windows-1250\"\r\n"; mail($to, $subject, $message, $headers); _________________________________________________ new_actualization_sk.php <?php $text = "text:\n\n"; $text .= "PRODUKT: <<NAME>>\n"; $text .= "DÁTUM: <<DATE>>\n"; $text .= "WEB: https://blabla.sk\n\n"; $text .= "COMPANY\nStreet 3, SK- 902 10 City\ntel./fax: +421 2 12345678, 12345679\ne-mail: download@blabla.sk"; return $text; ?> ---- Server IP: 62.65.181.66 Probable Submitter: 217.73.19.139 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/70265 Del: integrated -- https://master.php.net/note/delete/70265/integrated Del: useless -- https://master.php.net/note/delete/70265/useless Del: bad code -- https://master.php.net/note/delete/70265/bad+code Del: spam -- https://master.php.net/note/delete/70265/spam Del: non-english -- https://master.php.net/note/delete/70265/non-english Del: in docs -- https://master.php.net/note/delete/70265/in+docs Del: other reasons-- https://master.php.net/note/delete/70265 Reject -- https://master.php.net/note/reject/70265 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118314) next »