cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Mail Adapter with Attachment and Mailpackage

Former Member
0 Kudos

I have set up a scenario

filesystem: filexxx.xml filexxx.pdf

xml= mailpackage format to get the receiver mailaddress

pdf=the file i want to send as a attchment.

I am using the RenemAttachment module i found on SDN.

in SXMB_MONI it looks ok, the attachment name is filexxx.pdf application/pdf

But when i look at the mail send it shows as attachments

Untitled.txt and Untitled.pdf

Any id's

I only want to send the mail woth one attachment, the original pdf as a attchment.

tnx

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

The content-type gets lost somewhere in the connection IS-AF.

You could open an OSS ticket for this (it is a known issue).

Regards

Stefan

Answers (2)

Answers (2)

Former Member
0 Kudos

Issue should be solved with SP17.

I solved by putting the attacgement into the content part of the message.

like.

<?xml version="1.0" encoding="ISO8859-1"?>

<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">

<Subject>Greenery:TESTTEST</Subject>

<From>customerservicedesk@xxxxxxx</From>

<To>Peter.schults@xx</To>

<Content_Type>application/pdf; name=TEST.pdf</Content_Type>

<Content_Description>PDF FAKTUUR</Content_Description>

<Content_Disposition>attachment; filename=TEST.pdf</Content_Disposition>

</ns1:Mail>

Former Member
0 Kudos

Hoi Peter.

Ik ben een collega van je geweest bij CTAC. Mag ik je een vraag stellen aangaande receiver mail adapter.

Mijn scenario is het volgende: in een sender mail wordt een verkooporder op PI afgestuurd via deze verkooporder moeten meerdere pdf documenten via een fileserver als attachment door worden gesuurd.

Enig idee hoe dit gedaan moet worden.

Alvast bedankt voor je reply

groeten Harrie

former_member181962
Active Contributor
0 Kudos

Hi,

I hope you are doing the following:

Use mail Package- checked

Keep Attachments - Checked.

In the module configuration tab, you have provided Content Type for Transform.ContentType for PDF documents

Regards,

raVI

Former Member
0 Kudos

raVI,

Yes all checked, as stated the content type is ok, but the name of the attchment should be the same as i see in sxmb_moni. Here i see the correct name.

But in the received mail it's wrong.

There are no modules parameters set in the receiver mail site.

summary.

the pdf file name picked up with the file adapter must be used as the name of the attachment.

tnx