Sending email from PHP
Posted: Sat May 03, 2003 5:08 pm
Can anyone point me in the right direction for a php script for adminning and sending email to an opt-in mailing list(Not SPAM LIST)?
Thanks...
Thanks...
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
@mysql_connect($host, $loginname, $password) or die(mysql_error());
@mysql_select_db($data) or die('Could not select database'.mysql_error());
$result = mysql_query("SELECT email FROM $table ORDER BY email DESC");
echo "<form method=POST action=".$PHP_SELF.">";
while ($row = mysql_fetch_array($result)) {
$rowї"email"];
$bccText = $rowї"email"];
mail($bccText,$subjectText,$msgText,$footer, "From: ".$fromText);
}
?>