public class MailService
extends java.lang.Object
Constructor and Description |
---|
MailService() |
Modifier and Type | Method and Description |
---|---|
static void |
sendMail(java.lang.String smtpHost,
java.lang.String smtpUsername,
java.lang.String smtpPassword,
java.lang.String recipients,
java.lang.String subject,
java.lang.String message,
java.lang.String from) |
static javax.mail.Address[] |
toAddresses(java.lang.String recipients) |
public static void sendMail(java.lang.String smtpHost, java.lang.String smtpUsername, java.lang.String smtpPassword, java.lang.String recipients, java.lang.String subject, java.lang.String message, java.lang.String from) throws java.lang.Exception
java.lang.Exception
public static javax.mail.Address[] toAddresses(java.lang.String recipients) throws javax.mail.internet.AddressException
javax.mail.internet.AddressException