Advertisement
AlexWebDevelop

HTML template

Mar 11th, 2021
943
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /* The HTML email template */
  4. $template =
  5.  
  6. '
  7. <html>
  8. <body>
  9. <p>Hello, %%name%%</p>
  10. </body>
  11. </html>
  12. ';
  13.  
  14. /* For each recipient, customize the template */
  15. $rcptTemplate = str_replace('%%name%%', $name, $template);
  16.  
  17. /* Send the email */
  18. $mail->isHTML(TRUE);
  19. $mail->Body = $rcptTemplate;
  20. $mail->send();
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement