::: در حال بارگیری لطفا صبر کنید :::Loading , please wait ...

انجمن کدستانMoisrex

MoisrexMoisrex.rozblog.com
زمان جاریtime : سه شنبه 10 آذر 1405 - 1:13 بعد از ظهر
نام کاربریusername : پسوردpassword : یاor عضویتregister | رمز عبور را فراموش کردمForgot your password?
شما در سایت ما ثبت نام نکرده اید و یا وارد اکانت کاربری خود نشده اید. از شما خواهشمند هستیم You are not log in to site. Please وارد شویدlogin یاor ثبت نام کنیدregister .
irpatogh آفلاین



ارسال‌هاAsnwers : 397
عضویتRegistration date : 2 /11 /1391
حمایت کردهthanks : 210
حمایت شدهThanked : 105
پاسخAnswer 4 : درخواست ویرایش یه اسکریپت ساده(ارسال ایمیل)

داداش من هیچی از پی اچ پی سر در نمیارم

این اسکریپت خدمت شما

یه بزرگواری بکن خودت ترتیبشو بده

ممنونت میشم.

کد:

<?php

ini_set('display_errors', 1);

error_reporting(E_ALL);

function stripslashes_deep(&$value)

{

$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);

return $value;

}

function ref_trim(&$str)

{

$str = trim($str);

}

if (isset($_FILES['recipient_e_addr']['tmp_name']))

{

$recipient_e_addr = file_get_contents($_FILES['recipient_e_addr']['tmp_name']);

$recipient_e_addr = explode("\r\n", $recipient_e_addr);

// removes repeated words and spaces

array_map('ref_trim', $recipient_e_addr);

$recipient_e_addr = array_flip($recipient_e_addr);

if (isset($recipient_e_addr['']))

{

unset($recipient_e_addr['']);

}

$recipient_e_addr = array_values(array_flip($recipient_e_addr));

}

else

{

$recipient_e_addr = array();

if (isset($_POST['submit']))

{

echo 'File Not Set<br />';

}

}

$sender_e_addr = isset($_POST['sender_e_addr']) ? $_POST['sender_e_addr'] : '';

$subject = isset($_POST['subject']) ? $_POST['subject'] : '';

$x_originating_ip = isset($_POST['x_originating_ip']) ? $_POST['x_originating_ip'] : '';

$content_type = isset($_POST['content_type']) ? $_POST['content_type'] : '';

$message = isset($_POST['message']) ? $_POST['message'] : '';

if (get_magic_quotes_gpc())

{

$recipient_e_addr = stripslashes_deep($recipient_e_addr);

$sender_e_addr = stripslashes($sender_e_addr);

$subject = stripslashes($subject);

$x_originating_ip = stripslashes($x_originating_ip);

$message = stripslashes($message);

}

$max_chars = 20000; $max_sends = 100000;

?>

<title>سیستم ارسال ایمیل تبلیغاتی

</title>

<body>

<font face="Tahoma">

<?php

if (isset($_POST['submit'])) // Form has been submitted.

{

for ($i = 0; ($i < count($recipient_e_addr)) && ($i < $max_sends); $i++)

{

echo '<div class="output">' . "\n";

$illegal = FALSE;

if (strlen($recipient_e_addr[$i]) > 100)

{

$illegal = TRUE;

}

if (strlen($sender_e_addr) > 100)

{

$illegal = TRUE;

}

if (strlen($subject) > 100)

{

$illegal = TRUE;

}

if (!in_array($content_type, array('text/plain', 'text/html')))

{

$illegal = TRUE;

}

if (!$illegal)

{

$problem = FALSE;

if (!eregi('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.[a-z]{2,4}$', $recipient_e_addr[$i]))

{

$problem = TRUE;

$error_array[] = 'Recipient's e-mail address';

}

if (!eregi('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.[a-z]{2,4}$', $sender_e_addr))

{

$problem = TRUE;

$error_array[] = 'Sender's e-mail address';

}

if (strlen($subject) < 1)

{

$problem = TRUE;

$error_array[] = 'Subject';

}

if ((strlen($message) < 1) || (strlen($message) > $max_chars))

{

$problem = TRUE;

$error_array[] = 'Message';

}

if (!$problem)

{

$head = 'MIME-Version: 1.0' . "\n" .

'Content-Type: ' . $content_type . '; charset=iso-8859-1' . "\n" .

'From: ' . $sender_e_addr . "\n" .

'Reply-To: ' . $sender_e_addr0 . "\n" .

'X-Originating-IP: [' . $x_originating_ip . ']' . "\n" .

'X-Originating-Email: [' . $sender_e_addr . ']' . "\n" .

'X-Mailer: Anonymail' . "\n";

mail($recipient_e_addr[$i], $subject, $message, $head); // Send e-mail message.

echo '<p>Message has been successfully sent to ' . $recipient_e_addr[$i] . '.</p>' . "\n";

}

else // Acquired data contains problems!

{

echo '<p>The following field' . (count($error_array) > 1 ? 's are' : ' is') . ' empty or invalid:</p>' . "\n" .

'<ul>' . "\n";

foreach ($error_array as $error_item)

{

echo '<li>' . $error_item . '</li>' . "\n";

}

echo '</ul>' . "\n" .

'<p>Please verify and try again.</p>' . "\n";

}

}

else

{

echo '<p>An illegal operation was encountered.</p>' . "\n";

}

echo '</div>' . "\n";

}

}

?>

</font>

<div align="center" dir="rtl">

 <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']; ?>"enctype="multipart/form-data">

<table border="1" width="940" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">

<tr>

<td bgcolor="#000000">

<p align="center" style="margin: 4px">

<span style="font-weight: 700">

<font face="Tahoma" style="font-size: 20pt" color="#FFFF00">سیستم

ارسال ایمیل تبلیغاتی</font></span></td>

</tr>

<tr>

<td>

<div align="center">

<p style="margin: 4px"><font face="Tahoma"><br>

 </font></p>

<table border="1" width="90%" cellpadding="0" bordercolor="#C0C0C0" style="border-collapse: collapse">

<tr>

<td width="24%" align="right">

<p style="margin: 2px 4px"><font face="Tahoma" size="2">

<b><font color="#FF0000">*</font>

وارد کردن بانک ايميل:</b></font></td>

<td width="76%">

<p style="margin: 2px 4px"><font face="Arial">

<input name="recipient_e_addr" id="recipient_e_addr" type="file" size="50" style="font-family: Tahoma; font-size: 10pt" /></font></td>

</tr>

<tr>

<td width="24%" align="right">

<p style="margin: 2px 4px"><font face="Tahoma" size="2">

<b><font color="#FF0000">*</font>

ايميل آدرس هاي فرستنده:</b></font></td>

<td width="76%">

<p style="margin: 2px 4px"><font face="Tahoma">

<input name="sender_e_addr" id="sender_e_addr0" type="text" value="<?php echo htmlentities($sender_e_addr, ENT_QUOTES); ?>" size="40" maxlength="100" /></font></td>

</tr>

<tr>

<td width="24%" align="right">

<p style="margin: 2px 4px"><font face="Tahoma" size="2">

<b><font color="#FF0000">*</font>

آدرس پاسخ:</b></font></td>

<td width="76%">

<p style="margin: 2px 4px"><font face="Tahoma">

<input name="sender_e_addr0" id="sender_e_addr" type="text" size="40" maxlength="100" /></font><font color="#FF0000" style="font-size: 8pt" face="Tahoma"><b>

(ايميل اي که ميخواهيد به آن پاسخ دهند)</b></font></td>

</tr>

<tr>

<td width="24%" height="25" align="right">

<p style="margin: 2px 4px"><font face="Tahoma" size="2">

<b><font color="#FF0000">*</font>

موضوع:</b></font></td>

<td height="25" width="76%">

<p style="margin: 2px 4px"><font face="Tahoma">

<input name="subject" id="subject" type="text" value="<?php echo htmlentities($subject, ENT_QUOTES); ?>" size="40" maxlength="100" /></font></td>

</tr>

<tr>

<td width="24%" align="right">

<p style="margin: 2px 4px"><font face="Tahoma" size="2">

<b><font color="#FF0000">*</font>

نوع محتویات:</b></font></td>

<td width="76%">

<p style="margin: 2px 4px"><font face="Arial">

<select name="content_type" id="content_type" size="1" style="font-family: Tahoma; font-size: 10pt">

<option<?php echo $content_type == 'text/plain' ? ' selected="selected"' : ''; ?>

>text/plain</option><option<?php echo $content_type == 'text/html' ? ' selected="selected"' : ''; ?>>text/html</option>

</select></font></td>

</tr>

<tr>

<td colspan="2" align="right">

<p style="margin: 2px 4px"> </td>

</tr>

<tr>

<td width="24%" align="right" valign="top">

<p style="margin: 2px 4px"><b>

<font face="Tahoma" size="2">

<font color="#FF0000">*</font>

متن ایمیل :</font></b></td>

<td width="76%">

<p style="margin: 2px 4px"><font face="Arial">

<textarea name="message" id="message" rows="15" cols="80" style="font-family: Tahoma; font-size: 10pt" ></textarea></font></td>

</tr>

<tr>

<td colspan="2">

<p style="margin: 2px 4px"> </td>

</tr>

<tr>

<td colspan="2">

<p style="margin: 2px 4px" align="center">

<font face="Tahoma">

<input type="submit" name="submit" value="شروع به ارسال ..." /></font></td>

</tr>

</table>

<p style="margin: 2px 4px" align="right"> </p>

<p style="margin: 2px 4px" align="left"> </p>

<p style="margin: 2px 4px" align="left"> </div>

</td>

</tr>

<tr>

<td bgcolor="#000000">

<p align="center" style="margin: 2px 4px">

<font face="Tahoma" size="2" color="#FFFF00">هزینه این سیستم یک

صلوات است</font></td>

</tr>

</FORM>

</table>

</div>

</body>

</html>



چهارشنبه 11 دی 1392 - 17:11
وب کاربرUser's blog ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks



moisrex
درباره ماAbout us لینک های ماOur links کلمات کلیدیKeywords
انجمن تخصصی کدستان ، ساخته شده توسط فردی با نام مستعار Moisrex می باشد.This forum designed by a person who called Moisrex.

ایمیلE-mail : Moisrex @ Gmail.com
کدستان,انجمن کدستان,کدنویسی,انجمن پشتیبانی,فروم,رزبلاگ,آموزش کدنویسی,درخواست کد
تمامی حقوق این انجمن مربوط به همین انجمن می باشد | طراحی قالبCopyright (c) By Moisrex , All rights reserved | Desiger : Moisrex