Sending formatted mails with Mule

后端 未结 2 1003
一生所求
一生所求 2021-01-15 04:30

I\'m sending emails using Mule. I need to add format to the text I send. The content of the mail is the payload which has a String in it that I form in a Java method and sen

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-15 04:50

    I solved it. I was missing setting content-type in the smtp:connector and the mime-type in the smtp:outbpund-endbound as text/html for the to work. This is the correct code:

    
     
    

    With this configuration you can use html in your text like this

     Email

    company

    Name : name
    Company : arch
    Email : qqq@aaaa.com

    fin

    and it will be shown when receiving the email.

    Hope it'll help someone else.

提交回复
热议问题