cancel
Showing results for 
Search instead for 
Did you mean: 

Body and Attachment both in a mail

Former Member
0 Kudos

Hi,

I am working to send a mail from XI. My present scenarion is like this: I am using xslt mapping to generate code for a html page using source and using dumy target. Now I am using module adapter "localejbs/AF_Modules/MessageTransformBean" for getting attachments. I am able to get the attachment if i check "Keep Attachment" check box or else I am able to see the html pagein body of mail.

Here I am getting either body or attchment. Is there any way to get both body and attachment?

Thanks.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi

My req is somewhat related to this. I am reading a mail using mail adapter and again am sending (forwarding) the read mail to some other mail id.Its working fine. But when i read mail which is having an attachment(PO.pdf), the attachment is discarded. FYI, the mail if forwarded to a fax machine via SMTP server. Any idea why this happens.

Regards

Anandan

Former Member
0 Kudos

Hi Anandan,

I have a same scenario. which you r working. i have to send file to mail with that file i have to attach .pdf file and send it to the mail. i have to add a link also in the body of the message. Could u please help me this one.

Thank you

Regards

Sundher

Former Member
0 Kudos

Hi,

The link I have given has two SDN TV demos and that covers both the scenario of sending mail and mail as attachment. I am able to open the link and presentation.

Thanks,

Prateek

Former Member
0 Kudos

Yes Parteek,

I tried to open those but I dont know why I am getting "Error on Page" and unable to run the media player.

Thanks.

Former Member
0 Kudos

Hi,

Following link has two demos of the mail adapter, which will solve your problem.

https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#xi [original link is broken]

Thanks,

Prateek

Former Member
0 Kudos

Hi Prateek,

I am getting Error on page when I tried to open the link, could you give me link, where it is documented?

Thanks,

Yaseen.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you need adapter module just like I've told you

Regards,

michal

Former Member
0 Kudos

Michal,

I am a bit confused with the adpater module, could you give me a document, where I can find both body and attachment scenario?

Thanks.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

there are only document's for body

you can add it in the attachment with an adapter module

no document for both as there are documents for each one

Regards,

michal

Former Member
0 Kudos

Hi Michal,

I am going thru "How to use mail adapter". In that a small clarification:

<b>3.2.4 Sending a Mail with Attachment</b>

If you want to send a mail with a body and attachment, or with several attachments, the

message sender has to provide an XI message with additional attachments. <b>For each

additional payload of the XI message</b>, the mail adapter creates an attachment for the

mail. To enable this feature, you select the Keep Attachments checkbox when

configuring the mail adapter. By default, the payload of the message is also sent as an

-8-

attachment. If you do not want the payload to be sent as an attachment, set

ContentDisposition to inline.

<b>For each

additional payload of the XI message:</b>

How can we provide additional payloads?

Thanks.

Yaseen

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>How can we provide additional payloads?

you can to add it to the SOAP XI message for example

Regards,

michal

Former Member
0 Kudos

>>>>>you can to add it to the SOAP XI message for example

Can you be bit clear if possible?

Thanks.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

some adapter (file, mail, etc) add the attachment

to the soap attachment of the xi message

you cna then send it as an attachment in the mail

or you can add your own attachment in the adapter module

very easily

Regards,

michal

Former Member
0 Kudos

>>add the attachment

to the soap attachment of the xi message

Can you tell me what is meant by this statement and how to od it?

Thanks

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

sure:

in the adapter module use method: addAttachment

to add XMLPayload to your XI message

you XMLPayload can be any message

which you want to put in the attachment

Regards,

michal

Former Member
0 Kudos

I am not using any adapter module method,

I am trying to use these statements:

<b>3.2.4 Sending a Mail with Attachment</b>

If you want to send a mail with a body and attachment, or with several attachments, the

message sender has to provide an XI message with additional attachments. For each

additional payload of the XI message, the mail adapter creates an attachment for the

mail. To enable this feature, you select the Keep Attachments checkbox when

configuring the mail adapter. By default, the payload of the message is also sent as an

-8-

attachment. If you do not want the payload to be sent as an attachment, set

ContentDisposition to inline.

If you want to give each attachment a certain name, you can use the swap module. The

swap module changes the main payload.

-- This is not talking about any methods to be implemented.

Thanks,

arunneerolil
Contributor
0 Kudos

Hi Yaseen,

Refer https://websmp201.sap-ag.de/nw-howtoguides

HowToCreateAdapterModules.pdf

Regards,

Chemmanz

arunneerolil
Contributor
0 Kudos

Hi Yaseen,

Create an EJB module to achieve this.

Refer the below doc

https://websmp201.sap-ag.de/nw-howtoguides

HowToCreateAdapterModules.pdf

Regards,

Chemmanz