Email « playframework « Java Enterprise Q&A





1. Attachment + Email + HTML + Play Framework    stackoverflow.com

I'm using play framework in this project and I'm trying to send an E-mail with a Logo attached but I want to show this logo as part of my HTML code! My ...

2. Sending emails from local host - Play Framework    stackoverflow.com

Does anybody know the smtp settings that need to be applied within the application.conf file of a Play Framework project for sending emails on localhost? During my unit testing I am getting ...

3. Catch MailException    stackoverflow.com

Is it possible to catch a MailException when sending an e-mail? I want to catch it in scenarios like mail server is down, malformed e-mail address, etc. I see the MailException in the ...

4. Send mail in Heroku using SendGrid    stackoverflow.com

I'm trying to send an email using Play Framework and SendGrid in Heroku. I set the configuration (Application.conf) as follows:

mail.smtp=smtp
mail.smtp.host=smtp.sendgrid.net
mail.smtp.port=587
mail.smtp.user=${SENDGRID_USERNAME}
mail.smtp.pass=${SENDGRID_PASSWORD}
mail.smtp.protocol=smtps
mail.smtp.channel=plain
mail.debug=true
but I get this exception:
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
java.lang.reflect.InvocationTargetException
   ...

5. How do I point to the public images directory in a Play! Framework HTML email    stackoverflow.com

In a Play! Framework app :- Trying to render an image from the public images folder in an HTML email. I've set

application.baseUrl=http://localhost:9000/
in the application.conf, then in my email view template, I've ...