Koozali.org: home of the SME Server

EZMLM, Horde, Imp and a host of other goodies

Offline grattman

  • ****
  • 122
  • +0/-0
EZMLM, Horde, Imp and a host of other goodies
« 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
...

Offline holck

  • *
  • 322
  • +1/-0
EZMLM, Horde, Imp and a host of other goodies
« Reply #1 on: September 28, 2005, 08:34:13 AM »
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
......