public class MailSession<T extends MailSession> extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MailSession.MailSessionResources
Child mutators for MailSession
|
| Constructor and Description |
|---|
MailSession(String key) |
| Modifier and Type | Method and Description |
|---|---|
T |
custom(Custom value)
Add the Custom object to the list of subresources
|
T |
customs(List<Custom> value)
Add all Custom objects to this subresource
|
Boolean |
debug()
Enables JavaMail debugging
|
T |
debug(Boolean value)
Enables JavaMail debugging
|
String |
from()
From address that is used as default from, if not set when sending
|
T |
from(String value)
From address that is used as default from, if not set when sending
|
String |
getKey() |
Imap |
imap()
Mail session server
|
T |
imap(Imap value)
Mail session server
|
String |
jndiName()
JNDI name to where mail session should be bound
|
T |
jndiName(String value)
JNDI name to where mail session should be bound
|
Pop3 |
pop3()
Mail session server
|
T |
pop3(Pop3 value)
Mail session server
|
Smtp |
smtp()
Mail session server
|
T |
smtp(Smtp value)
Mail session server
|
MailSession.MailSessionResources |
subresources() |
public MailSession(String key)
public String getKey()
public Boolean debug()
public String from()
public String jndiName()
public MailSession.MailSessionResources subresources()
public T customs(List<Custom> value)
value - List of Custom objects.public T custom(Custom value)
value - The Custom to addpublic Pop3 pop3()
public Smtp smtp()
public Imap imap()
Copyright © 2015 JBoss by Red Hat. All rights reserved.