Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I noticed that we can set email properties such as Host,To, Subject, From..
Can we do it dynamically? I have these values in properties of exchange object.
Generally we can use exchange properties in many components of mediation but how to use them in cMail component?
Thanks in advance!
Hi Richard,
It worked with some play around. Basically talend cMail component does not provide the flexibility to set the values for the parameters available in it's setting (other than context variables).
But as you suggested it should work with headers, I added cSetHeader component before cMail component and it worked like charm.
It looks like, in cMail if there is any header with which has the name same as the argument then header takes precedence over argument (option) in the uri.
Thanks once again!
Hi,
What I noticed is cMail component in talend is not allowing to access headers or properties of exchange.
When I put the context variables it works fine but when I try to put headers/properties, it does not recognize it.
Even there seems no option to use language.
Hi Richard,
It worked with some play around. Basically talend cMail component does not provide the flexibility to set the values for the parameters available in it's setting (other than context variables).
But as you suggested it should work with headers, I added cSetHeader component before cMail component and it worked like charm.
It looks like, in cMail if there is any header with which has the name same as the argument then header takes precedence over argument (option) in the uri.
Thanks once again!
Not actually, I used 'Property' language to set the values in headers as I had the values available in exchange properties.
Can you provide code put in cprocessor and syntax used in cmail ? I'm facing the exact same problem and can't achieve it.
Hi
Can you provide us the names of the headers you set before cMail , per each parameter (from, to, cc ....) ?
Thanks