Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: grattman on September 28, 2005, 03:48:52 AM
-
Yea...I know...the subject was enticing. I am trying to use a php form mailer to subscribe to EZMLM running on an SME 6.0.1 server. The code I am trying to uise is:
<?
$to = " newsletter-subscribe@someaddress.com";
$from = "FROM: ".$_POST['newsletter_email_address']."\n";
$subject = "";
$body = "";
if (mail($to, $subject, $body, $from))
{
// mail successful
} else {
// mail failed
}
?>
All subscriptions attempted using this end up in the admin mail stating that an anonymous user wants to subscribe. The code works externally of the server. So I am wondering if there is a default mail routing with regards to horde/imp/imp/localhost that is causing this issue.
Any help is always appreciated,
Brian Grattan
-
As a workaround you could use ezmlm's option to subscribe other users to mailinglists: send the mail to newsletter-subscribe-johndoe=domain.com@someaddress.com