Package org.bgerp.util.mail
Class MailMsg
java.lang.Object
org.bgerp.util.mail.MailMsg
- Direct Known Subclasses:
 MailMsg
Email sender
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetParamMailEncoding(ConfigMap config) voidSends simple text message.static voidsetAttachFileName(jakarta.mail.internet.MimeBodyPart part, String filename) Set 'Content-Disposition' header with name for an attached filewithAttachments(List<FileData> value) Adds message attachment files 
- 
Constructor Details
- 
MailMsg
 
 - 
 - 
Method Details
- 
getParamMailEncoding
 - 
setAttachFileName
public static void setAttachFileName(jakarta.mail.internet.MimeBodyPart part, String filename) throws jakarta.mail.MessagingException Set 'Content-Disposition' header with name for an attached file- Parameters:
 part- email part, containing the attachmentfilename- the file's name- Throws:
 jakarta.mail.MessagingException
 - 
withAttachments
Adds message attachment files- Parameters:
 value- the attachments- Returns:
 
 - 
send
public void send(String recipients, String subject, String txt) throws jakarta.mail.MessagingException Sends simple text message.- Parameters:
 recipients- comma separated addresses.subject- subject.txt- body text.- Throws:
 jakarta.mail.MessagingException
 
 -