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