Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Dołączają się w nagłówku mail()
sammy103
post 6.11.2014, 13:19:49
Post #1





Grupa: Zarejestrowani
Postów: 24
Pomógł: 0
Dołączył: 21.04.2014

Ostrzeżenie: (10%)
X----


Wysylam maila i sie dolaczaja wszedzie "@m46.hostit.pl" w polu REPLY-to, tj.

Cytat
Autor@m46.hostit.pl,
"<andypsv@xe**t.com>"@m46.hostit.pl


  1. function sendMail($from,$to,$topic,$content,$reply_to='') {
  2. $headers = 'MIME-Version:1.0'."\r\n";
  3. $headers .= 'content-type:text/html;charset=utf-8'."\r\n";
  4. $headers .= 'From: "'.strtolower(substr(PG_T,0,-1)).'" <'.NOREPLY.'@'.strtolower(substr(PG_T,0,-1)).'>'."\r\n";
  5.  
  6. if(!empty($reply_to))
  7. $headers .= 'Reply-To: Autor "<'.$reply_to.'>"'."\r\n";
  8.  
  9. if(mail($to,$topic,$content,$headers)) return true; else return false;
  10. }


JAK TO OBEJSC?

juz udalo mi sie zrobic:
  1. $headers .= 'Reply-To: <'.$reply_to.'>'."\r\n";


wystarczylo wyeliminowac ""
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 18.07.2025 - 02:05