I have following ant mail task -
Unforunately you can't. You have to put Library Dependencies into the ant classpath somehow.
This could be the ANTH_HOME/lib dir or a change to the command line arguments.
Ant has a command-line argument to specify a lib dir:
-lib specifies a path to search for jars and classes
You could also call ant from ant itself with that info, which may be a bit ugly:
If you execute this task from eclipse, you can add the libs to the run definition of the task and share this run definition with other developers.