Başlık Incorect "Kimden" aşağıdaki mı?
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: Mail Master <mail@mailmaster.com>' . "\r\n";
if(sendEmailNow($email, $subject, $body, $headers)){
Benim posta sunucusundan hatası alıyorum. Bu ": sözdizimi hatası hatadan Posta" diyor.
Herhangi bir yardım için teşekkür ederiz.
Update
Ben aşağıda SendEmailNow işlevini soyunmuş ve ben aynı hatayı alıyorum:
//send an email
function sendEmailNow($email, $subject, $body, $headers){
if (mail($email, $subject, $body, $headers)) {
##check email
##code to say email sent - compare with the number registered
return true;
}
else {
##code to report an error
return false;
}
}
Update 2
Sorun çözüldü. Doğru cevap seçilmiş gibi ben. PHP 5 kullanarak bir windows makinede bu çalıştırıyorum ve yorumlar söylediler. Bazı posta sunucuları sorun ben daha önce ne vardı anlayış var. Ama ne benim için çalıştı bu oldu:
$headers .= 'From: mail@mailmaster.com' . "\r\n";