Advertisement
Guest User

Untitled

a guest
Sep 7th, 2016
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.02 KB | None | 0 0
  1. <?php
  2. class mail{
  3. function mailreg($toemail,$toname){
  4.  
  5. date_default_timezone_set('Etc/UTC');
  6. require 'PHPMailerAutoload.php';
  7. $mail = new PHPMailer;
  8. $mail->isSMTP();
  9. //$mail->SMTPDebug = 2;
  10. $mail->Debugoutput = 'html';
  11. $mail->Host = 'ssl://smtp.gmail.com';
  12. //$mail->Host ='smtp.mail.yahoo.com';
  13. $mail->Port = 465;
  14. $mail->SMTPSecure = 'ssl';
  15. $mail->SMTPAuth = true;
  16. $mail->Username = "contactezenith@gmail.com";
  17. $mail->Password = "Welcome@1234";
  18. $mail->setFrom('contactezenith@gmail.com', 'Ezenith Education');
  19. $mail->AddReplyTo('contactezenith@gmail.com', 'Ezenith Education');
  20. $mail->addAddress($toemail,$toname);
  21. $mail->Subject = 'AUTOMOBILE DEVELOPMENT INTERNSHIP (ADI)-2017';
  22. //$HTML='<!doctype html><html><head><meta name="viewport" content="width=device-width"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style>{font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6em;margin: 0;padding: 0;} img { max-width: 600px; width: auto; } body { -webkit-font-smoothing: antialiased; height: 100%; -webkit-text-size-adjust: none; width: 100% !important; } a { color: #348eda; } .btn-primary { Margin-bottom: 10px; width: auto !important; } .btn-primary td { background-color: #348eda; border-radius: 25px; font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 14px; text-align: center; vertical-align: top; } .btn-primary td a { background-color: #348eda; border: solid 1px #348eda; border-radius: 25px; border-width: 10px 20px; display: inline-block; color: #ffffff; cursor: pointer; font-weight: bold; line-height: 2; text-decoration: none; } .last { margin-bottom: 0; } .first { margin-top: 0; } .padding { padding: 10px 0; } table.body-wrap { padding: 20px; width: 100%; } table.body-wrap .container { border: 1px solid #f0f0f0; } table.footer-wrap { clear: both !important; width: 100%; } .footer-wrap .container p { color: #666666; font-size: 12px; } table.footer-wrap a { color: #999999; } h1, h2, h3 { color: #111111; font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight: 200; line-height: 1.2em; margin: 40px 0 10px; } h1 { font-size: 36px; } h2 { font-size: 28px; } h3 { font-size: 22px; } p, ul, ol { font-size: 14px; font-weight: normal; margin-bottom: 10px; } ul li, ol li { margin-left: 5px; list-style-position: inside; } .container { clear: both !important; display: block !important; Margin: 0 auto !important; max-width: 600px !important; } .body-wrap .container { padding: 20px; } .content { display: block; margin: 0 auto; max-width: 600px; } .content table { width: 100%; } </style> </head> <body bgcolor="#f6f6f6"> <!-- body --> <table class="body-wrap" bgcolor="#f6f6f6"> <tr> <td></td> <td class="container" bgcolor="#FFFFFF"> <!-- content --> <div class="content"> <table> <tr> <td> <p style="font-size:26px;color:rgb(80, 0, 80)"><b>AUTOMOBILE DEVELOPMENT INTERNSHIP (ADI)-2016</b></p><br> <p style="font-size:18px;color:rgb(80, 0, 80)"><b>ADI is an exclusive internship program on advanced automobile technologies with real time industry experts.</b></p> <p>Hi&nbsp;'.$team.',</br>Greetings from <span style="font-family: Helvetica;font-size: 15px;color:#6495ed;font-weight:bold">Ezenith Education</span></br> This mail is to inform you that your registration for ADI 2016 has been accepted by us. Please review the details about the program and proceed with the payment process.</p> <h4 style="font-family: Helvetica;color:#6495ed;font-weight:bold">Highlights of ADI 2016</h4> <ul style="color:rgb(80, 0, 80);font-size:17px;"> <li>Course curriculum designed by our reputed experts from reputed OEMs like <a style="color:red">Hyundai, Ford, Ashok Leyland, Mahindra, Autodesk</a> etc. and research organizations like <a style="color:rgb(100, 149, 237)">IITs, DRDO</a> etc.</li> <li><a style="color:rgb(100, 149, 237)">Practical hands-on sessions</a> in each and every concept which is taught.</li> <li>Work on <a style="color:rgb(100, 149, 237)">live Automobile equipment </a></li> <li>Work on a <a style="color:rgb(100, 149, 237)">live project</a> along with our industrial experts.</li> <li>Freedom to Innovate.</li> <li>Internationally recognized Certification as <a style="color:rgb(100, 149, 237)">"internship in advanced automotive technology"</a> to all the participants.</li> <li>Top interns in our program would get an opportunity to <a style="color:rgb(100, 149, 237)">work with our industrial experts on research projects </a>and assistance in their higher studies/ job/ Ph.D.</li> </ul> <h4 style="font-family: Helvetica;color:#6495ed;font-weight:bold">Important Notes</h4> <ul> <li>Payment Details <ul> <li>Internship fees Rs.4,500/- per head (ADI level 1).</li> <li>Group discounts available on payment</li> <li>Discount deadline : June 1st 2016</li> <li>Payment deadline : June 2nd 2016</li> </ul> <li>Payment Details For ADI Level 2</li> <ul> <li>Payment deadline : June 2nd 2016</li> <li>Internship fees Rs.7000/- per head (ADI level 2).</li> </ul> <li>Bank Account Details </li> <ul> <li>Account Name: Ezenith Education</li> <li>Account Type: Current</li> <li>Bank : Oriental Bank of Commerce</li> <li>Account Number: 11201131000471</li> <li>IFSC Number: ORBC0101120 (Use this code if you're doing Internet banking)</li> <li>For Online Payment Click Here :- <a href="http://www.ezenith.in/adi.html">www.ezenith.in/adi.html</a></li> </ul> <li>ADI Level 2 :-<a href="http://www.ezenith.in/adil2.html">www.ezenith.in/adil2.html</a></li> <li>Internship Center</li> <ul> <li>Hyderabad Center</li> <li>Pune Center</li> <li>Mumbai Center</li> <li>Ahmedabad Center</li> <li>Bangalore Center</li> <li>GOA Center(Level 2 Only)</li> </ul> </ul> <p><h4>Regards,</h4> <h4>Ezenith Education Team.</h4> <h4>+91 9619727582</h4></p> </td> </tr> </table> </div>';
  23. $HTML='<!doctype html><html><head><meta name="viewport" content="width=device-width"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style>{font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6em;margin: 0;padding: 0;} a{font-weight: bold;}img { max-width: 600px; width: auto; } ul{font-size: 17px;}body { -webkit-font-smoothing: antialiased; height: 100%; -webkit-text-size-adjust: none; width: 100% !important; } a { color: #348eda; } .btn-primary { Margin-bottom: 10px; width: auto !important; } .btn-primary td { background-color: #348eda; border-radius: 25px; font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 14px; text-align: center; vertical-align: top; } .btn-primary td a { background-color: #348eda; border: solid 1px #348eda; border-radius: 25px; border-width: 10px 20px; display: inline-block; color: #ffffff; cursor: pointer; font-weight: bold; line-height: 2; text-decoration: none; } .last { margin-bottom: 0; } .first { margin-top: 0; } .padding { padding: 10px 0; } table.body-wrap { padding: 20px; width: 100%; } table.body-wrap .container { border: 1px solid #f0f0f0; } table.footer-wrap { clear: both !important; width: 100%; } .footer-wrap .container p { color: #666666; font-size: 12px; } table.footer-wrap a { color: #999999; } h1, h2, h3 { color: #111111; font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight: 200; line-height: 1.2em; margin: 40px 0 10px; } h1 { font-size: 36px; } h2 { font-size: 28px; } h3 { font-size: 22px; } p, ul, ol { font-size: 14px; font-weight: normal; margin-bottom: 10px; } ul li, ol li { margin-left: 5px; list-style-position: inside; } .container { clear: both !important; display: block !important; Margin: 0 auto !important; max-width: 600px !important; } .body-wrap .container { padding: 20px; } .content { display: block; margin: 0 auto; max-width: 600px; } .content table { width: 100%; } </style> </head> <body bgcolor="#f6f6f6"> <!-- body --> <table class="body-wrap" bgcolor="#f6f6f6"> <tr> <td></td> <td class="container" bgcolor="#FFFFFF"> <!-- content --> <div class="content"> <table> <tr> <td> <p style="font-size:26px;color:rgb(80, 0, 80)"><b>AUTOMOBILE DEVELOPMENT INTERNSHIP (ADI)-2017</b></p><br> <p style="font-size:18px;color:rgb(80, 0, 80)"><b>ADI is an exclusive internship program on advanced automobile technologies with real time industry experts.</b></p> <p style="16px;">Hi&nbsp;'.$toname.',<br> Greetings from <span style="font-family: Helvetica;font-size: 15px;color:#6495ed;font-weight:bold">Ezenith Education</span></br> This mail is to inform you that your registration for ADI 2017 has been accepted by us. Please review the details about the program and proceed with the payment process.</p> <h4 style="font-family: Helvetica;color:#6495ed;font-weight:bold">Highlights of ADI 2017</h4> <ul style="color:rgb(80, 0, 80);font-size:17px;"> <li>Course curriculum designed by our reputed experts from reputed OEMs like <a style="color:red">Hyundai, Ford, Ashok Leyland, Mahindra, Autodesk</a> etc. and research organizations like <a style="color:rgb(100, 149, 237)">IITs, DRDO</a> etc.</li> <li><a style="color:rgb(100, 149, 237)">Practical hands-on sessions</a> in each and every concept which is taught.</li> <li>Work on <a style="color:rgb(100, 149, 237)">live Automobile equipment </a></li> <li>Work on a <a style="color:rgb(100, 149, 237)">live project</a> along with our industrial experts.</li> <li>Freedom to Innovate.</li> <li>Internationally recognized Certification as <a style="color:rgb(100, 149, 237)">"internship in advanced automotive technology"</a> to all the participants.</li> <li>Top interns in our program would get an opportunity to <a style="color:rgb(100, 149, 237)">work with our industrial experts on research projects </a>and assistance in their higher studies/ job/ Ph.D.</li> </ul> <h4 style="font-family: Helvetica;color:#6495ed;font-weight:bold">Important Notes</h4> <ul style="font-size:17px;"> <li>Payment Details <ul> <li>Internship fees <a style="color:rgb(100, 149, 237)">Rs.5,000/- per head </a>.</li> <li><a style="color:rgb(100, 149, 237)">Group discounts available on payment</a></li> <li>Discount deadline : <a style="color:rgb(100, 149, 237)">September 8th 2016</a></li> <li>Payment deadline : <a style="color:rgb(100, 149, 237)">September 9th 2016</a></li> </ul> <li>Bank Account Details </li> <ul> <li>Account Name:<a style="color:rgb(100, 149, 237)">Ezenith Education</a></li> <li>Account Type:<a style="color:rgb(100, 149, 237)">Current</li></a> <li>Bank : <a style="color:rgb(100, 149, 237)">Oriental Bank of Commerce</a></li> <li>Account Number: <a style="color:rgb(100, 149, 237)">11201131000471</a></li> <li>IFSC Number: <a style="color:rgb(100, 149, 237)">ORBC0101120</a> (Use this code if you're doing Internet banking)</li> <li>For Online Payment Click Here :- <a href="http://www.ezenith.in/adi.html">www.ezenith.in/adi.html</a></li> </ul> <li>Internship Center</li> <ul> <a style="color:rgb(100, 149, 237)"><li>Mumbai Center</li> <li>Ahmedabad Center</li> <li>Bangalore Center</li> </ul></a></ul> </td> </tr> </table> </div>';
  24. //$HTML="FSD";
  25. $mail->msgHTML($HTML);
  26. $mail->AltBody = 'Kindly View in Browser';
  27.  
  28. //send the message, check for errors
  29. if (!$mail->send()) {
  30. // echo "Mailer Error: " . $mail->ErrorInfo;
  31. } else { // echo "Message sent!";
  32. }
  33. }
  34. }
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement