Autor Zpráva
Pesulap
Profil
Ahoj , chtěl bych posílat mejly z webu , všechno jsem si našel ale jedna věc mi nejde .

mám

if (mail ("neco@neco.com","Novinka", $zprava ,"From: neco@neco.com ","Content-Type: text/plain , charset='UTF-8', Content-Transfer-Encoding: base64 ")) {
print 'Email byl úspešne odeslán.';
}else{
print 'Email se nepodarilo odeslat. Zkuste znovu pozdeji.';
}


Ale nefunguje mi kódování :-( Pořád mi chodí klikiháky :-( nevíte sco s tím je?
premek
Profil *
Takhle to mám řešený já a kódování mám v pořádku:

$headers = 'From: www.dane-bily.cz' . "
" .

'Content-Type: text/plain; charset=windows-1250' . " " .
'Content-Transfer-Encoding: 8bit' . " " .
'X-Mailer: PHP/' . phpversion();



{if(mail($komu,$subject,$telo,$headers))

echo "<strong>Váš dotaz byl úspěšně odeslán!</strong>";}
Nox
Profil
A takto?
mail ("neco@neco.com","Novinka", $zprava ,"From: neco@neco.com Content-Type: text/plain; charset='UTF-8' Content-Transfer-Encoding: base64 ")

Ikdyž tím u Contentu si nejsem úplně jistý
Pesulap
Profil
$headers = 'From: www.dane-bily.cz' . " " .
'Content-Type: text/plain; charset=windows-1250' . " " .
'Content-Transfer-Encoding: 8bit' . " " .
'X-Mailer: PHP/' . phpversion();

$headers = 'From: www.dane-bily.cz' . " " .
'Content-Type: text/plain; charset=windows-1250' . " " .
'Content-Transfer-Encoding: 8bit' . " " .
'X-Mailer: PHP/' . phpversion();


Díky moooc dal jsem si místo windows-1250 utf-8 a je to :-)
DFly
Profil
jeste budes mit problemy s cestinou v subjektu - to se resi jinak

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0