Class GMTransport

java.lang.Object
javax.mail.Service
javax.mail.Transport
com.google.appengine.api.mail.stdimpl.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

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GMTransport

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

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object