Package com.day.cq.mailer.email
Interface EmailTemplate<Type extends Email>
- Type Parameters:
Type- Type of email
- All Superinterfaces:
MessageTemplate<Type>
Define a
Template that can be used to build Emails.- Since:
- 5.4
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetFrom()getText()voidsetCharSet(Charset charSet) voidsetFrom(InternetAddress from) voidsetSubject(String subject) voidMethods inherited from interface com.day.cq.mailer.MessageTemplate
buildMessage, dispose, getType, put
-
Method Details
-
setText
- Parameters:
text- to set as body of this message
-
getText
String getText()- Returns:
- message body set on template
-
setSubject
- Parameters:
subject- to be used for the email
-
getSubject
String getSubject()- Returns:
- the subject set to this template
-
setFrom
- Parameters:
from- and Address to be used as from- Throws:
AddressException- in case the address is in invalid format
-
getFrom
InternetAddress getFrom()- Returns:
- the address set
-
setCharSet
- Parameters:
charSet- to use for sending
-
getCharSet
Charset getCharSet()- Returns:
- charSet set
-