public class POP3SMTPProcessor extends EmailProcessor
allowedExtensions, dirToSaveAttachment, domain, email, emailCountToFetch, graphClientId, graphTenantId, lastAccessErrorEmailSendingTime, logger, MAIL_SENDER_SEPARATOR, password, processType, purposeOfUse, REPEAT_EMAIL_GAP_FOR_ACCESS_ERROR, url, username| Constructor and Description |
|---|
POP3SMTPProcessor(int emailCountToFetch,
String filePath,
List<String> allowedExtensions,
String purposeOfUse,
String authMail,
String password) |
POP3SMTPProcessor(String purposeOfUse) |
| Modifier and Type | Method and Description |
|---|---|
javax.mail.internet.InternetAddress[] |
getInternetAddressList(String mailAddresses) |
static MailReadResponse |
getMailListForTest(MailServerInformationDTO mailServerDTO,
int inboxType) |
MailReadResponse |
getUnreadTopCountMails() |
MailSendResponse |
sendMail(systemalert.SystemAlertHistoryDTO alertHistoryDTO) |
static MailSendResponse |
sendTestMail(MailServerInformationDTO mailServerDTO,
String toAddress,
String subject,
String content)
Static method to send a test email.
|
void |
updateReadStatus(Object messageID) |
getEmailDtoCustom, setDirToSaveAttachmentpublic POP3SMTPProcessor(String purposeOfUse)
public MailReadResponse getUnreadTopCountMails()
getUnreadTopCountMails in class EmailProcessorpublic static MailReadResponse getMailListForTest(MailServerInformationDTO mailServerDTO, int inboxType)
public void updateReadStatus(Object messageID)
updateReadStatus in class EmailProcessorpublic MailSendResponse sendMail(systemalert.SystemAlertHistoryDTO alertHistoryDTO)
sendMail in class EmailProcessorpublic static MailSendResponse sendTestMail(MailServerInformationDTO mailServerDTO, String toAddress, String subject, String content)
mailServerDTO - Mail server configurationtoAddress - Recipient email addresssubject - Email subjectcontent - Email content (HTML)public javax.mail.internet.InternetAddress[] getInternetAddressList(String mailAddresses) throws javax.mail.internet.AddressException
javax.mail.internet.AddressExceptionCopyright © 2026. All rights reserved.