Class EmailComponent


  • @Component
    public class EmailComponent
    extends java.lang.Object
    Component for sending mails
    • Constructor Summary

      Constructors 
      Constructor Description
      EmailComponent()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void sendCancelationMail​(User user, Activity activity)
      Used when a activity gets deleted/canceled Sends all participants a cancellation mail
      void sendEditMail​(User user, Activity activity)
      Used when an activity is edited Sends an edited activity email
      void sendSimpleMessage​(java.lang.String to, java.lang.String subject, java.lang.String text)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmailComponent

        public EmailComponent()
    • Method Detail

      • sendSimpleMessage

        public void sendSimpleMessage​(java.lang.String to,
                                      java.lang.String subject,
                                      java.lang.String text)
      • sendCancelationMail

        public void sendCancelationMail​(User user,
                                        Activity activity)
        Used when a activity gets deleted/canceled Sends all participants a cancellation mail
        Parameters:
        user -
        activity -
      • sendEditMail

        public void sendEditMail​(User user,
                                 Activity activity)
        Used when an activity is edited Sends an edited activity email
        Parameters:
        user -
        activity -