Jump to content

E-Mailing System


Lamez

Recommended Posts

lol I have over 150+ users, I am not going to e-mail them one at a time  :P

 

-Thanks Though

 

Oh I found this script

$query = mysql_query("SELECT email FROM users");
while ($row = mysql_fetch_assoc($query)) {
$to      = $row['email'];
$subject = 'the subject';
$message = 'hello';
$headers = 'From: Lamez' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
}

 

It does not seem to work, what am I doing wrong?

 

Link to comment
https://forums.phpfreaks.com/topic/69807-e-mailing-system/#findComment-350682
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.