@Service(value=MailSessionFactory.class) public class MailSessionFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MAIL_SMTP_HOST
Service property
|
static String |
MAIL_SMTP_PASSWORD
Service property
|
static String |
MAIL_SMTP_PORT
Service property
|
static String |
MAIL_SMTP_USER
Service property
|
static String |
MAIL_USE_TLS
Service property
|
Constructor and Description |
---|
MailSessionFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext) |
javax.mail.Session |
getSession() |
@Property(value="false", description="Specifies if TLS (SSL) encryption is used.") public static final String MAIL_USE_TLS
@Property(value="localhost", description="Specifies the SMTP host.") public static final String MAIL_SMTP_HOST
@Property(value="25", description="Specifies the SMTP port.") public static final String MAIL_SMTP_PORT
@Property(value="myPassword", description="Specifies the authentication password for SMTP.") public static final String MAIL_SMTP_PASSWORD
@Property(value="myUserName", description="Specifies the User to authenticate for SMTP.") public static final String MAIL_SMTP_USER
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.