sending emails from ANT

Hi All,

This is perhaps the most hottest feature of ANT to send emails from build script. By this task we can achieve email notifications about build creation, Send code metrics, code reviews reports etc.

Note you need to configure SMTP port, before using that.

<mail mailhost=”smtp.myisp.com” mailport=”1025″ subject=”Test build”>
<from address=”config@myisp.com”/>
<replyto address=”me@myisp.com”/>
<to address=”all@xyz.com”/>
The ${buildname} nightly build has completed
<attachments>
<fileset dir=”dist”>
<include name=”**/*.zip”/>
</fileset>
</attachments>
</mail>


Thanks
R Vashi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s