ds26
21.05.2007, 16:22:15
Witam,
postawilem postfixa na ubuntu - jest ok.
problem jest przy wysylaniu majla przy uzyciu funkcji mail() - co prawda majl dochodzi do adresata,
ale bez naglowkow (nadawca, kodowanie itd) i przez to trafia do spamu
czy ktos wie jak to skonfigurowac?
ounc
21.05.2007, 17:31:47
<?php
$headers="";
$headers .="From: admin@domena.pl n";
$headers .= "Date: ".date("r")."n"; $headers .= "MIME-Version: 1.0n";
$headers .= "Content-type: text/html;charset=ISO-8859-2n";
$headers .= "X-Priority: 1n";
$headers .= "Importance: Highn";
$headers .= "X-MSMail-Priority: Highn";
$headers .= "X-Mailer: SelmanD Mailler With PHP!n";
mail($email, $topic, $body, $headers); ?>