#1 2007-06-13 10:29:07

szoubir
Member
Registered: 2007-03-19
Posts: 36

tSendMail with Variables

Hi

I want to manage the errors in my job. If the execution generate an error, a mail is sent to the manager. To do this, I use the component tSendMail. In the job I need 2 tSendMail.

I would like to insert the content of a variable in the mail but I don't know how to create an variable and insert it in the mail. I try to use "Var" in the tMap but I don't succeed.

How can I do it?

I'm using TOS 2.1 M1 with a java project

Thanks a lot

Last edited by szoubir (2007-06-13 10:30:31)

Offline

#2 2007-06-13 11:43:30

mhirt
Talend team
Registered: 2006-09-19
Posts: 1639

Re: tSendMail with Variables

Hello

You can use either tJava or tJavaFlex

in begin part :

Code:

int myVariable = 0;

Last edited by mhirt (2007-06-13 11:44:47)

Offline

#3 2007-06-14 15:18:39

szoubir
Member
Registered: 2007-03-19
Posts: 36

Re: tSendMail with Variables

Hi

Thanks for your answer
How can I get myVariable in tSendMail?

Offline

#4 2007-06-15 10:45:51

mhirt
Talend team
Registered: 2006-09-19
Posts: 1639

Re: tSendMail with Variables

For example : tSendMail Message :

Code:

"Hello" +myVariable

Uploaded Images

Offline

#5 2007-06-15 14:30:21

szoubir
Member
Registered: 2007-03-19
Posts: 36

Re: tSendMail with Variables

Hi

it isn't tJavaFlex --> tSendMail ? I try your example but I not succeed...

For example, a part of my job is     tOracleInput --> tMap --> tOracleOutput --(on error)--> tSendMail

How can I use a field of tOracleOutput in the tSendMail ?

Thanks

Offline

#6 2007-06-15 14:42:00

szoubir
Member
Registered: 2007-03-19
Posts: 36

Re: tSendMail with Variables

Excuse me
I succeed your job (i told you no because an error message was near the component)

Offline

#7 2010-04-20 19:21:55

salgoud
New member
Registered: 2010-04-19
Posts: 1

Re: tSendMail with Variables

I need to include the remote host and local file path in the tSendmail.  How do I retrieve these variables and insert them in the mail?

Offline

#8 2010-04-21 04:41:59

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: tSendMail with Variables

Hello

I need to include the remote host and local file path in the tSendmail.  How do I retrieve these variables and insert them in the mail?

Just write them in message filed directly.

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

Board footer

Powered by FluxBB