File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Problem while sending mime mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Problem while sending mime mail" Watch "Problem while sending mime mail" New topic
Author

Problem while sending mime mail

Mohan G Kumar
Greenhorn

Joined: Feb 17, 2007
Posts: 5
I am trying to sen mail after success full build in Windows XP work station. It's giving error Problem while sending mime mail if i gave mail Host url in mail tag. If i change to host ip then it is going into undeterminate process after the line "Sending email" .
D:\MAIL>ant -Duser=MohanG
Buildfile: build.xml

all:
[echo] The value of foo is bar
[echo] The User Who is Taking Back Up is MohanG
[echo] os.name: Windows XP
[echo] basdir: D:\MAIL
[echo] ant.file: D:\MAIL\build.xml
[echo] ant.project.name: Backup
[echo] ant.java.version: 1.5
[mail] Sending email: Test build

<mail mailhost="172.17.168.10" mailport="1025" subject="Test build" user=" " password=" ">

ping & telnet tests are working fine.

Can any one help me regarding this.


Mohan G Kumar<br />SCJP(76%), SCWCD(91%), Preparing for SCBCD..
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have you tried enabling verbose output from Ant? If not its worth doing to see what Ant is up to in more detail.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mohan G Kumar
Greenhorn

Joined: Feb 17, 2007
Posts: 5
In command Prompt it is printing like this

[mail] Using MIME mail
[mail] Sending email: Test build
[mail] From mohankumar1.g@tcs.com
[mail] ReplyTo []
[mail] To [mohankumar1.g@tcs.com]
[mail] Cc []
[mail] Bcc []


After this it is hanging some where.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem while sending mime mail
 
Similar Threads
ant + scp
Build Problem
Cruise control giving wrong status in email.
Sending Mail from Ant
MessagingException with Ant mail task