Solving Email Formatting Issues with Make.com

Have you ever faced a situation where you have a variable that stores multiple ChatGPT responses and when you pump that into a Google doc it is formatted correctly, but when you email it out using the Outlook module it comes through as one giant wall of text? Well, you're not alone. This is a common problem many Make.com users face and today, we're going to solve it.

The Problem

The main issue here is that the email doesn't honor the newline characters (\n \r) in the document. You might have tried replacing the content with replace(Content;\n;
)
, jumping between text and HTML in the Outlook Module, or even reading the contents of the Google Doc and emailing that, but to no avail.

The Solution

After much trial and error, the solution is surprisingly simple. All you need to do is send an HTML email template like this in the body of your email:

<html><body>...</body></html>

This will force your email client to show HTML content. But that's not all. You also need to use (Content;newline;
)
instead of replace(Content;\n;
)
. This small change makes a big difference and solves the problem.

Troubleshooting Tips

If you're still facing issues, make sure you're correctly replacing the newline characters and that your email client supports HTML content. Also, double-check your code for any syntax errors.

Conclusion

In conclusion, dealing with formatting issues in emails can be tricky, but with the right approach, it's definitely solvable. Remember to use an HTML email template and replace the newline characters correctly. Happy coding!

You do have further questions?

Ask your question via E-Mail: Richard@make-app.de
Book a paid Support & Consulting Session
New Make.com user? Sign up through this Affiliate Link to receive 10.000 operations for FREE.