Class MSGraphMailContext

  • All Implemented Interfaces:
    IMailContext

    public class MSGraphMailContext
    extends DefaultMailContext
    implements IMailContext
    Mail context for sending MIME mails via the ms graph api
    Author:
    XIMA MEDIA GmbH, Dresden
    • Method Detail

      • buildMessage

        protected String buildMessage​(javax.mail.internet.MimeMessage msg)
                               throws javax.mail.MessagingException
        Throws:
        javax.mail.MessagingException
      • send

        protected void send​(com.microsoft.graph.requests.GraphServiceClient<okhttp3.Request> graphClient,
                            javax.mail.internet.MimeMessage msg,
                            IBaseMailData mail)
                     throws com.microsoft.graph.core.ClientException,
                            javax.mail.MessagingException
        Throws:
        com.microsoft.graph.core.ClientException
        javax.mail.MessagingException
      • buildAuthenticationProvider

        protected com.microsoft.graph.authentication.IAuthenticationProvider buildAuthenticationProvider()
      • searchUser

        protected com.microsoft.graph.models.User searchUser​(com.microsoft.graph.requests.GraphServiceClient<okhttp3.Request> graphClient,
                                                             IBaseMailData mail)