Ok I used this server behaviour that allowes you too send out emails. What I want too do is after the user registers, there username and password emails too them but i am having a lil problem. A stupid parse error
PHP Code:
<?php require_once('MainConnection.php'); ?>
<?php
mysql_select_db($database_MainConnection, $MainConnection);
$query_users = "SELECT * FROM dbusers ORDER BY firstName ASC";
$users = mysql_query($query_users, $MainConnection) or die(mysql_error());
$row_users = mysql_fetch_assoc($users);
$totalRows_users = mysql_num_rows($users);
// DWTeam HTML Email
$htmlheader = "Content-Type: text/html; charset=us-ascii\n";
$htmlheader .= "Content-Transfer-Encoding: 7bit";
$to = "<?php echo $row_users['email']; ?>
"; $subject ="welcome"; $message = join("",file("emailedUsersInfo.php")); $from ="From: RoB<mseerob@yahoo.ca>"; $replyto ="reply-to: [email]mseerob@yahoo.ca[/email]"; $header = $from; // set the from field in the header $header .="\n"; // add a line feed $header .= $replyto; // add the reply-to header to the header $header .="\n"; // add a line feed $header .="MIME-version: 1.0\n"; //add the mime-version header $header .= $htmlheader."\n"; mail($to, $subject, $message, $header); // send the e-mail ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
I don't know anything about dreamweaver server behaviors or anything like that. However, if you could post the full script up here, and the EXACT lines that you get the parse error on, then you would have your problem solved today.