This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem while sending mime mail
 
Similar Threads
Sending Mail from Ant
Build Problem
ant + scp
MessagingException with Ant mail task
Cruise control giving wrong status in email.