Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Brak polskich liter w tytule maila - phpmailer, ustawione charset na utf-8
Agape
post
Post #1





Grupa: Zarejestrowani
Postów: 384
Pomógł: 13
Dołączył: 16.06.2006

Ostrzeżenie: (0%)
-----


W tytule maila nie mam polskich znaków w treści one są. Obydwie zmienne są stałe, wysyłane z kodu PHP. To kawałek kodu którym wysyłam maila:
  1. function wyslij_mail($tytul, $m_wiadomosc){
  2. $mail->CharSet="utf-8";
  3. require('funkcje/class.phpmailer.php');
  4. $mail = new PHPMailer();
  5. $mail->PluginDir = "phpmailer/";
  6. $mail->From = "***@gmail.com";
  7. $mail->FromName = "***";
  8. $mail->Host = "ssl://smtp.gmail.com:465";
  9. $mail->Mailer = "smtp";
  10. $mail->Username = "***";
  11. $mail->Password = "***";
  12. $mail->SMTPAuth = true;
  13. $mail->SetLanguage("pl", "phpmailer/language/");
  14.  
  15. $mail->Subject = $tytul;
  16. $mail->IsHTML(true);
  17. $mail->Body = $m_wiadomosc;
  18. $mail->AddAddress("***@gmail.com","***");


Co więc mogę zrobić skoro kodowanie utf-8 jest już ustawione :|
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Agape
post
Post #2





Grupa: Zarejestrowani
Postów: 384
Pomógł: 13
Dołączył: 16.06.2006

Ostrzeżenie: (0%)
-----


Słaby jestem jeśli chodzi o linuxy ;/
Cytat
$ patch -b class.phpmailer.php utf8_encoding.patch
patching file class.phpmailer.php
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n] y
Hunk #1 FAILED at 933.
Hunk #2 FAILED at 954.
Hunk #3 FAILED at 972.
Hunk #4 succeeded at 1010 with fuzz 2 (offset 248 lines).
Hunk #5 FAILED at 1496.
Hunk #6 FAILED at 1519.
5 out of 6 hunks FAILED -- saving rejects to file class.phpmailer.php.rej


a drugi raz jak wziąłem odrazu y

Cytat
$ patch -b class.phpmailer.php utf8_encoding.patch
patching file class.phpmailer.php
Reversed (or previously applied) patch detected! Assume -R? [n] y
Hunk #1 succeeded at 933 with fuzz 2 (offset 241 lines).
Hunk #2 FAILED at 951.
Hunk #3 FAILED at 967.
Hunk #4 succeeded at 996 with fuzz 2 (offset 241 lines).
Hunk #5 FAILED at 1423.
Hunk #6 FAILED at 1440.
4 out of 6 hunks FAILED -- saving rejects to file class.phpmailer.php.rej


Ten post edytował Agape 12.04.2010, 09:48:17
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 7.10.2025 - 06:52