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

woko.mail.MailService Maven / Gradle / Ivy

There is a newer version: 2.4-beta7
Show newest version
package woko.mail;

import woko.Woko;

import java.util.Locale;
import java.util.Map;

public interface MailService {

    public static final String KEY = "MailService";

    /**
     * Sends the email to passed recipient using specified template
     * and binding.
     * @param woko the Woko instance
     * @param to the recipient's email address
     * @param locale the Locale to be used
     * @param template the MailTemplate to be used
     * @param binding the binding to be used
     */
    void sendMail(Woko woko, String to, Locale locale, MailTemplate template, Map binding);

    /**
     * Return the URL of the application to be used in email links.
     * @return the app URL
     */
    String getAppUrl();

    /**
     * Return the sender's email address to be used in emails
     * @return the "from" email address
     */
    String getFromEmailAddress();

    /**
     * Return a MailTemplate for passed name
     * @param name the name of the MailTemplate
     * @return a MailTemplate
     */
    MailTemplate getMailTemplate(String name);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy