|
well unless i've misunderstood what it is you want, this should be pretty simple:
You just need to have a simple form to ask the user for their details ie email address etc (remember to confirm email address) then add the details to the database:
mysql_query("INSERT INTO table VALUES value1, value2");
then when you want to send the news letter out to people you want an area to type your newsletter with a submit button, and have some code similar to this:
if(isset($_POST['submit'])
{
$query = mysql_query("SELECT emailaddress FROM table1");
while($row = mysql_fetch_array($query))
{
mail($row['email'], $subject, $newsletter);
// free the entry to save memory, can't rmember the command though...
}
}
hope thats at all useful?
|