nicedomain4sale
Account Closed
- Impact
- 2
PHP:
<?php
$maxSize="500"; // Maximum size for letter message
$verify_referrer=0; // Do you want to do domain checking (1 for yes and 0 for no)
$domain="http://anonmailer.com"; // Enter your domain if you want to verify it
$domainAlias="http://www.anonmailer.com"; // Enter your domains alias if you want to verify it
// NO EDITING BEYOND THIS POINT
// PHP script by Dave Lauderdale
// Published at: [url]www.digi-dl.com[/url]
// A little bit modified by nicedomain4sale for [url]www.anonmailer.com[/url]
if($name=="")
{
$errorMes1="ERROR: You didn't write your name. ";
$error=1;
}
if($message=="")
{
$errorMes2="ERROR: You didn't write a message. ";
$error=1;
}
if($subject=="")
{
$errorMes3="ERROR: You didn't include a subject line. ";
$error=1;
}
elseif (strlen($message) >= $maxSize)
{
$errorMes4="ERROR: Your message is too long. The maximum characters allowed is $maxSize. ";
$error=1;
}
else
$error=0;
if ($from!=="")
{
if (!eregi("^.+@.+\\..+$", $from))
{
$errorMes5="ERROR: Your email address contains errors. ";
$error=1;
}
}
else
$from=trim($from);
if ($to!=="")
{
if (!eregi("^.+@.+\\..+$", $to))
{
$errorMes6="ERROR: The targets email address contains errors. ";
$error=1;
}
}
else
$to=trim($to);
if($verify_referrer==1)
{
if(!eregi("$domain", $HTTP_REFERER) && !eregi("$domainAlias", $HTTP_REFERER))
{
$errorMesA="ERROR: Invalid referer. ";
$error=1;
}
}
if ($error==0)
{
$body="This message was using free mailer at www.anonmailer.com<br>You should not trust what the content in this email<br>$message<br> ";
$from="\"$name\" <$from>\n";
$headers="Content-Type: text/html; charset=Windows-1252\n";
$headers.="From: $from";
mail($to,$subject,$body,$headers);
header("Refresh: 1; URL=http://www.anonmailer.com/");
}
if ($error==1)
{
echo (" <body>
<br>
<p style='font:10pt ms sans serif'>SendMail <font color=red> Error</font>
<br>
<br>
The following errors have occured:
<br>
<br>
$errorMes1<br>
$errorMes2<br>
$errorMes3<br>
$errorMes4<br>
$errorMes5<br>
$errorMes6<br>
$errorMesA<br>
</body>");
}
?>
I need help with <br> thingy. My problem is that when I input the message, I found that if I press enter for newline, then the output is not as I hope, the newline is not exist. The solution is when I input the message with <br> as newline, the output is as I hope, there is newline.
Example: Hello.<br>How are you?
Output:
Hello.
How are you?
But I want the user don't use the <br> thingy for their comfortability. I want the user use enter key as newline instead of write <br> as newline.
Can someone help me to modify the script.
This is the link for this script, if you want to tried out. http://www.anonmailer.com/sendemailanonymously.htm
As thank you I will give you 20NP$ for you that help me untill this problem solved.













