Discuss Can anyone recommend a free newsletter script? in the Scripts forum on Dev Shed. Can anyone recommend a free newsletter script? Scripts forum discussing topics including building, optimization, and implementation. Discuss which scripting language is best suited to your needs.
Posts: 6,704
Time spent in forums: 1 Month 6 Days 6 h 45 m 21 sec
Reputation Power: 1235
All your looking for is a script that performs the following:
1) Has a list of all e-mails necessary
2) Sends an e-mail to all e-mails on the list
I'm pretty sure you'll need a while() loop or something....
__________________
- "Cryptographically secure linear feedback shift register based stream ciphers" -- a phrase that'll get any party started.
- Why know the ordinary when you can understand the extraordinary?
- Sponsor my caffeine addiction! (36.70 USD received so far -- Latest donor: Mark Foxvog.)
Posts: 6,638
Time spent in forums: 1 Month 2 Weeks 6 Days 1 h 33 m 45 sec
Reputation Power: 2474
We can safely assume that you are going to use this for entirely legal purposes, yes? We're not going to help you write a script to simply spam a bunch of users.
Posts: 222
Time spent in forums: 1 Day 1 h 58 m 24 sec
Reputation Power: 12
Actually Dudes, I've already written one. All it really does is store a bunch of emails in a MySQL database, and uses PHP to parse through every email address and send it through PHP's mail function...
PHP Code:
<?
$result = mysql_query("SELECT * FROM tblEmails", $db);
while ($row = mysql_fetch_array($result)) {
$bcc_html .= $row1[Email] . ", ";
}
$email = "blah@blah.com"; // THIS WILL SHOW UP IN THE 'TO' FIELD OF THE EMAIL!
$subject = "$email_subject";
$msg_html = 'This is the body of my newsletter... ';
mail ($email, $subject, $msg_html, $headers_html);
?>
I have a question about this though.. What I've done is append every email address in the database to the BCC field.. Would it be better to send the newsletter to each email address one by one, rather than bcc it all at once?
I guess I do'nt know exactly how this works, so which way is better? You guys see a problem with putting a few thousand email addresses in the BCC field?
Last edited by Hugh G. Rection : October 5th, 2005 at 04:37 PM.
Posts: 7,652
Time spent in forums: 3 Months 6 Days 1 h 35 m 4 sec
Reputation Power: 6083
The problem we see is you SPAMMING people, or at least, this one looks like a fifty percent chance of being used to send out spam mail.
__________________ Chat Server Project & Tutorial | WiFi-remote-control sailboat (building) | Joke Thread
“Rational thinkers deplore the excesses of democracy; it abuses the individual and elevates the mob. The death of Socrates was its finest fruit.”
Use XXX in a comment to flag something that is bogus but works. Use FIXME to flag something that is bogus and broken. Use TODO to leave yourself reminders. Calling a program finished before all these points are checked off is lazy.
-Partial Credit: Sun
If I ask you to redescribe your problem, it's because when you describe issues in detail, you often get a *click* and you suddenly know the solutions.
Ches Koblents
Posts: 4,982
Time spent in forums: 3 Months 2 Weeks 5 Days 19 h 39 m 29 sec
Reputation Power: 0
Quote:
Originally Posted by gimp
The problem we see is you SPAMMING people, or at least, this one looks like a fifty percent chance of being used to send out spam mail.
I don't know... The php mail() function really isn't that good for spamming since it opens a separate new session for each and every email sent. Much more efficient would be using the PEAR::mail library...
But why bother? Lot's of free code out there that already accomplishes this.
Posts: 5
Time spent in forums: 2 h 10 m 55 sec
Reputation Power: 0
Hi,
You can try with the mail manager script. It fulfills all your requirements on mailing newsletters to multiple users at same time.
You do have the option of removing/adding the mail recipients.
I've been using this script http://www.hscripts.com/scripts/php/licensed/mailManager.php , for my site to send newsletters to the users.