|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
vListLite problem
I've downloaded vListLite which is a php script to send out text or html e-mails to subscibers. First problem was that it has been written for register_global=on so i changed the scipts variables to $_Post['variable'] as i have register_globals=off which solved that.
I'm now getting an error with the following code when trying to send the e-mails either as text or html if (($_POST['mailtype']=="text") && ($ok)) { $Message = $TEXTMailText; $Message .= $TXTfooter; $sent = mail($SenderFrom."<".$EmailFrom.">", $subject, $Message, "From:$SenderFrom<$EmailFrom>\nReply-to:$EmailReplyTo \nbcc:$EmailTo"); } elseif (($_POST['mailtype']=="html") && ($ok)) { $Message = $MailText; // Send HTML mail as it was entered in multi line text box $Message .= $HTMLfooter; $sent = mail($SenderFrom."<".$EmailFrom.">", $subject, $Message, "From:$SenderFrom<$EmailFrom>\nReply-to:$EmailReplyTo \nbcc:$EmailTo\nContent-Type:text/html; charset=iso-8859-1"); } The 2 specific lines that are giving errors are \nbcc:$EmailTo"); \nbcc:$EmailTo\nContent-Type:text/html; charset=iso-8859-1"); Any light someone can shed on this to help me will be much appreciated. I running latest versions of php, mysql and apache on a windows based system. Thanks. |
|
#2
|
|||
|
|||
|
What error are you getting?
Hadley |
|
#3
|
|||
|
|||
|
For text e-mails I get......
Warning: Server Error in c:\program files\apache group\apache\htdocs\vlistlite\listsend.php on line 66 For html e-mails I get the same.... Warning: Server Error in c:\program files\apache group\apache\htdocs\vlistlite\listsend.php on line 75 Which are the 2 lines I pointed out. First time i've needed to send e-mails using php and a subscriber database which is why I downloaded a ready made script. With it saying server error i'm assuming i need to configue something in apache but not sure what. |
|
#4
|
|||
|
|||
|
I think you've identified the lines incorrectly because of wrapping - it's actually the entire line beginning with mail(...), probably indicating that you don't have a mail program set up to work with apache/php.
I've got no idea how to set up mail on windows (I've always used it on linux) so you may have to do some research. Hadley |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > vListLite problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|