Package ch.weetech.alert
Class EmailApp
- java.lang.Object
-
- ch.weetech.alert.EmailApp
-
public class EmailApp extends java.lang.Objecthttps://developers.google.com/apps-script/reference/mail https://www.tutorialspoint.com/java/java_sending_email.htm https://mkyong.com/java/java-how-to-send-email/ https://www.javatpoint.com/example-of-sending-email-using-java-mail-api
-
-
Constructor Summary
Constructors Constructor Description EmailApp()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleansendHtml(EmailAddress from, java.util.List<EmailAddress> recipients, java.util.List<EmailAddress> cc, java.util.List<EmailAddress> bcc, java.lang.String subject, EmailBody msgHtml, java.util.List<EmailAttachment> attachments, SMTP smtp, boolean debug)static booleansendText(EmailAddress from, java.util.List<EmailAddress> recipients, java.util.List<EmailAddress> cc, java.util.List<EmailAddress> bcc, java.lang.String subject, EmailBody body, java.util.List<EmailAttachment> attachments, SMTP smtp, boolean debug)static booleansendTextAndHtml(EmailAddress from, java.util.List<EmailAddress> recipients, java.util.List<EmailAddress> cc, java.util.List<EmailAddress> bcc, java.lang.String subject, EmailBody msgText, EmailBody msgHtml, java.util.List<EmailAttachment> attachments, SMTP smtp, boolean debug)
-
-
-
Method Detail
-
sendText
public static boolean sendText(EmailAddress from, java.util.List<EmailAddress> recipients, java.util.List<EmailAddress> cc, java.util.List<EmailAddress> bcc, java.lang.String subject, EmailBody body, java.util.List<EmailAttachment> attachments, SMTP smtp, boolean debug) throws javax.mail.internet.AddressException, javax.mail.MessagingException, java.io.UnsupportedEncodingException
- Throws:
javax.mail.internet.AddressExceptionjavax.mail.MessagingExceptionjava.io.UnsupportedEncodingException
-
sendHtml
public static boolean sendHtml(EmailAddress from, java.util.List<EmailAddress> recipients, java.util.List<EmailAddress> cc, java.util.List<EmailAddress> bcc, java.lang.String subject, EmailBody msgHtml, java.util.List<EmailAttachment> attachments, SMTP smtp, boolean debug) throws javax.mail.internet.AddressException, javax.mail.MessagingException, java.io.UnsupportedEncodingException
- Throws:
javax.mail.internet.AddressExceptionjavax.mail.MessagingExceptionjava.io.UnsupportedEncodingException
-
sendTextAndHtml
public static boolean sendTextAndHtml(EmailAddress from, java.util.List<EmailAddress> recipients, java.util.List<EmailAddress> cc, java.util.List<EmailAddress> bcc, java.lang.String subject, EmailBody msgText, EmailBody msgHtml, java.util.List<EmailAttachment> attachments, SMTP smtp, boolean debug) throws javax.mail.internet.AddressException, javax.mail.MessagingException, java.io.UnsupportedEncodingException
- Throws:
javax.mail.internet.AddressExceptionjavax.mail.MessagingExceptionjava.io.UnsupportedEncodingException
-
-