Package com.group21.jobTracker.mail
Class SendMail
- java.lang.Object
-
- com.group21.jobTracker.mail.SendMail
-
public class SendMail extends Object
This class is used to handle the "Send reminder email" functionality for JobTracker. NEVER push the username/password of the email you have set up to your repo.
-
-
Constructor Summary
Constructors Constructor Description SendMail()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsendEmail(String tEmail)This method uses the javax mail package to send an email using Outlook.
-
-
-
Method Detail
-
sendEmail
public static void sendEmail(String tEmail)
This method uses the javax mail package to send an email using Outlook. In order to use this method, make sure to set up an outlook email and supply the username and password in the "fromEmail" and "password" fields. The email contains a list of the 5 most upcoming deadlines for the user.- Parameters:
tEmail- email to send to
-
-