diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index aacd7a914..8a56721d2 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -13,6 +13,7 @@ If you can't find a solution below, please open an [issue](https://github.com/se * [Environment Variables and Your SendGrid API Key](#environment) * [Using the Package Manager](#package-manager) * [Viewing the Request Body](#request-body) +* [Wrapping Text](#wrapping-text) ## Migrating from v2 to v3 @@ -126,3 +127,45 @@ const mail = Mail.create(data); const body = mail.toJSON(); console.log(body); ``` + + +## Wrapping Text + +You can write blog posts using e-mail with the help of SENDGRID API, like so: +```javascript +sgMail.setApiKey(process.env.SENDGRID_API_KEY); + let msg = { + to: '@blogger.com', + from: '@gmail.com', + subject: title, + html: html, + }; + sgMail.send(msg); +``` +You can also wrap the text in the HTML to make a multi-line blog post: +```javascript +
+ int a = 10; + int b = 10; + int d = 10; + +
+``` + + + + + + + + + + + + + + + + + +