white-arrow
01.12.2011, 20:10
Нужно отправить письмо с подменой адреса. Т.е. у меня есть почта1@mail.ru на которую нужно с почта2@mail.ru отправить письмо. Кто может помочь 477007439
php код на хостинг залей и отправляй
или вот сайт для ленивых
shram.kiev.ua/safemail/ (http://www.shram.kiev.ua/safemail/)
Надеюсь помог
php код на хостинг залей
Можно кодик?
daniel777
03.12.2011, 04:38
hutrun said:
Можно кодик?
Както так:
От кого
Кому
Тема
Текст
">
Листинг functions.php
alert(\'Неправильно заполнено поле "E-mail отправителя"\')'; } } else return false; if (isset($_POST['name'])) { $name = trim($_POST['name']); if (!preg_match('/^.{3,30}$/', $name)) { return 'alert(\'Неправильно заполнено поле "Имя отправителя"\')'; } } else return false; if (isset($_POST['subject'])) { $subject = trim($_POST['subject']); if (!preg_match('/^.{3,128}$/', $subject)) { return 'alert(\'Неправильно заполнено поле "Тема письма"\')'; } } else return false; if (isset($_POST['to'])) { $to = trim($_POST['to']); $to = strtolower($to); if (!preg_match_all('/ *[a-z0-9_\.-]{2,30}@[a-z0-9_\.-]{2,20}\.[a-z\.]{2,6} */', $to, $mail_list)) { return 'alert(\'В списке не найдено ни одного корректного адреса E-mail"\')'; } else { $to = array(); foreach ($mail_list[0] as $key => $value) { $to[$key] = $value; $to[$key] = trim($to[$key]); } } } else return false; if (isset($_POST['message_type'])) { $message_type = trim($_POST['message_type']); if ($message_type == 'text') $content_type = 'Content-Type: text/plain; charset=UTF-8' . " "; else if ($message_type == 'html') $content_type = 'Content-Type: text/html; charset=UTF-8' . " "; } else return false; if (isset($_POST['message'])) { $message = trim($_POST['message']); $message = stripslashes($message); if (strlen($message) 4096) { return 'alert(\'Неправильно заполнено поле "Текст письма"\')'; } } else return false; return array ( 'from' => $from, 'name' => $name, 'subject' => $subject, 'message' => $message, 'to' => $to, 'content_type' => $content_type ); } function add_mail_to_db ($email) { $email = trim($email); $email = htmlspecialchars($email); $email = mysql_real_escape_string($email); $last_used = date("Y-m-d H:i:s"); $q = mysql_query ("SELECT `id` FROM `e-mails` WHERE `e-mail`='$email' LIMIT 1"); if (mysql_num_rows($q) > 0) $q = "UPDATE `e-mails` SET `last_used`='$last_used' WHERE `e-mail`='$email' LIMIT 1"; else $q = "INSERT INTO `e-mails` (`e-mail`, `last_used`) VALUES ('$email', '$last_used')"; $result = mysql_query($q); if (!$result) return false; return true; } function sent_post_from_fake_mail ($from, $name, $subject, $message, $to, $content_type) { $sent_status = mail ($to, $subject, $message, $content_type . "From: $name "); if ($sent_status !== false) return true; else return false; } function input_value ($field_name) { if (isset($_POST[$field_name])) return ' value="'.$_POST[$field_name].'"'; } function textarea_value () { if (isset($_POST['message'])) return stripslashes($_POST['message']); } function textarea_mail_values () { if (isset($_POST['to'])) return trim($_POST['to']); } function radio_checked ($value) { if (isset($_POST['message_type']) && $_POST['message_type'] == $value) return ' checked'; else if ($value == 'text') return ' checked'; } $alert = ''; $textarea_mail_list = ''; if (isset($_GET['do']) && $_GET['do'] == 'sent') if (post_data_is_valid ()) { if (isset($_COOKIE['sent']) && $_COOKIE['sent'] == 'true') $alert = 'alert(\'Рассылать письма можно только 1 раз в 5 минут\')'; else { $sent_data = post_data_is_valid (); if (!is_array($sent_data) && $sent_data !== false) $alert = $sent_data; else { $success = 0; $failed = 0; $sent_data['to'] = array_unique($sent_data['to']); foreach ($sent_data['to'] as $to) { add_mail_to_db ($to); $sent_status = sent_post_from_fake_mail ($sent_data['from'], $sent_data['name'], $sent_data['subject'], $sent_data['message'], $to, $sent_data['content_type']); if (!$sent_status) $failed++; else { $success++; } } if ($success === 0) $alert = 'alert(\'Рассылка завершилась неудачей. Попробуйте повторить попытку через 30 минут\')'; else { setcookie('sent', 'true', time() + 300); $alert = 'alert(\'Рассылка законечена. Успешно отправлено: '.$success.' писем. Завершились неудачей: '.$failed.' рассылок\')'; } } } } ?>
__________________________________
Листинг config.php
__________________________________
Листинг index.php
Анонимная отправка писем с любого почтового ящика function diplay_hide (blockId) { if ($(blockId).css('display') == 'none') $(blockId).animate({height: 'show'}, 500); else $(blockId).animate({height: 'hide'}, 500); } Код для сайта ">Отправить письмо с поддельного E-mail адреса Отправить письмо с любого адреса placeholder="E-mail отправителя"> placeholder="Имя отправителя"> placeholder="Тема письма"> Формат письма: > Текст > HTML Послать письмо Сервис разрабатывался как программа-шутка исключительно для ознакомительных целей. Администрация сайта не несет никакой ответственности за дейстия пользователей.
_____________________________
Листинг style.css
html { background: #fcf8e4; } h1 { color: #333; font-size: 18px; font-weight: normal; text-align: center; } #wrap { width: 400px; margin: 50px auto; text-align: center; } input { width: 100%; padding: 5px; margin-bottom: 5px; font-family: Tahoma, Verdana; font-size: 14px; } input.textbox { border: 1px solid #626262; --moz-border-radius: 3px; --webkit-border-radius: 3px; border-radius: 3px; } input.textbox:-moz-placeholder { color: #333; } input.textbox::-webkit-input-placeholder { color: #333; } textarea { width: 100%; height: 150px; margin: 8px 0; padding: 5px; font-family: Tahoma, Verdana; font-size: 14px; border: 1px solid #626262; --moz-border-radius: 3px; --webkit-border-radius: 3px; border-radius: 3px; } textarea:-moz-placeholder { color: #333; } textarea::-webkit-input-placeholder { color: #333; } button { width: 415px; height: 70px; margin: 5px 0; } footer p { font-family: Tahoma, Verdana; font-size: 11px; text-align: left; color: #cc0000; margin-left: 30px; margin-top: 30px; } a.share { position: absolute; top: 10px; left: 10px; font-family: Tahoma, Verdana; text-decoration: none; border-bottom: 1px dashed #222; color: #000; font-weight: bold; font-size: 12px; } textarea#share { position: absolute; top: 20px; left: 10px; width: 400px; height: 45px; font-family: "Courier New", Consolas; font-size: 13px; } label { font-family: Tahoma, Verdana; font-size: 12px; cursor: pointer; } form span { font-family: Tahoma, Verdana; font-size: 12px; } .radiobox { margin-top: 5px; }
altblitz
03.12.2011, 19:28
ТС, у тебя есть 5 минут времени?
ознакомься с headers/заголовками в быстрой электро почте.
можно кучу прог насочинять, но они не пройдут. и вот почему
PHP:
Received-SPF:pass(google.com:
domain of mention-nygoyvgm=tznvy.pbz-462a9@postmaster.twitter.com designates 199.59.1 48.231aspermitted sender)
client-ip=199.59.148.231;
Authentication-Results:mx.google.com;spf=pass
(google.com:domain of mention-nygoyvgm=tznvy.pbz-462a9@postmaster.twitter.com
designates 199.59.148.231aspermitted sender)
smtp.mail=mention-nygoyvgm=tznvy.pbz-462a9@postmaster.twitter.com;
dkim=pass header.i=@twitter.com
skippetr
27.08.2013, 17:43
Если всё еще кого-нибудь это интересует, то вот рабочий сайт для того, чтобы отправить анонимно письмо (http://www.lamelab.com/mail.php)
vBulletin® v3.8.14, Copyright ©2000-2026, vBulletin Solutions, Inc. Перевод: zCarot