Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I try to use the component tSendMail with variables from an external file, but nothing goes right...
So I have
tFileInputProperties_1 ====Main====>tSetGlobalVar_1
||OnSubJobOk
||
tSendMail
In tFileInputProperties_1 :
File format : .properties
file Name: "./emailDetails.properties"
In tSetGlobalVar_1
Key : "row1.key"
Value : "row1.value"
In tSendMail
To : ((String)globalMap.get("To"))
From : ((String)globalMap.get("From"))
I have also try that:
To : ((String)globalMap.get("row2.value"))
From : ((String)globalMap.get("row1.value"))
In emailDetail.properties
From = abc@abc.com
To= sos@sos.net
host=smtp.gmail.com
port= 465
...
What's o the correct method?
Thank's
Burnside.
tFileInputExcel_1 ---Main--- tFlowToIterate_1 ---Iterate--- tFixedFlowInput_1 --- Iterate --- TSendMail_1
tFileInputExcel_1 : The xls file with the values
tFlowToIterate_1 : Key="Mail" and value=Mail
tFixedFlowInput_1 : mode= Use Single Table
values=
|_>Column =>Mail
|_>values =>((String)globalMap.get("Mail"))
TSendMail_2 : Field to : ((String)globalMap.get("Mail"))
tFileInputExcel_1 ---Main--- tFlowToIterate_1 ---Iterate--- tFixedFlowInput_1 --- Iterate --- TSendMail_1
tFileInputExcel_1 : The xls file with the values
tFlowToIterate_1 : Key="Mail" and value=Mail
tFixedFlowInput_1 : mode= Use Single Table
values=
|_>Column =>Mail
|_>values =>((String)globalMap.get("Mail"))
TSendMail_2 : Field to : ((String)globalMap.get("Mail"))