Class GMTransport


  • public class GMTransport
    extends javax.mail.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.

    • Constructor Summary

      Constructors 
      Constructor Description
      GMTransport​(javax.mail.Session session, javax.mail.URLName urlName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      int hashCode()  
      void sendMessage​(javax.mail.Message message, javax.mail.Address[] addresses)
      • Methods inherited from class javax.mail.Transport

        addTransportListener, removeTransportListener, send, send
      • Methods inherited from class javax.mail.Service

        addConnectionListener, close, connect, connect, connect, connect, getURLName, isConnected, removeConnectionListener, toString
    • Constructor Detail

      • GMTransport

        public GMTransport​(javax.mail.Session session,
                           javax.mail.URLName urlName)
    • Method Detail

      • sendMessage

        public void sendMessage​(javax.mail.Message message,
                                javax.mail.Address[] addresses)
                         throws javax.mail.MessagingException
        Specified by:
        sendMessage in class javax.mail.Transport
        Throws:
        javax.mail.MessagingException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object