Class MailMsg

java.lang.Object
bitel.billing.server.util.MailMsg

public class MailMsg extends Object
Отправка мыла простого и с мультипартом, использует настройки (smtp итд) из сетапа сервера
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    хелпер для конструирования мультипарта с текстом и любыми вложениями
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.apache.logging.log4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sendMessage(String recipients, String subject, String text)
    Отправляет простое текствое письмо адресату (или нескольким через ,/;/переносы)
    void
    sendMessage(String recipients, String subject, javax.mail.Multipart multipart)
    Отправляет письмо адресату (или нескольким через ,/;/переносы)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected static final org.apache.logging.log4j.Logger log
  • Constructor Details

  • Method Details

    • sendMessage

      public void sendMessage(String recipients, String subject, String text) throws ru.bitel.bgbilling.common.BGException
      Отправляет простое текствое письмо адресату (или нескольким через ,/;/переносы)
      Parameters:
      recipients - адресат(ы)
      subject - тема
      text - сообщение
      Throws:
      ru.bitel.bgbilling.common.BGException
    • sendMessage

      public void sendMessage(String recipients, String subject, javax.mail.Multipart multipart) throws ru.bitel.bgbilling.common.BGException
      Отправляет письмо адресату (или нескольким через ,/;/переносы)
      Parameters:
      recipients - адресат(ы)
      subject - тема
      multipart - тело сообщения
      Throws:
      ru.bitel.bgbilling.common.BGException