ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject Failed to send email when ',' after last line
Date Tue, 14 Dec 2004 07:38:38 GMT

Hi,

i read a txtfile into a property =

<loadfile srcFile="T:\test\mailtest.txt" property = "infomail.tolist"/>

 and use this with tolist :

<mail from = "${user.name}"
  tolist   = "${infomail.tolist}"
  subject  = "test test test"
  messagefile = "T:\IT13RG\infomail.txt"
  mailhost    = "VEX00001"
  failonerror = "false"/>

format txtfile =

IT269
Avg-projectA-Developer
Avg-ITxy-SCM-CS

Avg-projectA-Tester
          
IT025
IT296

Avg-MODULA-Tester
Avg-MODULA-Developer 
          
But i got a Failed to send email, so i put a ',' after each line and
it worked.

The problem is, that several lines are only appended if several conditions
are true, so i have always to put a comma after f.e.

<if>
        <contains string="${infomail.lum}" substring="TS"/>
        <then>
          <echo file = "T:\test/infomail_tolist.txt" append="true">
Avg-MODULA-Tester,
Avg-MODULA-Developer, 
          </echo>

So there appears a ',' after the last line in infomail.txt and
sent mail fails again.

Any ideas ?!

Gilbert


 

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


Mime
View raw message