Package com.avoka.tm.svc
Class UserEmailer
java.lang.Object
com.avoka.tm.svc.UserEmailer
Provides a User Email service.
Examples
Please find the user email service examples about sending below.
Send Email
This example shows how to send an email message for lost password. Note the underling implementation generates new random password.
 import com.avoka.tm.svc.UserEmailer
 new UserEmailer()
    .setLoginName("john.doe")
    .setSpaceName("maguire")
    .setType(UserEmailer.EmailType.LOST_PASSWORD)
    .sendEmail()  
 This example shows how to send an email message for new user verification.
 import com.avoka.tm.svc.UserEmailer
 new UserEmailer()
    .setLoginName("john.doe")
    .setSpaceName("maguire")
    .setType(UserEmailer.EmailType.VERIFICATION)
    .sendEmail()  
 This example shows how to send an email message for welcome. Note the underling implementation generates new random password.
 import com.avoka.tm.svc.UserEmailer
 new UserEmailer()
    .setLoginName("john.doe")
    .setSpaceName("maguire")
    .setType(UserEmailer.EmailType.WELCOME)
    .sendEmail()  - Since:
- 19.11.0
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidSend email.setLoginName(String loginName) Set the user login name emailer parameter.setSpaceName(String spaceName) Set the space name emailer parameter.setType(UserEmailer.EmailType type) Set the email type emailer parameter.
- 
Constructor Details- 
UserEmailerpublic UserEmailer()
 
- 
- 
Method Details- 
setLoginNameSet the user login name emailer parameter.- Parameters:
- loginName- the user login name emailer parameter (required)
- Returns:
- the user email service
 
- 
setSpaceNameSet the space name emailer parameter.- Parameters:
- spaceName- the space name emailer parameter (required)
- Returns:
- the user email service
 
- 
setTypeSet the email type emailer parameter.- Parameters:
- type- the email type emailer parameter (required)
- Returns:
- the user email service
 
- 
sendEmailpublic void sendEmail()Send email.
 
-