net.sf.magicproject.mail
Class MailUtils
java.lang.Object
net.sf.magicproject.mail.MailUtils
public final class MailUtils
- extends java.lang.Object
To send a mail.
- Since:
- 0.90
- Author:
- Fabrice Daugan
Method Summary |
static javax.mail.internet.MimeMessage |
sendEmail(java.lang.String userName,
java.lang.String from,
java.lang.String[] to,
java.lang.String message,
java.lang.String contentType,
java.lang.String subject,
java.util.List<java.lang.String> attachments,
Header[] headers,
java.lang.String mailerUser,
java.lang.String hostName)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONTENT_TYPE
public static final java.lang.String DEFAULT_CONTENT_TYPE
- See Also:
- Constant Field Values
sendEmail
public static javax.mail.internet.MimeMessage sendEmail(java.lang.String userName,
java.lang.String from,
java.lang.String[] to,
java.lang.String message,
java.lang.String contentType,
java.lang.String subject,
java.util.List<java.lang.String> attachments,
Header[] headers,
java.lang.String mailerUser,
java.lang.String hostName)
- Parameters:
userName
- from
- to
- message
- contentType
- subject
- attachments
- headers
- mailerUser
- hostName
-
- Returns:
- a MIME message
Copyright © 2003-2007 Magic-Project. All Rights Reserved.