Email microflow

0
Hi there, I'm quite new to Mendix and I have a couple of questions regarding my app, especially my email notification microflow. How would I be able to: - Add a line break in the mail so that not everything is displayed in one line the email body - Add multiple recipients to one email. How do I delimit email adresses? Thanks for the help! Philip
asked
6 answers
1

If your email is in html then you can use the "<br>" tag to separate lines. 

https://www.w3schools.com/tags/tag_br.asp

 

'Shipper ID:' + $variable +
'<br>" +
'Shipper did not confirm order!' +
'<br>' +
'Shipper: ' + $variable +
'<br>' 

 

 

Also what module are you using? I recommend email module with templates. In this module, when you create an email template it uses a html editor and will set these tags for you. 

https://appstore.home.mendix.com/link/app/259/Mendix/E-mail-module-with-templates

 

For multiple recipients to one email, there should be a field for CC in the email table. 

answered
0

Assuming you want to change the text in a microflow, just hit enter in the change-variable / change-mameber box:

 

answered
0

Hi Jacob,

I tried but it doesn't work. My email is not only plain text, it also contains attributes.

Any other ideas?

answered
0

Philip,

As one of the previous answers indicated, I would recommend using an email template (from the Email Templates module).  Then you can format the email template in the Mendix UI (using pages from the Email Templates module), and simply pass in data elements to the email via use of tokens.

I think the get the email working from your example, you should format it like this:

'
Shipment id: ' + $shipment/shipmentID + ' /

Shipper did not confirm: ' + $shipper/name + ' /

Date of Shipment: ' + $shipment/date

But I am not 100% sure this will work with a plain body email.

As for the email delimiter, its a semicolon.

Hope that helps,

Mike

answered
0

Hi Mike and Austin,

Thank you for the help! The <br> tag does not work for me but I'll try to implement the template solution via the email module.

I'll update you on my results!

Thanks again,

Philip

answered
0

Hi Philip

Did you get any solution to add line break for string type like I am using it in email plan body. But nothing working for me. Please let me know if you got any .

Thanks.

answered