Send feedback
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.
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
Send feedback
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 2025-10-16 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-16 UTC."],[],[]]