Koozali.org: home of the SME Server

EZMLM - Please help!

WEBlance

EZMLM - Please help!
« on: March 01, 2005, 08:57:33 PM »
What I want: The user enters his/hers email address in a form and hits 'Subscribe'. The form sends the email address to mailinglist-subscribe@mydomain.com - and voila the user has subscribed the newsletter.

Problem: The user address isn't sent to the ezmlm but the address anonymous@mydomain.com is sent instead.

Does anyone know how to solve this problem?

Some more information:

Jeg har lavet en side med en formular hvor man skal indtaste sin email, trykke på 'Tilmeld nyhedsbrev' og så skal den sende ens email til ezmlm og tilmelde.

Problemet er bare at den adresse der bliver tilmeldt er ikke den man indtaster, men anonymous@minserver.dk

Hvordan løser man det problem??

The script:
<? mail("mailinglist-subscribe@mydomain.com", "","","From: $email <$email>") ?>

The form:
<form method = "post" action="<? echo $_SERVER["PHP_SELF"];?>">
                  <table width="75%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="200"><input name="email" type="text" class="textfelt" id="email" size="40"></td>
                      <td width="10">&nbsp;</td>
                      <td width="105"><input name="Submit" type="submit" class="knap" value="Tilmeld nyhedsbrev"></td>
                    </tr>
                  </table>
                </form>

Offline raem

  • *
  • 3,972
  • +4/-0
EZMLM - Please help!
« Reply #1 on: March 03, 2005, 08:27:14 AM »
I used this recently in a php form script and it works OK

mail("recipient@domain.com","Text Text Text",$message,"From: ".$EmailAddress);

where the email field was EmailAddress

Hope that helps
...