cancel
Showing results for 
Search instead for 
Did you mean: 

Insert Body in mail along with Attachment

Former Member
0 Kudos

Hi,

I am trying to send a mail using XIPAYLOAD Message protocal. I am able to get the payload as attachment, but cant get the body. I am unchecking Use mail package check box as my payload has html information which needs to go as and html attachment.

could any one help me to get body into my mail?

Thanks,

Yaseen.

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you can either put it in the body or in the attachment:

/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter

but you can easily write an adapter module

that will do both:

/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

Regards,

michal

Former Member
0 Kudos

Hi Michal,

I am trying to do according to ur posts. I am getting either body or attachement based on the check box "Keep Attachments" checked. Could you please let me know where I may be doing wrong?

Thanks,

Yaseen

MichalKrawczyk
Active Contributor
0 Kudos

hi Yaseen,

set it to body and then add to attachment

in the adapter module (just like in my weblog)

then you will have both like I said

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

Former Member
0 Kudos

I did that then I am getting only body, there appears no attachment.

Do we need to specify "charset="utf-8"" in adapter module?

Thanks,

Yaseen

MichalKrawczyk
Active Contributor
0 Kudos

>>>>Do we need to specify "charset="utf-8"" in adapter module?

to put it in the body

adapter module code - to put it in the attachment

just refer to both of my weblogs that's all

Regards,

michal

Former Member
0 Kudos

weblog 2781 has two points 1 for body and 2 for attachment. But I need both in one. So I was bit confused with the weblogs.

Thanks.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>weblog 2781 has two points 1 for body

only point 1 from this weblog

and the code from the other weblog - adapter module

Regards,

michal

Former Member
0 Kudos

Hi Michal,

Where do we need to add the code of 2nd weblog?

Thanks.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you need to "add it" to the adapter module

that you have to create

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

Former Member
0 Kudos

Hi Michal,

Thanks for replying with patience. Is this only way for simple body and attachment which should be a basic thing?

Do we really need to write a custom code?

Thanks.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

I believe this is the only way

this is just a 10 line code

so not a lot to do

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

Former Member
0 Kudos

Now If I use first weblog and second one, can the body content and attachment content going to be different? From Weblogs it tells that content is going to be same for attachment and body. is it so?

Thanks.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

it may be the same or not you can manipulate the content

in the adapter module as you wish

Regards,

michal