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
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