I have following ant mail task -
See this answer to a similar question for a solution of library dependencies in ant.
In short, put all your ant addon libs, e.g. mail.jar,activation.jar, commons in a special folder and make it available for all your ant scripts via ANT_ARGS.
Being forced to use the exec task in ant to resolve a library dependency seems VERY strange.
In Eclipse common practice is to create a module in your repository (cvs,subversion,git). Then every team member has that module in his workspace and simply uses
Window > Preferences > Ant > Runtime > Global Entries
to make those dependencies available for ant.