Hi!
I am retrieving text from a Notion table and want to send it via Gmail.
All is fine as long as the text is not containing bold, italic or underline elements.
The reason is, that notion doesn’t give the text as HTML while the Gmail module expects HTML.
Is there any way of making a conversion without using some 3rd party JavaScript coding tool that I need to pay extra for?
Thanks a lot!
Hi!
I think you could achieve this by using inline functions in the Gmail module where you need the HTML. So, you could map the values from the Notion module and enclose them in the HTML element as required. What’s your current setup and what issues are you encountering specifically? Any supporting screenshots/videos would help too!
Hi!
Thanks for the quick reply!
So this is my current setup:
A: I retrieve text from a notion table, for example looking like this:
B: I already replace the line breaks here
C: I send the transformed text via gmail:
The text always varies and might or might not contain any special formatting.
Could you please elaborate what you mean by the inline functions?
Thanks and all the best!
Thank you for sharing the details - I mean something like this. You can see that the formula maps the page content, and depending on the type, it uses a dedicated HTML tag. Conceptually, I think this may be useful for your use case.
Okay, awesome - which module would you use to convert the text with the formula above?
Directly on the Gmail module, or using a “Set variables” module
Thank you!
Do I get this right, your example above shows the conversion for one string that has one setting, such as “This is bold text”
However, I am planning to send an email that can vary in structure and size.
Am I right to say, that I need to split up the text into elements depending on their formatting, convert them seperately and then merg them back together to one text?
Yes, I believe this is right based on the info I have see on this post. For example, in the sample screenshot I sent, I used a “Text Aggregator” to merge all the elements together with the IF function shown in the screenshot
Okay, thanks for clarifying.
That means in my case simply adding some “if” conditions in the gmail module won’t be sufficient.
I am surprised that there is no in-built function for this, this must be needed quite often i guess…
Well, is there any possibility to run any type of code (like python, javascript) whatsoever in make.com without using a 3rd party tool?
Of course I am also happy with other suggestions how to do this directly in make.com.
Here is how it looks like in Notion again:
and this is the bundle that make.com retrieves:
Output_notion_module.txt (10.5 KB)
Any advice is quite appreciated

Hi!
That actually does work, thanks.
However the person using this tool in notion is not really a coding person, so it’s not really a solution in this case I am afraid