GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   I Need A Simple Email Script ??? (https://gfy.com/showthread.php?t=933512)

Wiredoctor 10-15-2009 12:46 PM

I Need A Simple Email Script ???
 
No this is not for spamming at all. I'm looking for a simple Windows based script to send emails from my puter. Doesn't need to be complicated it's simply for a mass email to about 200-300 customers with newsletters and updates. Anyone know of any decent ones?

Thanks In Advance :pimp

Wiredoctor 10-15-2009 01:04 PM

Bump for some help..:upsidedow

SmokeyTheBear 10-15-2009 01:26 PM

put all your emails in a file called emails.txt each on a new line
put your email message in a file called message.txt

save this code as email.php and run in browser it will email each email in list the message in message.txt ( html can be used )

Code:

<?php


$from = "[email protected]";
$subject = "my email subject";
$list = file_get_contents("emails.txt");
$message = file_get_contents("message.txt");



$headers = "From: $from\r\n";
$headers .= "Reply-To: $from\r\n";
$headers .= "Return-Path: $from\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";


$dc = explode("\n",$list);


foreach( $dc as $key => $to){
if(mail($to, $subject, $message,$headers)) {
echo "$to has been mailed<br>";
} else {
echo "error sending to $to <br>";
}
}

?>


SmokeyTheBear 10-15-2009 01:27 PM

p.s. many server by default will limit the amount of emails you can send per hour, i'm thinking its like 200 or something

DamianJ 10-15-2009 02:17 PM

Quote:

Originally Posted by Wiredoctor (Post 16431681)
No this is not for spamming at all. I'm looking for a simple Windows based script to send emails from my puter. Doesn't need to be complicated it's simply for a mass email to about 200-300 customers with newsletters and updates. Anyone know of any decent ones?

Thanks In Advance :pimp

It's more than likely against the ToS of your ISP to use your box as a mail server.

Just something to consider


All times are GMT -7. The time now is 05:01 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123