java - How to set the content type with Grails mail plugin? -
the grails mail plugin documentation shows how set content type gsp templates:
<%@ page contenttype="text/html"%>
but don't use gsp (and not!) , produce string freemarker. there way set content type without using gsp?
if use html statement in sendmail method plugin set content type you. sendmail command can used without requiring gsp template.
mailservice.sendmail { "recipient@recipient.com" "someone@place.com" subject "email without gsp" html "some markup" }
Comments
Post a Comment