próbuję wysłać wiadomość e-mail z mojego PHP:Zmień nazwę nadawcy poczty php zamiast [email protected]
$to = '[email protected]';
$email_from = "[email protected]";
$full_name = 'Suraj Hazarika';
$from_mail = $full_name.'<'.$email_from.'>';
$subject = "testing sender name";
$message = "";
$message .= '
<p><strong>This is only a test . Please do not reply.</strong><br />
';
$from = $from_mail;
$headers = "" .
"Reply-To:" . $from . "\r\n" .
"X-Mailer: PHP/" . phpversion();
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($to,$subject,$message,$headers);
śledzę samouczka PHP E-mail Form Sender Name Instead Of E-mail? ale nadal jestem coraz e-maile z nazwy nadawcy z nazwa hosta.
From Date Subject
[email protected] Fri, 11:24 pm testing sender name
[email protected] Fri, 11:24 pm testing sender name
Możecie zajrzeć do wstrzykiwań header ataków. Twój kod nie jest bezpośrednio podatny na ataki, ale pamiętaj o tym. – tangrs