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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -