on 06-01-2006 3:51 PM
I have an XML file with subject and Content. Is there a way to convert this, so that an email is sent with subject from payload and content in the body of email?
I guess i can use 'XIPAYLOAD' and then using mapping set up my 'To Email id'. But I want an option to change the email id in different environments and would prefer to do this in ID.
hi,
do you have sp14?
if you do than it's a standard
you can set the subject in the message mapping
(adapter specific idenfitiers)
and then the content can go in the body easily
content in the body:
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
using dynamic adapter identifiers:
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<i>if you do than it's a standard
you can set the subject in the message mapping
(adapter specific idenfitiers)
and then the content can go in the body easily </i>
Michal, I have sp14. Could you please elaborate a little more. Are you saying that we can achieve this using XIALL option? Because I would like to give my Output email id in the Integeration directory and email id is not part of the payload. Further I want the ability to change the email id based on environment, so It cannot be hardcoded in the mapping.
I have the following input XML payload
<Header>
<Title></Title>
<Content></Content>
</Header>
I see from Adapter specific attributes that I have a field called 'THeaderSUBJECT'. I presume that I have to set 'Adapter specific attributes ' in my receiver mail adapter. But how do I fill the THeaderSUBJECT field in my mapping?
How should my output XML Payload look in this scenario?
hi,
>>>>Are you saying that we can achieve this using XIALL option?
you can use XIALL or payload doesn't matter
>>>>But how do I fill the THeaderSUBJECT field in my mapping?
just like described in this weblog:
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
you only need to change the namespace and THeaderSUBJECT
>>>>so It cannot be hardcoded in the mapping.
you can put all for all systems with an if statement
or you can take it from the property file
in your java function no problem with that
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
HI SSG,
Check this blog from Michal-
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
Regards,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.