53 |
// "body of message" |
// "body of message" |
54 |
|
|
55 |
function iso_mail($from,$to,$subject,$msg) { |
function iso_mail($from,$to,$subject,$msg) { |
56 |
popen("/usr/sbin/sendmail -t") |
$mail=popen("/usr/sbin/sendmail -t","w"); |
57 |
($to,$subject,e_qp($msg),'From: '.$from.' |
if (! $mail) { |
58 |
|
return 0; // error! |
59 |
|
} |
60 |
|
fputs($mail,'To: '.$to.' |
61 |
|
From: '.$from.' |
62 |
|
Subject: '.$subject.' |
63 |
X-Mailer: php-quotedprintable-mailer |
X-Mailer: php-quotedprintable-mailer |
64 |
Content-Type: text/plain; charset="iso-8859-2" |
Content-Type: text/plain; charset="iso-8859-2" |
65 |
Content-Transfer-Encoding: quoted-printable |
Content-Transfer-Encoding: quoted-printable |
66 |
'); |
'.$headers.' |
67 |
|
|
68 |
|
'.e_qp($msg)); |
69 |
|
pclose($mail); |
70 |
|
return 1; |
71 |
} |
} |
72 |
|
|
73 |
?> |
?> |