• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant mail task - MS Exchange Server

 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, is there any way I can use ant's mail task so it sends mail through a Microsoft Exchange server? Or is there an alternative to sending mail from an ant script that will allow me to connect to an Exchange server?

Thanks,
Jeff
 
Paul Clapham
Sheriff
Pie
Posts: 20750
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Ant has a mail task then it should be possible to use it to send mail via any SMTP server. Exchange is an SMTP server.
 
Steven Deal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<target name="email">
<mail mailhost="mail.server" charset="UTF-8" user="you" password="pass"
subject="News for ${TODAY}"
tolist="${email.list}" cclist="${cc.list}">
<from address="you@yourco.com"/>
<message>Hello.</message>
<fileset dir="${basedir}">
<include name="Todays_Report.xls"/>
</fileset>
</mail>
</target>
There are a few required libraries, just see the mail task.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic