Class EmailComponent
- java.lang.Object
-
- idatt2106.group3.backend.Component.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 mailvoid
sendEditMail(User user, Activity activity)
Used when an activity is edited Sends an edited activity emailvoid
sendSimpleMessage(java.lang.String to, java.lang.String subject, java.lang.String text)
-
-
-
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
-
-
-