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...
Sending email from PHP
Moderator: General Moderators
-
reverend_ink
- Forum Contributor
- Posts: 151
- Joined: Sun Apr 20, 2003 1:18 am
- Location: Las Vegas | London
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
reverend_ink
- Forum Contributor
- Posts: 151
- Joined: Sun Apr 20, 2003 1:18 am
- Location: Las Vegas | London
I ended up figuring out what I needed to do
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);
}
?>