Package edu.pdx.cs410J.grader
Class EmailSender
java.lang.Object
edu.pdx.cs410J.grader.EmailSender
- Direct Known Subclasses:
StudentFileMailer
,Submit
,Survey
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) static final jakarta.mail.internet.InternetAddress
protected static String
The name of the SMTP server that is used to send email(package private) static final jakarta.mail.internet.InternetAddress
The grader's email address -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static jakarta.mail.Session
newEmailSession
(boolean debug) protected static EmailSender.NewEmail
newEmailTo
(jakarta.mail.Session session, jakarta.mail.internet.InternetAddress recipient) protected static jakarta.mail.internet.InternetAddress
newInternetAddress
(String address, String personal) void
setEmailServerPort
(int port)
-
Field Details
-
TA_EMAIL
The grader's email address -
DAVE_EMAIL
-
serverName
The name of the SMTP server that is used to send email
-
-
Constructor Details
-
EmailSender
public EmailSender()
-
-
Method Details
-
newInternetAddress
protected static jakarta.mail.internet.InternetAddress newInternetAddress(String address, String personal) -
newEmailTo
protected static EmailSender.NewEmail newEmailTo(jakarta.mail.Session session, jakarta.mail.internet.InternetAddress recipient) -
newEmailSession
-
setEmailServerPort
-