uk.ac.ebi.adfconverter.common.tools.net.mail
Class ADFConverterSendMail
java.lang.Object
uk.ac.ebi.adfconverter.common.tools.net.mail.ADFConverterSendMail
- public class ADFConverterSendMail
- extends java.lang.Object
Class to send e-mail.
(for exception to the MGED ontology list to submit new term
Allows authentication
- Since:
- 10 janv. 2005
ADF MAGE-TOOL - MicroArray Informatics Team / European
Bioinformatics Institute (EBI)
ArrayExpress License:
==============================================================================
Copyright (c) 2002 The European Bioinformatics Institute. All rights
reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. The name ArrayExpress must not be used to endorse or promote products
derived from this software without prior written permission. For written
permission, please contact arrayexpress@ebi.ac.uk
4. Products derived from this software may not be called "ArrayExpress" nor
may "ArrayExpress" appear in their names without prior written permission of
the ArrayExpress developers.
5. Redistributions of any form whatsoever must retain the following
acknowledgment: "This product includes software developed by ArrayExpress
(http://www.ebi.ac.uk/arrayexpress)"
THIS SOFTWARE IS PROVIDED BY THE ARRAYEXPRESS GROUP ``AS IS'' AND ANY
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE ARRAYEXPRESS GROUP OR ITS CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
The European Bioinformatics Institute may publish revised and/or new versions
of this license with new releases of ArrayExpress software.
==============================================================================
- Version:
- 1
- Author:
- Pierre MARGUERITE
|
Constructor Summary |
ADFConverterSendMail(java.lang.String smtpServerAddress)
Constructor of the ADFConverterSendMail class.
|
ADFConverterSendMail(java.lang.String smtpServerAddress,
java.lang.String smtpUser,
java.lang.String smtpPassword)
Constructor of the ADFConverterSendMail class.
|
|
Method Summary |
void |
postMail(java.lang.String[] recipients,
java.lang.String subject,
java.lang.String message,
java.lang.String from)
Sends an email to a list of recipients. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADFConverterSendMail
public ADFConverterSendMail(java.lang.String smtpServerAddress)
- Constructor of the ADFConverterSendMail class.
Sets the smtp server. (output mail server)
- Parameters:
smtpServerAddress - the smtp server host name or IP adress.
ADFConverterSendMail
public ADFConverterSendMail(java.lang.String smtpServerAddress,
java.lang.String smtpUser,
java.lang.String smtpPassword)
- Constructor of the ADFConverterSendMail class.
Sets the smtp server host. (output mail server)
If no user name is provided, it is considered that no authentication is needed
- Parameters:
smtpServerAddress - the smtp server host name or IP adress.smtpUser - smtp user, if needed. Can be null
postMail
public void postMail(java.lang.String[] recipients,
java.lang.String subject,
java.lang.String message,
java.lang.String from)
throws MessagingException
- Sends an email to a list of recipients.
- Parameters:
recipients - list email address to send tosubject - the email subjectmessage - the message to sendfrom - email address of the sender
- Throws:
MessagingException - if an error occurs during sending
European Bioinformatics InstituteMicroarray Informatics Team