You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Chun Ji <CJ...@pro-unlimited.com> on 2007/02/15 22:52:34 UTC

RE: Sending email with an attachment

I have find out why, 
"
 DEPRECATED - The mimemail task is deprecated. Use the mail task instead.
"

And here is my new target. 
"
   <target name="email">
      <mail from="cji@pro-unlimited.com" tolist="cji_work@yahoo.com" subject="Report" messagemimetype="text/html" messagefile="Report.html"/>
   </target>
"

CJ 

-----Original Message-----
From: Chun Ji [mailto:CJi@pro-unlimited.com]
Sent: Thursday, February 15, 2007 10:19 AM
To: Ant Users List
Subject: Sending email with an attachment
Importance: Low


Here is a target in my build.xml file, that is to send email with an attachment file. It works very well, when I was using ant 1.6.5. But once I have updated to ant 1.7, that part does not working any more. Does someone know why? 
"
   <target name="email">
     <mimemail messageMimeType="text/html" messageFile="Report.html"  tolist="cji_work@yahoo.com" subject="..." from="cji@pro-unlimited.com"/>
   </target>
" 

And here is the error messsage: 
"
send_email:
 [mimemail] DEPRECATED - The mimemail task is deprecated. Use the mail task instead.
 [mimemail] Failed to initialise MIME mail: javax/mail/MessagingException
"

thanks, 


Chun 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Sending email with an attachment

Posted by "Jack J. Woehr" <jw...@absolute-performance.com>.
On Feb 15, 2007, at 2:52 PM, Chun Ji wrote:

>
> I have find out why,
> "
>  DEPRECATED - The mimemail task is deprecated. Use the mail task  
> instead.
> "
>
> And here is my new target.
> "
>    <target name="email">
>       <mail from="cji@pro-unlimited.com"  
> tolist="cji_work@yahoo.com" subject="Report" messagemimetype="text/ 
> html" messagefile="Report.html"/>
>    </target>
> "

Very good.

-- 
Jack J. Woehr
Director of Development
Absolute Performance, Inc.
jwoehr@absolute-performance.com
303-443-7000 ext. 527