All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.emphased.malle.example.freemarker.package-info Maven / Gradle / Ivy

The newest version!
/**
 * Sample app that uses Javamail Malle implementation and the Freemarker support to send out an email
 * using the specified template.
 *
 * 

* Supported system properties: *

*
    *
  • All Javamail standard properties. See javax.mail * and com.sun.mail.smtp (and other) packages' Javadoc
  • . *
  • {@code malle.javamail.password} - allows to specify the authentication password. See Gmail command line example below.
  • *
  • {@code template} - path to the template. If prefixed with {@code classpath:} the template will be loaded from the classpath.
  • *
  • Any other system properties used by template. Note that in order to reference properties with dots in the name * they must be replaced with an underscore character. For instance, writing ${mail.user} * won't work but ${mail_user} will work fine and will be replaced with the value of * @{code mail.user} system property.
  • *
* *

* Gmail command line example using the bundled sample template: *

*
 *     java -Dmail.smtp.auth=true \
 *          -Dmail.smtp.starttls.enable=true \
 *          -Dmail.smtp.host=smtp.gmail.com \
 *          -Dmail.smtp.port=587 \
 *          [email protected] \
 *          -Dmalle.javamail.password=YourAppPassword \
 *          -Dtemplate=classpath:sample.ftl \
 *          [email protected] \
 *          -jar malle-freemarker-example-<version>-allinone.jar
 * 
*/ package net.emphased.malle.example.freemarker;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy