Class GMTransport (2.0.0)

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.

Inheritance

Object > javax.mail.Service > Transport > GMTransport

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
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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
Overrides

sendMessage(Message message, Address[] addresses)

public void sendMessage(Message message, Address[] addresses)
Parameters
Name Description
message Message
addresses javax.mail.Address[]
Overrides
Exceptions
Type Description
MessagingException