first off, thank you SOOOOOO much for helping me with this. I've been trying to figure it out for days and I feel like I'm going crazy!
I changed the email2.php script to this:
<?
include("head.php");
include("cfg.php");
include("db.php");
?>
<br><br>
<? echo "<table bgcolor='$tb_bgcolor' cellpadding='$padding' border='$border' cellspacing='$spacing' align='$align' width='$width' style='$style' bordercolor='$bordercolor'>"; ?>
<?php
if($empswd432 != "Email")
{
echo "You do not have permission to email the user group.";
exit;
}
$sql = "select * from newsletter";
$conn = db_connect();
$result = mysql_query($sql, $conn);
if(!$result)
{
echo "Error:<br>".mysql_error();
}
while($row = mysql_fetch_array($result)) {
$email = stripslashes($row["email"]);
$name = stripslashes($row["name"]);
$content = stripslashes($content);
$content = str_replace("<br>", "\n", $content);
$from = "From: $webmaster_email";
$to = "To: $name <$email>";
$subject = "$newsletter";
echo "to = ".$to;
ehco "<BR>subject = ".$subject;
ehco "<BR>content = ".$content;
ehco "<BR>from = ".$from."<BR>";
if(mail($to, $subject, $content, $from))
echo "mail sent";
else
echo "mail not sent";
echo "<tr><td>Email to <i>$name</i> at <b>$email</b> sent!</td></tr>";
}
?>
</table>
</td>
</tr>
</table>
<?
include("foot.php");
?>
Then I loaded it and tried to run it and I got this error:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/www/users/thock/Mail/email2.php on line 30