note 70265 deleted from function.mail by nlopess
| From: | nlopess@php.net | Date: | Mon, 09 Oct 2006 19:19:06 +0000 |
| Subject: | note 70265 deleted from function.mail by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-118327@lists.php.net to get a copy of this message | ||
Note Submitter: diskusia at mailbox dot sk
----
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;
?>