|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.mail.SendMail
Sends e-mails in an easy way.
Constructor Summary | |
SendMail()
|
Method Summary | |
static SmtpServer |
getDefaultSmtpServer()
Returns default SMTP server. |
static void |
send(Email email)
Sends an email through default SMTP server. |
static void |
send(Email email,
SmtpServer smtpServer)
Sends an email through SMTP server. |
static void |
setDefaultSmtpServer(SmtpServer server)
Sets default SMTP server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SendMail()
Method Detail |
public static void setDefaultSmtpServer(SmtpServer server)
server
- default SMTP serverpublic static SmtpServer getDefaultSmtpServer()
public static void send(Email email) throws javax.mail.MessagingException
email
- email
javax.mail.MessagingException
public static void send(Email email, SmtpServer smtpServer) throws javax.mail.MessagingException
email
- emailsmtpServer
- SMTP server or null for default one
javax.mail.MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |