Copyright© 2008-2026 Sitevision AB, all rights reserved.
@Requireable(value="MailUtil") public interface MailUtil
An instance of the Sitevision class implementing this interface can be obtained via Utils.getMailUtil().
See Utils for how to obtain an instance of the Utils interface.
Note! To send one or more mails, you must use a MailBuilder.
Use the getMailBuilder() method to get a builder instance.
| Modifier and Type | Method and Description |
|---|---|
MailBuilder |
getMailBuilder()
Returns a mail builder for creating mails.
|
String |
getServerFromAddress()
Gets the server from mail address.
|
String |
getServerResponsibleAddress()
Gets the mail address of the server responsible.
|
String |
getSiteFromAddress()
Gets the from mail address of current site.
|
String |
getSiteResponsibleAddress()
Gets the mail address of the site responsible.
|
boolean |
isValidAddress(String aMailAddress)
Checks if a mail address has a valid format.
|
MailBuilder getMailBuilder()
boolean isValidAddress(String aMailAddress)
aMailAddress - the address to checktrue if aMailAddress has a valid format and can be used to create a
javax.mail.internet.InternetAddress, false otherwise.String getSiteResponsibleAddress()
Note! The returned address is not validated, i.e. it might be an invalid mail address.
null if there are no address or if it's whitespace onlyString getSiteFromAddress()
Note! The returned address is not validated, i.e. it might be an invalid mail address.
null if there are no address or if it's whitespace onlyString getServerResponsibleAddress()
Note! The returned address is not validated, i.e. it might be an invalid mail address.
null if there are no address or if it's whitespace onlyString getServerFromAddress()
Note! The returned address is not validated, i.e. it might be an invalid mail address.
null if there are no address or if it's whitespace onlySitevision - Content Management Made Easy
Sitevision is an advanced Java enterprise portal product that implements Java Content Repository (JSR 283).
Copyright© 2008-2026 Sitevision AB, all rights reserved.