public class HTMLMail extends MailviaAPI
Constructor and Description |
---|
HTMLMail(java.lang.String recipient,
java.lang.String smtpHost,
int port,
java.lang.String sender,
java.lang.String subject,
java.lang.String user,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
void |
add(boolean emptyLineBefore,
java.lang.String paragraph)
Adds a paragraph to the mail body.
|
void |
add(java.lang.String paragraph)
Adds a paragraph to the mail body.
|
protected void |
addBody(Message message) |
void |
addEmptyLine()
Adds an empty line to the mail body.
|
void |
addImage(java.io.File image) |
addRecipient, addRecipientBCC, addRecipientCC, send, sendReturnExc, sendReturnExcNew, sendReturnExcOldPort25, setProtocol
public HTMLMail(java.lang.String recipient, java.lang.String smtpHost, int port, java.lang.String sender, java.lang.String subject, java.lang.String user, java.lang.String password)
public void addEmptyLine()
MailviaAPI
addEmptyLine
in class MailviaAPI
public void add(java.lang.String paragraph)
MailviaAPI
add
in class MailviaAPI
paragraph
- the paragraph to be added to the bodypublic void add(boolean emptyLineBefore, java.lang.String paragraph)
MailviaAPI
add
in class MailviaAPI
emptyLineBefore
- whether or not there should be an empty line before the paragraphparagraph
- the paragraph to be added to the bodypublic void addImage(java.io.File image)
protected void addBody(Message message) throws MessagingException
addBody
in class MailviaAPI
MessagingException
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de