General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 29th, 2002, 09:40 AM
wap wap is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 20 wap User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old December 29th, 2002, 03:59 PM
hadley hadley is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 63 hadley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
What error are you getting?

Hadley

Reply With Quote
  #3  
Old December 29th, 2002, 07:22 PM
wap wap is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 20 wap User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old December 30th, 2002, 04:26 AM
hadley hadley is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 63 hadley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > vListLite problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT