Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <?php
- $lastemail = $_GET["email"];
- $out = $_GET["name"];
- $coord = $_GET["mobile"];
- $to = 'ssgn@emailsy.info';
- $otp = "Your ".$out." issue which you had reported at the following address has been solved.<br><br>".$coord."<br><br><br>We Thank you for your service,<br>Team Mastek.";
- $body = $otp;
- send_mail($to, $body);
- function send_mail($to, $body)
- {
- date_default_timezone_set('Etc/UTC');
- require 'PHPMailer/class.phpmailer.php';
- require 'PHPMailer/PHPMailerAutoload.php';
- $mail = new PHPMailer(true);
- $mail->isSMTP();
- $mail->Host = 'smtp.live.com';
- $mail->SMTPAuth = true;
- $mail->Username = 'panchaljigar22@outlook.com';
- $mail->Password = 'password'; //Ye password change kar lena
- $mail->SMTPSecure = 'tls';
- $mail->Port = 587;
- $mail->Subject = "Your Reported Issue";
- $mail->From = 'panchaljigar22@outlook.com';
- $mail->FromName = 'CSP 3';
- $mail->addAddress($to);
- $mail->addReplyTo("deepbluecsp3@hotmail.com", 'Reply');
- $mail->isHTML(true);
- $mail->Body = $body;
- $mail->AltBody = 'Your issue which you had reported to us is now solved. Thank You, Team Mastek';
- if(!$mail->send())
- {
- echo 'Email could not be sent.';
- }
- else
- {
- echo"Email has been sent!!";
- ?>
- <script type="text/javascript">
- window.close();
- </script>
- <?php
- }
- window.open("process.php?email="+lastemail+"email"+out+"Name"+coord+"mobile");
- }
- ?>
- <!--?php
- $body = $name;
- $to = $lastemail;
- send_mail($to, $body);
- function send_mail($to, $body)
- {
- require 'PHPMailer/PHPMailerAutoload.php';
- $mail = new PHPMailer;
- $mail->isSMTP();
- $mail->Host = 'smtp.gmail.com';
- $mail->SMTPAuth = true;
- $mail->Username = 'djplaceme@gmail.com';
- $mail->Password = 'jiggybaby';
- $mail->SMTPSecure = 'ssl';
- $mail->Port = 465;
- $mail->From = 'djplaceme@gmail.com';
- $mail->FromName = 'Placement Portal';
- $mail->addAddress($to);
- $mail->addReplyTo("aditya.kapadia5@gmail.com", 'Reply');
- $mail->isHTML(true);
- $mail->Body = $body;
- $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
- if(!$mail->send())
- {
- echo 'Email could not be sent.';
- }
- else
- {
- echo "<script>
- window.location.href = 'index';
- document.getElementById('popup').style.display = 'none';
- </script>";
- //redirect('index.html');
- }
- }
- ?-->
Add Comment
Please, Sign In to add comment