Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(0);
- if(isset($_POST['submit']))
- {
- // smtp list
- $line = $_POST['smtplist'];
- $details = explode("\n", $line);
- foreach($details as $value) { // clean each field
- $detail =explode("|", $value);
- $smtpServer = $detail[0];
- $port = "25";
- $timeout = "30";
- $user = $detail[1];
- $pass = $detail[2];
- $newLine = "\r\n";
- $to = "spam@iln-mc.org"; // test delivering (your email)
- $nameto = "AlbatritSylaj"; // write something eg (TORSELLER202)
- $from = "st0realbo@hushmail.com";
- $namefrom = "torseller20321";
- $localhost = $detail[0];
- $subject = "HORUX.RU";
- $message = "hello my friend im from horux.ru";
- // MAIL FUNCTION
- echo $smtpServer . " | " . $user . " | " . $pass;
- //Connect to the host on the specified port
- $smtpConnect = fsockopen($smtpServer, $port, $errno, $errstr, $timeout);
- $smtpResponse = fgets($smtpConnect, 515);
- if(empty($smtpConnect))
- {
- echo "Failed to connect: $smtpResponse";
- }
- else
- {
- echo "Connected: $smtpResponse";
- }
- //Request Auth Login
- fputs($smtpConnect,"AUTH LOGIN" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- echo "$smtpResponse</br>";
- //Send username
- fputs($smtpConnect, base64_encode($user) . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- echo "$smtpResponse</br>";
- //Send password
- fputs($smtpConnect, base64_encode($pass) . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- echo "$smtpResponse</br>";
- //Say Hello to SMTP
- fputs($smtpConnect, "HELO $localhost" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- //Email From
- fputs($smtpConnect, "MAIL FROM: $from" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- //Email To
- fputs($smtpConnect, "RCPT TO: $to" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- //The Email
- fputs($smtpConnect, "DATA" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- fputs($smtpConnect, "To: $to\nFrom: $from\nSubject: $subject\n$message\n.\n");
- $smtpResponse = fgets($smtpConnect, 515);
- // Say Bye to SMTP
- fputs($smtpConnect,"QUIT" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- //insert var_dump here -- uncomment out the next line for debug info
- }
- }
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <style type="text/css">
- body {
- font-family: 'Arial Black', sans-serif;
- }
- #content {
- width: 800px;
- margin: auto auto;
- }
- .error {
- font-weight: bold;
- color: #8A0808;
- }
- .notice {
- font-weight: bold;
- color: #D7DF01;
- }
- .success {
- font-weight: bold;
- color: #04B404;
- }
- </style>
- </head>
- <body>
- <div id="content">
- <h1>SMTP Checker</h1>
- <p>Format mail.google.com|username|password</p>
- <form method="post">
- <table>
- <tr><td><textarea placeholder="" style="height: 550px; width: 800px;" name="smtplist"></textarea></td></tr>
- <center> <div align="left"><tr><td></td><td><input style="float: right;" name="submit" type="submit"></td></tr></div></center>
- </table>
- </form>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment