email - Adding "cc" to mail task in ANT -


this regarding regarding "sending e-mail" task in ant. want add "cc" in send-mail target.

when addded "cc" e-mail, giving me exception "mail doesn't support nested "cclist" element". can please let me know issue is.

below ant target sending e-mail.

<target description="generates , send junit test reports" name="send-report">   <mail mailhost="smtp.gmail.com" mailport="25" password="testing" ssl="true" subject="junit test reports timescity" user="testing@gmail.com">      <from address="teseting@gmail.com"></from>      <replyto address="testing@gmail.com"></replyto>      <to address="abc@gmail.com"></to>      <cclist address="xyz@gmail.com"></cclist>      <message>testing sending email</message>      <attachments>        <fileset dir="e:\mail\cucumber\target\cucumber-junit-report">           <include name="**/*.zip"></include>       </fileset>      </attachments>   </mail> </target> 

the mail task takes either single cclist="..." attribute or 1 or more <cc> elements, need

<cc address="xyz@gmail.com"></cc> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -