Class DefaultB2BEmailService

    • Constructor Detail

      • DefaultB2BEmailService

        public DefaultB2BEmailService()
    • Method Detail

      • createOrderApprovalEmail

        public org.apache.commons.mail.HtmlEmail createOrderApprovalEmail​(java.lang.String emailTemplateCode,
                                                                          OrderModel order,
                                                                          B2BCustomerModel user,
                                                                          javax.mail.internet.InternetAddress from,
                                                                          java.lang.String subject)
                                                                   throws org.apache.commons.mail.EmailException
        Description copied from interface: B2BEmailService
        Creates an Approval email to be sent to the B2BCustomer.
        Specified by:
        createOrderApprovalEmail in interface B2BEmailService
        Parameters:
        emailTemplateCode - used to determine the RendererTemplateModel to be used
        order - the order
        user - the user the email will be sent to
        from - the email address of the sender
        subject - the title of the email message
        Returns:
        the html encoded email message
        Throws:
        org.apache.commons.mail.EmailException
      • createOrderRejectionEmail

        public org.apache.commons.mail.HtmlEmail createOrderRejectionEmail​(java.lang.String emailTemplateCode,
                                                                           OrderModel order,
                                                                           B2BCustomerModel user,
                                                                           javax.mail.internet.InternetAddress from,
                                                                           java.lang.String subject)
                                                                    throws org.apache.commons.mail.EmailException
        Description copied from interface: B2BEmailService
        Creates a Rejection email to be sent to the B2BCustomer.
        Specified by:
        createOrderRejectionEmail in interface B2BEmailService
        Parameters:
        emailTemplateCode - used to determine the RendererTemplateModel to be used
        user - the user the email will be sent to
        from - the email address of the sender
        subject - the title of the email message
        Returns:
        the html encoded email message
        Throws:
        org.apache.commons.mail.EmailException
      • sendEmail

        public void sendEmail​(org.apache.commons.mail.HtmlEmail email)
                       throws org.apache.commons.mail.EmailException
        Description copied from interface: B2BEmailService
        Sends the email out to the B2BCustomer
        Specified by:
        sendEmail in interface B2BEmailService
        Parameters:
        email - the html email message to be sent
        Throws:
        org.apache.commons.mail.EmailException
      • setRendererService

        public void setRendererService​(RendererService rendererService)