开发者

Grails Ant Mail Line break

开发者 https://www.devze.com 2023-02-13 09:07 出处:网络
I\'m sure there is a very easy answer to this but how do I include a line break within the grails ant mail.I am using the format below, and i\'ve tried closing the quotes and using /n, HTML break tags

I'm sure there is a very easy answer to this but how do I include a line break within the grails ant mail. I am using the format below, and i've tried closing the quotes and using /n, HTML break tags, nothing seems to work.

ant.mail(mailho开发者_JS百科st:'x', mailport:'x', subject:'Test'){
                    from(address:"x")
                    replyto(address:"x")
                    to(address:"x")
                    message("Test")


You may forget to set the option to allow html tag:

message(mimetype:"text/html", "Your content")
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号