I have checked Lostusername when i type an email adress and click on send then it doesn't send anything... If i send to all users then it sends good...
I know foyleman knows why... I have no idea why
I am using pnTresmailer 6.03, PN 7.2.6
index.php
Code
function LostUsername($sub_email) {
global $ModName, $prefix, $pntable;
$sitename = pnConfigGetVar('sitename');
list($dbconn) = pnDBGetConn();
//include("modules/$ModName/pnversion.php");
include("modules/$ModName/common.php");
if($sub_email == '') {
page_headers('');
echo "<table align=\"center\" cellspacing=\"0\" cellpadding=\"6\" border=\"0\">\n"
."<tr>\n"
."<td align=\"center\" class=\"pn-normal\">"._SELFSUBSCRIBERMISS." <a href=\"modules.php?op=modload&name=$ModName&file=index\">"._HERE."</a>.</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n"
."\n";
?>
<script>
function redirect()
{
window.location.replace("modules.php?op=modload&name=<?php echo $ModName?>&file=index");
}
setTimeout("redirect();", 1250);
</script>
<?php
page_footers('');
return;
}
$sql = mysql_query("SELECT sub_name, sub_email FROM $prefix"._nl_subscriber." WHERE sub_email = '$sub_email'");
$email_check = mysql_num_rows($sql);
if($email_check == 0) {
page_headers('');
echo "<table align=\"center\" cellspacing=\"0\" cellpadding=\"6\" border=\"0\">\n"
."<tr>\n"
."<td align=\"center\" class=\"pn-normal\">"._NOSUBEMAIL." <a href=\"modules.php?op=modload&name=$ModName&file=index\">"._HERE."</a>.</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n"
."\n";
?>
<script>
function redirect()
{
window.location.replace("modules.php?op=modload&name=<?php echo $ModName?>&file=index");
}
setTimeout("redirect();", 1250);
</script>
<?php
page_footers('');
return;
}
list($sub_name, $sub_email) = mysql_fetch_row($sql);
$sub_name = stripslashes($sub_name);
$sql = mysql_query("SELECT nl_subject, nl_name, nl_email, nl_url FROM $prefix"._nl_var."");
list($nl_subject, $nl_name, $nl_email, $nl_url) = mysql_fetch_row($sql);
$nl_subject = stripslashes($nl_subject);
$nl_name = stripslashes($nl_name);
$message = "<b>"._SOMEUSERREQUEST." $sitename.</b><br><br>"._EMAIL." : <b>$sub_email</b><br>"._USERNAME." : <b>$sub_name</b><br><br><a href=\"$nl_url/modules.php?op=modload&name=$ModName&file=index\">$nl_url</a>.<br><br>"._THANKYOU.",<br><a href=\"mailto:$nl_email\">$nl_name</a>";
$footer_message = ""._FOOTERMESSAGE."";
$message .= "<br><br><br><br>$footer_message";
$mailto .= "$sub_email";
$headers = "Errors: $nl_name<$nl_email>\n";
$headers .= "Reply-To: $nl_name<$nl_email>\n";
$headers .= "Return-Path: $nl_name<$nl_email>\n";
$headers .= "FROM: $nl_name<$nl_email>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; windows-1251\n";
$headers .= "Content-Transfer-Encoding: 7bit\n";
$headers .= "Content-Disposition: inline;\n";
$headers .= "Content-Base: $nl_url\n";
$to = "$mailto";
mail("$to", "$nl_subject", "$message", "$headers");
page_headers('');
echo "<table align=\"center\" cellspacing=\"0\" cellpadding=\"6\" border=\"0\">\n"
."<tr>\n"
."<td align=\"center\" class=\"pn-normal\">"._USERNAMEMAILED." <a href=\"modules.php?op=modload&name=$ModName&file=index\">"._HERE."</a>.</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n"
."\n";
?>
<script>
function redirect()
{
window.location.replace("modules.php?op=modload&name=<?php echo $ModName?>&file=index");
}
setTimeout("redirect();", 1250);
</script>
<?php
page_footers('');
}
global $ModName, $prefix, $pntable;
$sitename = pnConfigGetVar('sitename');
list($dbconn) = pnDBGetConn();
//include("modules/$ModName/pnversion.php");
include("modules/$ModName/common.php");
if($sub_email == '') {
page_headers('');
echo "<table align=\"center\" cellspacing=\"0\" cellpadding=\"6\" border=\"0\">\n"
."<tr>\n"
."<td align=\"center\" class=\"pn-normal\">"._SELFSUBSCRIBERMISS." <a href=\"modules.php?op=modload&name=$ModName&file=index\">"._HERE."</a>.</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n"
."\n";
?>
<script>
function redirect()
{
window.location.replace("modules.php?op=modload&name=<?php echo $ModName?>&file=index");
}
setTimeout("redirect();", 1250);
</script>
<?php
page_footers('');
return;
}
$sql = mysql_query("SELECT sub_name, sub_email FROM $prefix"._nl_subscriber." WHERE sub_email = '$sub_email'");
$email_check = mysql_num_rows($sql);
if($email_check == 0) {
page_headers('');
echo "<table align=\"center\" cellspacing=\"0\" cellpadding=\"6\" border=\"0\">\n"
."<tr>\n"
."<td align=\"center\" class=\"pn-normal\">"._NOSUBEMAIL." <a href=\"modules.php?op=modload&name=$ModName&file=index\">"._HERE."</a>.</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n"
."\n";
?>
<script>
function redirect()
{
window.location.replace("modules.php?op=modload&name=<?php echo $ModName?>&file=index");
}
setTimeout("redirect();", 1250);
</script>
<?php
page_footers('');
return;
}
list($sub_name, $sub_email) = mysql_fetch_row($sql);
$sub_name = stripslashes($sub_name);
$sql = mysql_query("SELECT nl_subject, nl_name, nl_email, nl_url FROM $prefix"._nl_var."");
list($nl_subject, $nl_name, $nl_email, $nl_url) = mysql_fetch_row($sql);
$nl_subject = stripslashes($nl_subject);
$nl_name = stripslashes($nl_name);
$message = "<b>"._SOMEUSERREQUEST." $sitename.</b><br><br>"._EMAIL." : <b>$sub_email</b><br>"._USERNAME." : <b>$sub_name</b><br><br><a href=\"$nl_url/modules.php?op=modload&name=$ModName&file=index\">$nl_url</a>.<br><br>"._THANKYOU.",<br><a href=\"mailto:$nl_email\">$nl_name</a>";
$footer_message = ""._FOOTERMESSAGE."";
$message .= "<br><br><br><br>$footer_message";
$mailto .= "$sub_email";
$headers = "Errors: $nl_name<$nl_email>\n";
$headers .= "Reply-To: $nl_name<$nl_email>\n";
$headers .= "Return-Path: $nl_name<$nl_email>\n";
$headers .= "FROM: $nl_name<$nl_email>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; windows-1251\n";
$headers .= "Content-Transfer-Encoding: 7bit\n";
$headers .= "Content-Disposition: inline;\n";
$headers .= "Content-Base: $nl_url\n";
$to = "$mailto";
mail("$to", "$nl_subject", "$message", "$headers");
page_headers('');
echo "<table align=\"center\" cellspacing=\"0\" cellpadding=\"6\" border=\"0\">\n"
."<tr>\n"
."<td align=\"center\" class=\"pn-normal\">"._USERNAMEMAILED." <a href=\"modules.php?op=modload&name=$ModName&file=index\">"._HERE."</a>.</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n"
."\n";
?>
<script>
function redirect()
{
window.location.replace("modules.php?op=modload&name=<?php echo $ModName?>&file=index");
}
setTimeout("redirect();", 1250);
</script>
<?php
page_footers('');
}
Thx,
miggy
PS:Can some1 tell me where can i download a block for pnTresMailer of PostNuke that it shows not the button but the fields where some1 can put his name, email and can submit it...
I saw on www.modsonline.com
