Jump to content

Bulk Mail script


lional

Recommended Posts

  • 1 year later...
Use this script:
[code]<?php
session_start();
include "connect";

if($_POST['mes'])
{
$ax=mysql_query("SELECT * FROM users",$c);
while($r=mysql_fetch_array($ax))
{
$to=$r['email'];
$subj = "News from YourSite";
$mess =$_POST['mes'];
$headers ="From: [email protected]
";
mail($to,$subj,$mess,$headers);
}
print "Newsletter sent to ".mysql_num_rows($ax)." Users";
}
else
{
print "Send Newsletter to everyone!!.<br />
<form action='nletter.php' method='post'>
<textarea cols=30 rows=15 name='mes'>
</textarea>
<input type='submit' value='Send!'></form>";
}
?>[/code]
Link to comment
https://forums.phpfreaks.com/topic/3690-bulk-mail-script/#findComment-213844
Share on other sites

  • 1 month later...

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.