import javax.mail.Session;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
+import org.mxchange.jcoreee.utils.FacesUtils;
import org.mxchange.jmailee.model.delivery.BaseMailer;
import org.mxchange.jmailee.model.delivery.wrapper.WrapableEmailDelivery;
// Init context
VelocityContext context = new VelocityContext();
+ // Get base URL from JSF
+ String baseUrl = FacesUtils.generateBaseUrl();
+
+ // ... and set it (for all templates the same)
+ context.put("baseUrl", baseUrl); //NOI18N
+
// Are some variables set?
if ((emailWrapper.getTemplateVariables() != null) && (!emailWrapper.getTemplateVariables().isEmpty())) {
// Add all variables