Davs du
JMo. <ns_sf009@mohr.cx> skrev bla:
> skal ændres til
>
> mail ($mail, _NEWSLETTER_REGISTER_SUBJECT, stripslashes($letter),
> "From: ".ADMIN_MAIL);
Takker
Nu kan man tilmelde sig men hvis jeg så vil sende et nyhedsbrev kommer denne
meddelelse
Bær over med mig
Der er tilsyneladende mere der skal rettes.
Warning: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth
parameter is disabled in SAFE MODE. in
/home/web/r_s5222/johns-web.dk/jp/admin.news.send.php on line 22
Warning: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth
parameter is disabled in SAFE MODE. in
/home/web/r_s5222/johns-web.dk/jp/admin.news.send.php on line 22
Newsletter sendt !
Nedenstående
<?php
// TODO : sendmail forbiden if setup says no
require ("inc/startAdmin.php");
$db = new DB();
if (($subject) && ($message)) {
//if (MAIL_ON == 1) {
$header = "From: ".ADMIN_MAIL ;
$param = "-f".ADMIN_MAIL;
$db->query("SELECT url FROM ".DB_PREFIX."_config");
$site = $db->next_record();
$db->query("SELECT email FROM ".DB_PREFIX."_newsletter");
while ($user = $db->next_record()) {
$letter = "$message \r\n\r\n"._NEWSLETTER_UNSUBSCRIBE."\r\n
$site[url]/unsubscribe.php?remove=$user[email]";
mail ($user[email], $subject, stripslashes($letter), $header, $param);
}
//}
$message = _NEWS_SENT;
} else {
$message = _NEWS_NOT_SENT;
}
$db->close();
?>
--
Mvh. John