public class Mailer2
extends java.lang.Object
Constructor and Description |
---|
Mailer2(java.util.Properties props,
java.lang.String password) |
Mailer2(java.lang.String server,
int port,
java.lang.String user,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
void |
addBodyPart(javax.mail.BodyPart part) |
void |
addRecipients(javax.mail.Message.RecipientType recipientType,
javax.mail.Address[] addresses) |
void |
sendMail(java.lang.String subject,
java.lang.String content) |
void |
setSender(java.lang.String emailAddress,
java.lang.String realName) |
public Mailer2(java.lang.String server, int port, java.lang.String user, java.lang.String password)
public Mailer2(java.util.Properties props, java.lang.String password)
public void setSender(java.lang.String emailAddress, java.lang.String realName) throws javax.mail.MessagingException, java.io.UnsupportedEncodingException
javax.mail.MessagingException
java.io.UnsupportedEncodingException
public void addRecipients(javax.mail.Message.RecipientType recipientType, javax.mail.Address[] addresses) throws XPathException
XPathException
public void addBodyPart(javax.mail.BodyPart part) throws XPathException
XPathException
public void sendMail(java.lang.String subject, java.lang.String content) throws javax.mail.MessagingException
javax.mail.MessagingException
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.