Welcome, Guest. Please login or register.
Did you miss your activation email?
July 09, 2008, 09:38:34 am
42751 Posts in 8091 Topics by 17932 Members
Latest Member: codder
Turk-Php.Com Forum  |  Yardım Forumları  |  PHP Yardım Forumu  |  Windows Server mail() fonksiyonu « previous next »
Pages: [1] Print
Author Topic: Windows Server mail() fonksiyonu  (Read 67 times)
Costello
Yeni Kullanıcılar
*
Offline Offline

Posts: 12


Php Developer


View Profile WWW
Windows Server mail() fonksiyonu
« on: April 02, 2008, 08:07:34 am »

php mail() fonksiyonu ile mail yollarken

Warning: mail(): SMTP server response: 550 5.7.1 <xxx@xxx.com>... we do not relay <> in
bu hatayı alıyorum

plesk ten yeni kullanıcı açtığımda kullanıcıya mail gitmesi gerekirken gene bu hatayı alıyorum.

domainlere eposta açınca pleskten böyle bi sorun yok birbirlerine mail alıp gönderebiliyorlar sadece mail() fonk. çıkıo sanırım bu sorun


php.ini mail ayarları bu şekilde
[mail function]
; For Win32 only.
SMTP = localhost SMTP = smtp.xxx.com da yaptım olmadı
smtp_port = 25
; For Win32 only.
sendmail_from =
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =




Code:
$headers = "From: ad soyad<xxx@xxx.com> \n";
   $headers .= "X-Sender: <xxx@xxx.com>\n";
   $headers .= "X-Mailer: ad soyad\n";
   $headers .= "X-Priority: 0 \n";
   $headers .= "Return-Path: <xxx@xxx.com>\n";
   $headers .= "In-Reply-To: <xxx@xxx.com>\n";
   $headers .= "Reply-To: <xxx@xxx.com>\n";
   $headers .= "MIME-Version: 1.0\n";
   $headers .= "Content-Type: text/html; charset=windows-1254\n";
   $baslik = "mesajınız var!";
   $mesaj = "Merhaba,<br><br>";
   mail($u_mail, $baslik, $mesaj, $headers);



kodumda bu şekilde
Logged

Pages: [1] Print 
« previous next »
Jump to: