You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ajit Dusane <Aj...@kpitcummins.com> on 2009/07/23 15:52:37 UTC
Problem while sending Mail through ANT
Hi,
I want to send one file as an attachment while sending mail through ANT.
But I am getting one error while sending mail. Could you please tell me the way it can be resolved???
I am using Ant version 1.7.1
Error:
Email:
[mail] Failed to initialise MIME mail: javax/mail/MessagingException
Thanks & Regards,
Ajit S Dusane
KPIT Cummins | Board: +91-20-66525000 | Mobile: +91-97-667-53-000 | Fax: +91-20-56525001 New Email: ajit.dusane@kpitcummins.com | www.kpitcummins.com<blocked::http://www.kpitcummins.com/>
This message contains information that may be privileged or confidential and is the property of KPIT Cummins. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Cummins does not accept any liability for virus infected mails
Re: Problem while sending Mail through ANT
Posted by Gilbert Rebhan <an...@schillbaer.de>.
Ajit Dusane schrieb:
> Hi,
>
> I want to send one file as an attachment while sending mail through ANT.
> But I am getting one error while sending mail. Could you please tell me the way it can be resolved???
>
> I am using Ant version 1.7.1
>
> Error:
> Email:
> [mail] Failed to initialise MIME mail: javax/mail/MessagingException
>
see =
http://ant.apache.org/manual/install.html#librarydependencies
and then go to =
http://java.sun.com/products/javamail/downloads/index.html
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Problem while sending Mail through ANT
Posted by David Weintraub <qa...@gmail.com>.
If you don't use MIME encoding, you don't need any additional jars for mail.
However, if you use MIME encoding, you need the following jars:
mail.jar Mail task with Mime encoding, and the MimeMail task
http://java.sun.com/products/javamail/ jsse.jar Support for SMTP over
TLS/SSL
in the Mail task
Already included Java 1.4+ http://java.sun.com/products/jsse/
activation.jar Mail task with Mime encoding, and the MimeMail task
http://java.sun.com/products/javabeans/glasgow/jaf.html
If you are trying to mail out the results of your build, you should take a
look at a good continuous build system that handles this task for you. Take
a look at Hudson: https://hudson.dev.java.net/
--
David Weintraub
qazwart@gmail.com