Guest User

Untitled

a guest
Feb 1st, 2018
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. $to = 'aquiroz@info-mat.com, lexquirox@gmail.com';
  2.  
  3. $subject = 'Website Change Reqest';
  4.  
  5.  
  6. $message = '<html>
  7. <head>
  8. <meta name="viewport" content="width=device-width" />
  9. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  10. <title>Test HTML</title>
  11. </head>
  12. <body style="margin:0px; background: #f8f8f8; ">
  13. <div width="100%" style="background: #f8f8f8; padding: 0px 0px; font-family:arial; line-height:28px; height:100%; width: 100%; color: #514d6a;">
  14. <div style="max-width: 700px; padding:50px 0; margin: 0px auto; font-size: 14px">
  15. <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; margin-bottom: 20px">
  16. <tbody>
  17. <tr>
  18. <td style="vertical-align: top; padding-bottom:30px;" align="center"><a href="http://eliteadmin.themedesigner.in" target="_blank"><img src="../plugins/images/eliteadmin-logo-dark.png" alt="Eliteadmin Responsive web app kit" style="border:none"><br/>
  19. <img src="../plugins/images/eliteadmin-text-dark.png" alt="Eliteadmin Responsive web app kit" style="border:none"></a> </td>
  20. </tr>
  21. </tbody>
  22. </table>
  23. <div style="padding: 40px; background: #fff;">
  24. <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
  25. <tbody>
  26. <tr>
  27. <td><b>Dear Sir/Madam/Customer</b>
  28. <p>This is to inform you that, Your account with Elite Admin has been created successfully. Log it for more details.</p>
  29. <a href="javascript: void(0);" style="display: inline-block; padding: 11px 30px; margin: 20px 0px 30px; font-size: 15px; color: #fff; background: #00c0c8; border-radius: 60px; text-decoration:none;"> Call to action button </a>
  30. <p>This email template can be used for Create Account, Change Password, Login Information and other informational things.</p>
  31. <b>- Thanks (Test)</b> </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. <div style="text-align: center; font-size: 12px; color: #b2b2b5; margin-top: 20px">
  37. <p> Ok sender<br>
  38. <a href="javascript: void(0);" style="color: #b2b2b5; text-decoration: underline;">Unsubscribe</a> </p>
  39. </div>
  40. </div>
  41. </div>
  42. </body>
  43. </html>';
  44.  
  45. // To send HTML mail, the Content-type header must be set
  46. $headers[] = 'MIME-Version: 1.0';
  47. $headers[] = 'Content-type: text/html; charset=iso-8859-1';
  48.  
  49. // Additional headers
  50. $headers[] = 'To: AQ <aquiroz@info-mat.com>, SQ <aquiroz@info-mat.com>';
  51. $headers[] = 'From: Example Email <alexanderquiroz@info-mat.com>';
  52. $headers[] = 'Cc: lexquirox@gmail.com';
  53. $headers[] = 'Bcc: lexquirox@gmail.com';
  54.  
  55.  
  56. if(mail($to, $subject, $message, implode("rn", $headers))){
  57. echo 'Mail Sent';
  58.  
  59. }else{
  60.  
  61.  
  62. echo 'Mail NOT Sent';
  63.  
  64.  
  65.  
  66. exit();
  67.  
  68. }
  69.  
  70. $headers[] = 'Content-type: text/plain; charset=iso-8859-1';
Add Comment
Please, Sign In to add comment