I’ve got this really nice mailing list php script up and running. Not sure exactly how it works but it doesn’t use a database. The problem with it is, it will say not allowed for certain email addresses, nothing in common with any of them it won’t allow. It’s worked for over 300 people, but I have about 20 people tell me it won’t allow their address. Ths script is here
[url]http://www.3sxcars.com/newsletter.php
One of the addresses it won’t allow is [email][email protected]
The script is called ccmail and I got it at [url]http://www.cicoandcico.com/products.php?option=ccmail
I’ve looked at it for weeks and can’t figure it out. Any help would be greatly appreciated ?
if (count($groups) > 1)
{
print $CCMAIL_LANG['idlike']."<br>
<input type="checkbox" name="everything" value="everything" checked>".$CCMAIL_LANG['everything']."<br>n";
$gr_count = 0;
foreach($groups as $item)
{
$gr_count ++;
print "<input type="checkbox" name="group_$gr_count" value="$item">$item<br>n";
}
}
print "</form>n";
//writes groups into file
$string = ""; foreach ($selected_groups as $item) $string .= $item . "n"; //create group string
unlink ($addresses_dir . "/" . $user_filename);
if (write_to_file($addresses_dir . "/" . $user_filename, $string))
print "<b>".$CCMAIL_LANG['mod_suc']." <a class="link" href="$PHP_SELF?action="><b>".$CCMAIL_LANG['go_back']."</b></a><br><br></b>";
else print "<b>".$CCMAIL_LANG['mod_err']."<br></b>";
}
print "<form method="get" action="$PHP_SELF">
<input readonly name="address" size="20" value="$address" class="tbox_max">
<input type="hidden" name="action" value="modify">
<input type="hidden" name="modify" value="yes">
<input type="submit" value="".$CCMAIL_LANG['go']."" class="button"><br><br>";
$subscribed_groups = get_user_details($pass, $user_filename, false);
if (count($groups) > 1)
{
print $CCMAIL_LANG['edit_group'] ."<br>
<input type="checkbox" name="everything" value="everything"";
if (count($subscribed_groups) == 0) print "checked";
print ">".$CCMAIL_LANG['everything']."<br>n";
$gr_count = 0;
foreach($groups as $item)
{
$gr_count ++;
print "<input type="checkbox" name="group_$gr_count" value="$item"";
if (in_array($item, $subscribed_groups)) print "checked";
print ">$item<br>n";
}
}
print "</form>n";
}
else print "<b>".$CCMAIL_LANG['usr_not_sub']." <a class="link" href="$PHP_SELF?action="><b>".$CCMAIL_LANG['go_back']."</b></a></b><br><br>";
if ($validation_email == "on") //if validation is required
{
if (file_search($waiting_dir, $cripted_address) != false) {
print "<b>".$CCMAIL_LANG['waiting_val']."</b><br><br>";
//Sending notification...
$user_email = array($address);
$temp_code_array = explode("_~_", file_search($waiting_dir, $cripted_address));
$existing_validation_code = trim($temp_code_array[2]);
include ($settings_dir . "/validation_text.ccmail");
$val_link = $subscription_form_url . "?address=$address&validation_code=$existing_validation_code";
$validation_text = str_replace("VALIDATION_LINK", "<a href="$val_link" title="Click to activate your account">$val_link</a>", $validation_text);
mail_array($pass, $user_email, $notify_message, $validation_text, "html", false);
}
else{
@include ($functions_dir . "/keygen.php");
$validation_code = key_gen(true);
if(write_to_file($waiting_dir . "/" . $cripted_address . "_~_" . time() . "_~_" . $validation_code, $string)){
echo "<b>$address</b> ".$CCMAIL_LANG['val_sent'];
print "<br><br><center><a class="link" href="$PHP_SELF?action="><b>".$CCMAIL_LANG['go_back']."</b></a></center>";
//Sending notification...
$user_email = array($address);
include ($settings_dir . "/validation_text.ccmail");
$val_link = $subscription_form_url . "?address=$address&validation_code=$validation_code";
$validation_text = str_replace("VALIDATION_LINK", "<a href="$val_link" title="Click to activate your account">$val_link</a>", $validation_text);
mail_array($pass, $user_email, $notify_message, $validation_text, "html", false);
}
else print $CCMAIL_LANG['val_err'];
}
}
else
{
//Write groups into file
if(write_to_file($addresses_dir . "/" . $cripted_address . "_~_" . time(), $string)){
echo "<b>$address</b> ".$CCMAIL_LANG['sub_suc'];
if ($notify_user == "YES") print "<br>".$CCMAIL_LANG['sub_confirm'];
print "<br><br><center><a class="link" href="$PHP_SELF?action="><b>".$CCMAIL_LANG['go_back']."</b></a></center>";
//Sending notification...
include ($settings_dir . "/on_subscription.ccmail");
include ($settings_dir . "/notify_message.ccmail");
$admin_email = array($send_copy_to);
$user_email = array($address);
if ($notify_user == "YES") mail_array($pass, $user_email, $notify_message, $on_subscription, "text", false);
if ($notify_admin == "YES" && $send_copy_to != "") mail_array($pass, $admin_email, $notify_message, "User $address subscribed to your mailing list.", "text", false);
}
else print $CCMAIL_LANG['sub_err'];
}
}
else { print "<b>".$CCMAIL_LANG['usr_alr_sub']."</b><br><br><center>";
if (count($groups) > 1) print "<a href="$PHP_SELF?address=$address&action=modify" class="link">".$CCMAIL_LANG['modify']."</a> | ";
print "<a href="$PHP_SELF?address=$address&action=unsubscribe" class="link">".$CCMAIL_LANG['unsubscribe']."</a></center>"; }
Ok, don't post that much code in a post, attach it as a file. Can you give us some examples of emails which don't work? Perhaps rot13 them or something so that spam bots can't steal them.[/QUOTE]
0.1.9 — BETA 5.24