Package com.day.cq.mailer.email
Interface EmailTemplate<Type extends Email>
-
- Type Parameters:
Type
- Type of email
- All Superinterfaces:
MessageTemplate<Type>
public interface EmailTemplate<Type extends Email> extends MessageTemplate<Type>
Define aTemplate
that can be used to build Emails.- Since:
- 5.4
- See Also:
MessageTemplate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.charset.Charset
getCharSet()
InternetAddress
getFrom()
java.lang.String
getSubject()
java.lang.String
getText()
void
setCharSet(java.nio.charset.Charset charSet)
void
setFrom(InternetAddress from)
void
setSubject(java.lang.String subject)
void
setText(java.lang.String text)
-
Methods inherited from interface com.day.cq.mailer.MessageTemplate
buildMessage, dispose, getType, put
-
-
-
-
Method Detail
-
setText
void setText(java.lang.String text)
- Parameters:
text
- to set as body of this message
-
getText
java.lang.String getText()
- Returns:
- message body set on template
-
setSubject
void setSubject(java.lang.String subject)
- Parameters:
subject
- to be used for the email
-
getSubject
java.lang.String getSubject()
- Returns:
- the subject set to this template
-
setFrom
void setFrom(InternetAddress from) throws AddressException
- 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
void setCharSet(java.nio.charset.Charset charSet)
- Parameters:
charSet
- to use for sending
-
getCharSet
java.nio.charset.Charset getCharSet()
- Returns:
- charSet set
-
-