You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Shikha.Somani" <sh...@yahoo.co.in> on 2008/06/16 09:57:48 UTC

Sending mail through maven2 using ant.

I need to send mail containing attachments through maven2. There is no plugin
available so I made an ant plugin to send mails.

The build script could send mails containing attachments but using the same
build as plugin in maven could not send attachments. There is certaing
exception because of which the attachments could not be send.

Exception: [mail] Failed to initialise MIME mail:
org.apache.tools.ant.taskdefs.email.MimeMailer

Any help will be appreciated 

Thanks.

-- 
View this message in context: http://www.nabble.com/Sending-mail-through-maven2-using-ant.-tp17859708p17859708.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Sending mail through maven2 using ant.

Posted by "Shikha.Somani" <sh...@yahoo.co.in>.
I am able to send mails by calling a goal of ant script. The problem arises
when I send attachments in the mail. What can I do to send mails containing
attachments using ant task.


Wayne Fay wrote:
> 
> The basic Ant dependency does not include optional features like sending
> email.
> 
> This is discussed (and answer given to solve it) in the following JIRA:
> http://jira.codehaus.org/browse/MANTRUN-53
> 
> Wayne
> 
> On 6/16/08, Shikha.Somani <sh...@yahoo.co.in> wrote:
>>
>> I need to send mail containing attachments through maven2. There is no
>> plugin
>> available so I made an ant plugin to send mails.
>>
>> The build script could send mails containing attachments but using the
>> same
>> build as plugin in maven could not send attachments. There is certaing
>> exception because of which the attachments could not be send.
>>
>> Exception: [mail] Failed to initialise MIME mail:
>> org.apache.tools.ant.taskdefs.email.MimeMailer
>>
>> Any help will be appreciated
>>
>> Thanks.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Sending-mail-through-maven2-using-ant.-tp17859708p17859708.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Sending-mail-through-maven2-using-ant.-tp17859708p17878128.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Sending mail through maven2 using ant.

Posted by Wayne Fay <wa...@gmail.com>.
The basic Ant dependency does not include optional features like sending email.

This is discussed (and answer given to solve it) in the following JIRA:
http://jira.codehaus.org/browse/MANTRUN-53

Wayne

On 6/16/08, Shikha.Somani <sh...@yahoo.co.in> wrote:
>
> I need to send mail containing attachments through maven2. There is no plugin
> available so I made an ant plugin to send mails.
>
> The build script could send mails containing attachments but using the same
> build as plugin in maven could not send attachments. There is certaing
> exception because of which the attachments could not be send.
>
> Exception: [mail] Failed to initialise MIME mail:
> org.apache.tools.ant.taskdefs.email.MimeMailer
>
> Any help will be appreciated
>
> Thanks.
>
> --
> View this message in context: http://www.nabble.com/Sending-mail-through-maven2-using-ant.-tp17859708p17859708.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org