How to send an HTML page in the body of an email with PHP?

0

How to send an HTML page in the body of an email with PHP? This html contains some bootstrap classes, how can I send this page with bootstrap styles, or css styles using the PHP mail function

    
asked by anonymous 15.06.2018 / 17:16

1 answer

1

Using the header options of the email:

$headers='Content-Type: text/html; charset="utf-8"';

You create a page html with css for emails.

  

Here's an English SO question about it

     

And here's a CSS-TRICKS article on the subject

    
15.06.2018 / 17:58