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
NameDescription
sessionSession
urlNameURLName

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

protocolConnect(String host, int port, String user, String password)

protected boolean protocolConnect(String host, int port, String user, String password)
Parameters
NameDescription
hostString
portint
userString
passwordString
Returns
TypeDescription
boolean
Overrides

sendMessage(Message message, Address[] addresses)

public void sendMessage(Message message, Address[] addresses)
Parameters
NameDescription
messageMessage
addressesjavax.mail.Address[]
Overrides
Exceptions
TypeDescription
MessagingException