/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { MailBuilder } from "../MailBuilder"; import type { String } from "../../types/java/lang/String"; /** * Mail utility interface. * *
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getMailUtil()}.
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the Utils interface.
*
* Note! To send one or more mails, you must use a {@link MailBuilder}. * Use the {@link #getMailBuilder()} method to get a builder instance. *
* @author Magnus Lövgren * @since Sitevision 3.6 */ export interface MailUtil { /** * Returns a mail builder for creating mails. * @return a mail builder */ getMailBuilder(): MailBuilder; /** * Checks if a mail address has a valid format. * @param aMailAddress the address to check * @returntrue if aMailAddress has a valid format and can be used to create a
javax.mail.internet.InternetAddress, false otherwise.
*/
isValidAddress(aMailAddress: String | string): boolean;
/**
* Gets the mail address of the site responsible.
*
* * Note! The returned address is not validated, i.e. it might be an invalid mail address. *
* @return the mail address of the site responsible, ornull if there are no address or if it's whitespace only
*/
getSiteResponsibleAddress(): string;
/**
* Gets the from mail address of current site.
*
* * Note! The returned address is not validated, i.e. it might be an invalid mail address. *
* @return the from mail address of current site, ornull if there are no address or if it's whitespace only
*/
getSiteFromAddress(): string;
/**
* Gets the mail address of the server responsible.
*
* * Note! The returned address is not validated, i.e. it might be an invalid mail address. *
* @return the mail address of the server responsible, ornull if there are no address or if it's whitespace only
*/
getServerResponsibleAddress(): string;
/**
* Gets the server from mail address.
*
* * Note! The returned address is not validated, i.e. it might be an invalid mail address. *
* @return the server from mail address, ornull if there are no address or if it's whitespace only
*/
getServerFromAddress(): string;
}
declare namespace MailUtil {}
declare var mailUtil: MailUtil;
export default mailUtil;