hey guys, i wonder what i'm doing wrong? I'm working on a ftp-upload with php. if files are uploaded successfully i want to get a confirmation email. just a simple email.
FTP Server benim bağlantı başarılı olsaydı sendmail () fonksiyonu arıyorum! işe yaramıyor!
function sendmail() {
$EmailFrom = "do-not-reply@mypage.com";
$EmailTo = "myemail@mypage.com";
$Subject = "File uploaded to your FTP Server";
$Body = "Howdy, files have just been transferred to your Server.";
// Email Headers with UTF-8 encoding
$email_header = "From: " . $EmailFrom . "\r\n";
$email_header .= "Content-Type: text/plain; charset=UTF-8\r\n";
$email_header .= "Reply-To: " . $EmailFrom . " \r\n";
$success = mail($EmailTo, $Subject, $Body, $email_header);
if ($success){
print "success with EMAIL";
}
else{
print "error with EMAIL";
}
}
Ben burada yanlış ne yapıyorum herhangi bir fikrin var mı? $ EmailFrom değeri gerçek emailAddress olmak zorunda? Bu sadece çalışma değil. Başarı ne hata ne basılmış olur. Ve fonksiyon çağrısı SONRA kodumu şey idam olur.
Yardımlarınız için teşekkür ederim