public class Mailer extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
send(String toAddress,
String subject,
String message,
List<File> attachments,
boolean highPriority)
Envoie un mail.
|
public Mailer(String jndiName)
jndiName - Stringpublic void send(String toAddress, String subject, String message, List<File> attachments, boolean highPriority) throws NamingException, MessagingException
toAddress - Adresses mails des destinataires séparées par des virgules.subject - Titre du mailmessage - Corps du mailattachments - Liste de fichiers à attacherhighPriority - Priorité hauteNamingException - eMessagingException - eCopyright © 2008–2024 Emeric Vernat. All rights reserved.