Klasse SmtpClient

java.lang.Object
org.xbib.interlibrary.smtp.SmtpClient

public class SmtpClient extends Object
  • Methodendetails

    • newInstance

      public static SmtpClient newInstance()
    • newInstance

      public static SmtpClient newInstance(URI uri)
    • newInstance

      public static SmtpClient newInstance(URI uri, String username, String password)
    • getURI

      public URI getURI()
    • setDebug

      public void setDebug(boolean debug)
    • sendMail

      public void sendMail(Map<String,Object> map) throws javax.mail.MessagingException, UnsupportedEncodingException
      Löst aus:
      javax.mail.MessagingException
      UnsupportedEncodingException
    • sendMail

      public void sendMail(String sender, String from, String personal, String allRecipients, String allCC, String allBCC, String subject, String body) throws javax.mail.MessagingException, UnsupportedEncodingException
      Löst aus:
      javax.mail.MessagingException
      UnsupportedEncodingException
    • createStrictAddress

      public List<javax.mail.Address> createStrictAddress(List<String> list) throws javax.mail.internet.AddressException
      Löst aus:
      javax.mail.internet.AddressException
    • createStrictAddress

      public javax.mail.Address createStrictAddress(String string) throws javax.mail.internet.AddressException
      Löst aus:
      javax.mail.internet.AddressException
    • createAddress

      public javax.mail.Address createAddress(String string) throws javax.mail.internet.AddressException
      Löst aus:
      javax.mail.internet.AddressException
    • createAddress

      public javax.mail.Address createAddress(String address, String personal) throws UnsupportedEncodingException, javax.mail.internet.AddressException
      Löst aus:
      UnsupportedEncodingException
      javax.mail.internet.AddressException
    • createTextPart

      public javax.mail.internet.MimeBodyPart createTextPart(String text) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • createTextPart

      public javax.mail.internet.MimeBodyPart createTextPart(String disposition, String fileName, String text) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • createBinaryPart

      public javax.mail.internet.MimeBodyPart createBinaryPart(String contentType, String disposition, String fileName, byte[] bytes) throws javax.mail.MessagingException, IOException
      Löst aus:
      javax.mail.MessagingException
      IOException
    • send

      public boolean send(String subject, javax.mail.Address from, javax.mail.Address replyTo, javax.mail.Address to, javax.mail.Address cc, List<javax.mail.Address> bcc, List<javax.mail.internet.MimeBodyPart> mimeBodyparts) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException
    • send

      public boolean send(String subject, javax.mail.Address from, List<javax.mail.Address> replyTo, List<javax.mail.Address> to, List<javax.mail.Address> cc, List<javax.mail.Address> bcc, List<javax.mail.internet.MimeBodyPart> mimeBodyparts) throws javax.mail.MessagingException
      Löst aus:
      javax.mail.MessagingException