PDA

View Full Version : PHP & ezmlm


mouse
11-11-2000, 03:13 AM
Help? Please?,

I'm having a few problems with the php mail() function
and subscribing an email address using this to the
ezmlm mailing list.

The form sends off the email alright, but when the
ezmlm response comes back it wants to subscribe PHP3@domain.tld
instead of the specified address.

I've tried Cc the email message and have included it below as well as the piece of code causing the trouble.

Thanks,

Michelle



if(isset($newsletter)){
[nbsp][nbsp][nbsp][nbsp][nbsp]$mailSubject = "Newsletter";
[nbsp][nbsp][nbsp][nbsp][nbsp]$mailFrom = $email; #in this case was specified as hhh@darkshiva.com
[nbsp][nbsp][nbsp][nbsp][nbsp]$mailBody = "Email: $email";
[nbsp][nbsp][nbsp][nbsp][nbsp]$mailHeaders = "From: $email\nCc: fake@darkshiva.com\n";
[nbsp][nbsp][nbsp][nbsp][nbsp]mail($maillistsub, $mailSubject, $mailBody, $mailHeaders);[nbsp][nbsp]
}



---------------------------------
In the CC copied email
---------------------------------
From:[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]hhh@darkshiva.com
To:[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]wbn-subscribe@mlm.darkshiva.com
CC:[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]fake@darkshiva.com
-----------------------------------

Email: hhh@darkshiva.com

Justin
11-11-2000, 03:57 AM
The ezMLM software subscribes the sender, and mail sent via PHP will be 'From:' you, not from the user. The easiest way to accomplish this would be to follow the instructions located at this tutorial (http://www.aota.net/Mailing_Lists/websublist.php3).

Hope this helps.

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support

mouse
11-11-2000, 07:49 PM
Thankyou!

Well, it least I know why it won't work. And I think I may have found a way around it now using the ezmlm web subscribe form.

Michelle