Page 1 of 1

Sending email from PHP

Posted: Sat May 03, 2003 5:08 pm
by reverend_ink
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...

Posted: Sun May 04, 2003 5:03 am
by twigletmac
Have you checked out what's available at hotscripts.com?

Mac

Posted: Sun May 04, 2003 10:36 am
by reverend_ink
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)) &#123;

$row&#1111;"email"];

$bccText = $row&#1111;"email"];

mail($bccText,$subjectText,$msgText,$footer, "From: ".$fromText);

&#125;

?>