skimppimppin along! NEWS   FORUM   DOWNLOAD   LINKS    
HOME ACCOUNT PRIVATE MESSAGE  
Login
Username:

Password:


Lost Password?

Register now!

Main Menu

Search

skimpydog.com Forum Index
   Scripting
  Mass Mailer

Browsing this Thread:   1 Anonymous Users

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
Mass Mailer
#1
Webmaster
Joined: 2007/6/10
From Dallas, TX
Posts: 79
Level : 7
HP : 0 / 170
MP : 26 / 8763
EXP : 83
Group:
Webmasters
Registered Users
Offline
I cannot stress enough that if you use this script to make sure the script in in a secure area, with preferably limited access rights from the outside world! - This should be encrypted traffic, and secured with user authentication, and session handling. I take no responsibility if your server get's hacked because you do not know what you are doing.

This is a very basic script that should be inserted with a header, and footer to handle cookie sessions and user authentication at a minimum!

The scope of this script is to be able to send emails to users while preventing the users from being able to tell who all the email was sent to. Using the following method this will also keep the email header small.

Achievement: the script is written to have the To: address be the solo email recipient. There will be an email delivered for every recipient instead of using the BCC: method while To: is sending hundreds of emails to the To: recipient. So instead of sending 1 email to your users (with a large header), they will all receive their own individual email (which keeps the email header small).

Please know some ISP's and Mail Filters may see this as a spoofed email and may consider it to not be trusted. This depends on server configuration, rDNS, as well as SPF records.

The Script
<?php
$email_list = file("list");
$total_emails = count($email_list);
for ($counts=0; $counts<$total_emails; $counts++) {
   $email_list[$counts] = trim($email_list[$counts]);
   }
$subject = "SUBJECT";
$message = "EMAIL MESSAGE";
foreach ($email_list as $mail => $email) { if ( mail ("{$email}",$subject,$message,"From:user@dom.com\r\n")) {
   echo "The email has been sent!";
   } else {
   echo "The email has failed!";
    } }
?>


The "list"
user@domain1.com
user@domain2.com
user3@domain3.com
Posted on: 2010/3/11 21:51
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.
Links