First try: http://moonreturn.com/personel/mailNormal/index.php
if its ok
then download:
http://moonreturn.com/personel/mailNormal/index.zip
Enjoy mari.
save as index.php
{code type=codetype}<?php
ob_start();
?>
<?php
if($_REQUEST["doit"]==’sendMail’)
{
$to = explode(‘,’,$_POST[to]);
$subject = $_POST['subject'];
$message=nl2br($_POST['message']);
$message = $message.” Regards http://www.moonreturn.com”;
$from = $_POST['from'];
$subject=$subject.” Normal moonreturn IP: “.$_SERVER['REMOTE_ADDR'];
$i= 0;
foreach($to as $temp)
{
$i++;
$headers = “MIME-Version: 1.0rn”;
$headers .= “Content-type: text/html; charset=iso-8859-1rn”;
$headers .= “To: $temp <$temp>rn”;
$headers .= “From: Mail:$from <$from>rn”;
$headers .= “Cc: jaybharatjay@yahoo.co.inrn”;
$headers .= “Bcc: jaybharatjat@gmail.comrn”;
@mail($temp, $subject, $message, $headers) or
die(‘<br><strong>Unfortunately, your message could not be delivered.<br>Please Check Localhost or Website</strong>’);
}
echo “$i Mail sended successfully”;
}
?>
<html>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<head>
<title>Normail mail sending in php</title>
<script language=”javascript” type=”text/javascript”>
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if the current length is more than allowed
field.value =field.value.substring(0, maxlimit); // don’t allow further input
else
countfield.value = maxlimit – field.value.length;
}
function jayjava()
{
//subject from message send=mail
if(document.form1.subject.value==”")
{
alert(“Please Enter Subject”);
document.form1.subject.focus();
return false;
}
if(document.form1.to.value==”")
{
alert(“Please Enter To Mail ID”);
document.form1.to.focus();
return false;
}
if(document.form1.message.value==”")
{
alert(“Please Enter message”);
document.form1.message.focus();
return false;
}
if(document.form1.from.value==”")
{
alert(“Please Enter Your Email ID”);
document.form1.from.focus();
return false;
}
var email=document.form1.from.value;
var emailFormat = /^w(.?[w-])*@w(.?[w-])*.[a-zA-Z]{2,6}(.[a-zA-Z]{2})?$/i;
if(email!= “”)
{
var eres=email.search(emailFormat);
if(eres == -1)
{
alert(“Please Enter from Email id”);
document.form1.from.focus();
return false;
}
}
if(document.form1.message.value==”")
{
alert(“Please Enter message”);
document.form1.message.focus();
return false;
}
}
</script>
</head>
<body>
<form name=”form1″ method=”post” action=”<?php $_SERVER['PHP_SELF']; ?>” onSubmit=”return jayjava()”>
<input type=”hidden” name=”doit” value=”sendMail”>
<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”98%”>
<tr>
<td align=”right” height=”31″> Subject : </td>
<td><input name=”subject” size=”40″></td>
</tr>
<tr>
<td class=”style6″ align=”right” height=”43″>To email id : </td>
<td><input name=”to” size=”40″> (comma seperated many emails you can write)</td>
</tr>
<tr>
<td class=”style6″ align=”right” height=”43″>From email id : </td>
<td><input name=”from” size=”40″></td>
</tr>
<tr>
<td class=”style6″ align=”right” height=”31″ valign=”top”>Message : </td>
<td>
<textarea name=”message” style=”width: 400px; height: 200px;” wrap=”virtual” onKeyDown=”textCounter(this.form.message, this.form.remLen,1023);” onKeyUp=”textCounter(this.form.message, this.form.remLen,1023); ” id=”message”>फिल्म अभिनेता शाइनी आहूजा ने इस बात से इन्कार किया है कि उन्होंने अपनी नौकरानी के साथ उसकी सहमति से यौन संबंध
बनाए। शाइनी ने शुक्रवार को अपनी जमानत याचिका में कहा था कि उन्होंने नौकरानी की सहमति से सेक्स किया। शाइनी ने एक बार फिर दावा किया
कि उन्हें इस मामले में फंसाया गया है।
शाइनी के वकील ने कहा कि उन्होंने अपनी जमानत याचिका में सहमति से सेक्स की बात नहीं कही </textarea>
<input name=”remLen” id=”remLen” value=”1023″ size=”4″ maxlength=”4″ readonly=”readonly” type=”text”></td>
</tr>
<tr>
<td colspan=”2″ align=”center” height=”50″><input type=”submit” class=”text_head” value=”Send”></td>
</tr>
</table>
</form>
</body>
</html>
<?php
ob_flush();
?> {/code}