public class GMTransport extends Transport
Implementation of the 'Google Message Transport' which really just connects to the exposed MailService and uses it to deliver a message.
The special destination address "admins" results in a delivery of the message to the owners of the application.
Note that most RFC822 headers are silently ignored.
Constructors
GMTransport(Session session, URLName urlName)
public GMTransport(Session session, URLName urlName)
Parameters | |
---|---|
Name | Description |
session |
Session |
urlName |
URLName |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
protocolConnect(String host, int port, String user, String password)
protected boolean protocolConnect(String host, int port, String user, String password)
Parameters | |
---|---|
Name | Description |
host |
String |
port |
int |
user |
String |
password |
String |
Returns | |
---|---|
Type | Description |
boolean |
sendMessage(Message message, Address[] addresses)
public void sendMessage(Message message, Address[] addresses)
Parameters | |
---|---|
Name | Description |
message |
Message |
addresses |
javax.mail.Address[] |
Exceptions | |
---|---|
Type | Description |
MessagingException |