Class VbEmailService
java.lang.Object
it.uniroma2.art.semanticturkey.email.EmailService
it.uniroma2.art.semanticturkey.email.VbEmailService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendEnabledMailToUser
(STUser user) Sends an email to a user to inform that his/her account has been enabledvoid
sendRegistrationMailToAdmin
(STUser user, String vbHostAddress) Sends an email to the system administrator to inform about a new user registration request and requiring to be activatedvoid
sendRegistrationMailToUser
(STUser user, String vbHostAddress, boolean emailVerification) Sends an email to a new registered user.void
sendVerifiedMailToUser
(STUser user) Sends an email to a verified user informing to wait to be enabledMethods inherited from class it.uniroma2.art.semanticturkey.email.EmailService
formatBold, formatItalic, replaceAdminPlaceholders, replaceGenericPlaceholders, replaceUserPlaceholders, sendMailServiceConfigurationTest, sendProjCreationMailToAdmin, sendResetPasswordConfirmedMail, sendResetPasswordRequestedMail
-
Constructor Details
-
VbEmailService
public VbEmailService()
-
-
Method Details
-
sendRegistrationMailToUser
public void sendRegistrationMailToUser(STUser user, String vbHostAddress, boolean emailVerification) throws jakarta.mail.MessagingException, UnsupportedEncodingException, STPropertyAccessException Sends an email to a new registered user. Email asks for email verification if required, otherwise inform the user to wait to be activated by admin- Parameters:
user
-vbHostAddress
-emailVerification
-- Throws:
jakarta.mail.MessagingException
UnsupportedEncodingException
STPropertyAccessException
-
sendVerifiedMailToUser
public void sendVerifiedMailToUser(STUser user) throws jakarta.mail.MessagingException, UnsupportedEncodingException, STPropertyAccessException Sends an email to a verified user informing to wait to be enabled- Parameters:
user
-- Throws:
jakarta.mail.MessagingException
UnsupportedEncodingException
STPropertyAccessException
-
sendRegistrationMailToAdmin
public void sendRegistrationMailToAdmin(STUser user, String vbHostAddress) throws UnsupportedEncodingException, jakarta.mail.MessagingException, STPropertyAccessException, UserException Sends an email to the system administrator to inform about a new user registration request and requiring to be activated- Throws:
jakarta.mail.MessagingException
UnsupportedEncodingException
STPropertyAccessException
UserException
-
sendEnabledMailToUser
public void sendEnabledMailToUser(STUser user) throws jakarta.mail.MessagingException, UnsupportedEncodingException, STPropertyAccessException Sends an email to a user to inform that his/her account has been enabled- Parameters:
user
-- Throws:
jakarta.mail.MessagingException
UnsupportedEncodingException
STPropertyAccessException
-