• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » insert html code in the message of the tSendMail component

#1 2008-08-07 09:35:52

crosslog
New member
Registered: 2008-03-27
Posts: 8

insert html code in the message of the tSendMail component

Good morning,

I would like to insert html code in the field 'message' of a tSendMail component. How can I do?

thank you in advance

Offline

#2 2008-08-08 10:23:10

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

Re: insert html code in the message of the tSendMail component

Hello

I would like to insert html code in the field 'message' of a tSendMail component. How can I do?

It is impossible to type in the message with html code format. You can type it in a file and send it as a attachment file.

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

#3 2011-11-17 08:09:49

brevisIunius
Member
Registered: 2011-11-17
Posts: 12

Re: insert html code in the message of the tSendMail component

Hi Shong,

Is writing HTML code in message field of tsendMail not possible even in TIS version 4.1?

Thanks,

Brevis

Offline

#4 2011-11-17 08:20:49

Or3l
Member
Registered: 2009-07-02
Posts: 216

Re: insert html code in the message of the tSendMail component

Hi,
In advanced parameterof tsendMail  you can choose html. Then I suggest you to create un context.body variable and use a tjava to put your HTML message in there. Then in your tSendMail component message put your context.body. This is how I do and it works.

Offline

#5 2011-11-17 08:22:16

Or3l
Member
Registered: 2009-07-02
Posts: 216

Re: insert html code in the message of the tSendMail component

But if your message doesn't contain any "dynamic" variable you can just put the html code in the message field.

Offline

#6 2011-11-17 08:26:16

brevisIunius
Member
Registered: 2011-11-17
Posts: 12

Re: insert html code in the message of the tSendMail component

Thank you Or3l for that quickest reply! My plan is that the whole message is an html string from the global map, is that possible too?
Like this: (String)globalMap.get("MESSAGE")

Where MESSAGE has value for example: "<html><body><h3>Test</h3></body></html>"

Thanks!
Kurt

Offline

#7 2011-11-17 10:35:21

Or3l
Member
Registered: 2009-07-02
Posts: 216

Re: insert html code in the message of the tSendMail component

Sry for responding so late. Yes you can use it like this ^^

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » insert html code in the message of the tSendMail component

Board footer

Powered by FluxBB