Class GMTransport (5.0.3)
Stay organized with collections
Save and categorize content based on your preferences.
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)
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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)
Overrides
sendMessage(Message message, Address[] addresses)
public void sendMessage(Message message, Address[] addresses)
| Parameters |
| Name |
Description |
message |
Message
|
addresses |
javax.mail.Address[]
|
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-03 UTC.
[null,null,["Last updated 2026-06-03 UTC."],[],[]]