You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Grails in development my application is sending mail correctly. When I run grails war and deploy to Tomcat, then I get the following error:
GrailsMailException: message has no content, use text(), html() or body() methods to set content
This is how I'm using the sendMail command.
String body = groovyPageRenderer.render(template: "/dfdirHeartbeatAlert/restoreHeartbeatEmail", model: [user: user, message: heartbeatMessage])
println(body)
mailService.sendMail {
multipart true
bcc bccList.toArray()
from "<email_address>"
subject "Subject"
html body
}
When I print out body in development it looks correct. However printing body in production deployed on Tomcat comes back as an empty string.
Is this the intended syntax for sending html mail?
The text was updated successfully, but these errors were encountered:
When running Grails in development my application is sending mail correctly. When I run
grails war
and deploy to Tomcat, then I get the following error:This is how I'm using the sendMail command.
When I print out body in development it looks correct. However printing body in production deployed on Tomcat comes back as an empty string.
Is this the intended syntax for sending html mail?
The text was updated successfully, but these errors were encountered: