Just one more thing,
This is working beautifully but would like to add a .jpg as an attachment. Can anybody PLEASE show me how to do this? I found a lot of posts on it but it looks like the order of the headers has to be perfect and nobody's script looked like mine.
The image is on my server in /MiscPics/mypic.jpg
Working version of email script that needs altered:
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: MIXPOSURE<management@mixposure.com>\r\n";
$headers .= "Reply-To: <management@mixposure.com>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Microsoft Outlook Express 6.00.2800.1409";
$oneday = mysql_query("SELECT username, user_email FROM phpbb_users WHERE user_id > 3000");
while($rowday = mysql_fetch_array($oneday))
{
$username = $rowday['username'];
$to = $rowday['user_email'];
$subject="Hello $username!";
$message = "YADA YADA";
$bounce = "-fbounce@mixposure.com";
mail($to, $subject, $message, $headers, $bounce);
}