ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sarancse <saran...@gmail.com>
Subject MailLogger failed to send e-mail!
Date Fri, 15 Feb 2008 11:31:35 GMT

Hi 

Using ANT script mail task, I am able to send mails but fails when build
fails. So I decided to use MailLogger using maillogger.properties file and
the command is

$ant -logger org.apache.tools.ant.listener.MailLogger
-DMailLogger.properties=maillogger.properties

But this time I got the following error

 MailLogger failed to send e-mail!
java.lang.Exception: Missing required parameter: MailLogger.from
        at
org.apache.tools.ant.listener.MailLogger.getValue(MailLogger.java:182)
        at
org.apache.tools.ant.listener.MailLogger.buildFinished(MailLogger.java:130)
        at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2008)
        at org.apache.tools.ant.Main.runBuild(Main.java:718)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Here is my maillogger.properties file 

MailLogger.mailhost = <IP>
MailLogger.port = <PORT>
MailLogger.user = <EMAIL_ID>
MailLogger.password = <SMTP_PASSWORD>
MailLogger.from = <EMAIL_ID>
MailLogger.replyto = <EMAIL_ID>
MailLogger.failure.notify = true
MailLogger.success.notify = true
MailLogger.failure.to = <EMAIL_ID>
MailLogger.success.to = <EMAIL_ID>
MailLogger.failure.subject = Failure
MailLogger.success.subject = Success
MailLogger.properties.file = build.log

Help on this forum highly appriciated.
-- 
View this message in context: http://www.nabble.com/MailLogger-failed-to-send-e-mail%21-tp15499344p15499344.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message