@deron
When sending an email using SMTP, you can format the text by using HTML tags. Here are some common HTML tags that you can use to format text in an email:
When using these HTML tags, make sure to include them within the and tags in your email message. Here is an example of how you can format text in an email using SMTP:
1 2 3 4 5 6 7 8 9 10 11 12 |
<html> <body> <b>This text is bold</b> <i>This text is italic</i> <h1>This is a Heading Level 1</h1> <ul> <li>Item 1</li> <li>Item 2</li> </ul> <a href="https://www.example.com">Click here</a> </body> </html> |
Make sure to set the content type of your email to "text/html" in the SMTP message headers to ensure that the email client renders the HTML tags correctly.