Advertisement
AlexWebDevelop

HTML template

Mar 11th, 2021
1,111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement