Kód: Vybrat vše
VaĹĄe novĂŠ heslo je: 6WRvqQdPczpbx4rPOnSWKód: Vybrat vše
Vaše nové heslo je: x7t9KVfiqs4B90PNv7J4
Kód: Vybrat vše
VaĹĄe novĂŠ heslo je: 6WRvqQdPczpbx4rPOnSWKód: Vybrat vše
Vaše nové heslo je: x7t9KVfiqs4B90PNv7J4




Kód: Vybrat vše
<?php
/**
* Obsahuje tridu clsEmaily<br>
* trida pro odesilani emailu
*
* @author Milan Sivak
* @copyright DATRON, a.s.
* @package class
*
*/
$to = "mail@domain.com";
class clsEmaily
{
/******************************************************************************************************/
function OdeslatEmail($to, $from, $subject, $text) //komu, od koho, predmet, text emailu
{
$text = Base64_Encode($text);
$encodedsubject = base64_encode ($subject);
$subject = "=?utf-8?B?$encodedsubject?=";
$headers = "From: $from\n";
$headers .= "Return-Path: <$from>\n";
$headers .= "Reply-To: $from\n";
$headers .= "MIME-Version: 1.0\n".
"Content-Type: text/plain; charset=\"utf-8\"\n".
"Content-Transfer-Encoding: base64\n";
return mail($to, $subject, $text, $headers);
}
/******************************************************************************************************/
}
?>
