org.eclipse.higgins.rpps.core.utils
Class EmailUtils

java.lang.Object
  extended by org.eclipse.higgins.rpps.core.utils.EmailUtils

public class EmailUtils
extends Object

Author:
Alexander Yuhimenko

Constructor Summary
EmailUtils()
           
 
Method Summary
static String getString(String key)
           
 void sendOTPEmail(String emailAddres, String messageBody)
           
 void sendPasswordResetCode(String emailAddres, String code)
          Send password reset code.
 void sendPasswordUpdatedEmail(String emailAddres)
          Send confirmation for password update.
 void sendWelcomeEmail(String emailAddres, String username)
          Send azigo welcome email.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailUtils

public EmailUtils()
Method Detail

getString

public static String getString(String key)

sendPasswordResetCode

public void sendPasswordResetCode(String emailAddres,
                                  String code)
                           throws UnsupportedEncodingException,
                                  javax.mail.MessagingException
Send password reset code.

Parameters:
emailAddres -
code -
Throws:
UnsupportedEncodingException
javax.mail.MessagingException

sendPasswordUpdatedEmail

public void sendPasswordUpdatedEmail(String emailAddres)
                              throws UnsupportedEncodingException,
                                     javax.mail.MessagingException
Send confirmation for password update.

Parameters:
emailAddres -
code -
Throws:
UnsupportedEncodingException
javax.mail.MessagingException

sendWelcomeEmail

public void sendWelcomeEmail(String emailAddres,
                             String username)
                      throws UnsupportedEncodingException,
                             javax.mail.MessagingException
Send azigo welcome email.

Parameters:
emailAddres -
username -
Throws:
UnsupportedEncodingException
javax.mail.MessagingException

sendOTPEmail

public void sendOTPEmail(String emailAddres,
                         String messageBody)
                  throws UnsupportedEncodingException,
                         javax.mail.MessagingException
Throws:
UnsupportedEncodingException
javax.mail.MessagingException