cancel
Showing results for 
Search instead for 
Did you mean: 

File to mail .pdf attachment

Former Member
0 Kudos

I have a scenario file to Mail and in the file vendor no 1234 then 1234.pdf in the file net. so when vendor no 1234 appears then i have to pick the 1234.pdf from filenet and attached to the mail. How can we do this scenario. Could you please help me this one.

and one more how can i add the link in the mail body. i did one file to mail scenario. body is not showing . that one also showing as attachment. how can i do this.

Advanced Thanks

Regards

Sundher

Accepted Solutions (0)

Answers (2)

Answers (2)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

create an adapter module (that you will attach to the standard mail adapter)

that will pick up the pdf file - on the basis of vendor number - put it inside an attachment

and send it along with the mail

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>

Former Member
0 Kudos

Hi Michal,

Thank you for your replay. How can i create a Adapter module. If is there any blog. how to create this. If you have any steps please help me.

Thank you

Sundher

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

it's pretty easy once you do it a few times

check this link for a simple example:

https://websmp108.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf

all you need is to get the file and put it inside an standard attachment

and it should work perfectly

Regards,

michal

Former Member
0 Kudos

Hi Michal,

Thank you. i have one more question. i worked on file to mail scenario. my message is not coming in the body. it's coming as a attachment. i need to know how can i add the link in the body of email. like http://www.google.com how can i add this in the mail.

Advanced thanks for your help

Regards

Sundher

Former Member
0 Kudos

Hi Sundher,

Check the following link

<a href="/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter:///people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter

Regards,

Akshay

Former Member
0 Kudos

Hi Akshay,

Thank you very much. How can i add link in the body. If u know please help me.

like http://www.google.com click here should be google site has been open. how can we do this.

Thank you

Regards

Sundher

Former Member
0 Kudos

Hi Sundher,

In the weblog mentioned, the data is sent as a HTML file since the value of the parameter 'ContentDisposition' passed to the MessageTransformBean is set as 'attachment'. In ur case set it as 'inline'. This will send the data as body of the mail instead of attachement. Also, uncheck the 'Keep Attachment' box in the receiver mail adapter.

Regards,

Akshay

Former Member
0 Kudos

Hi Akshay,

Thank you for u r help. I need some information. i have a file in my C: drive. i have to pick up that file and attached to mail. Do u have any idea for this. If u have any idea please help me.

Thank you

Regards

Sundher

Former Member
0 Kudos

Hi Sundher,

Hey configure a scenario like this File -> XI -> Mail. In this, u pick up the fiile using file adapter and send it to XI. For sending the files as an attachment, provide the MessageTransformationBean in the receiver mail adapter and pass the parameter 'ContentDispostion' with its value set as attchment.

For more details u can check the following link

<a href="https://websmp209.sap-ag.de/form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202&_OBJECT=011000358700004556712005E">https://websmp209.sap-ag.de/form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202&_OBJECT=011000358700004556712005E</a>

Regards,

Akshay

Former Member
0 Kudos

Hi Akshay,

Thank you for u r information. i need to add a link in the body. and i have to pick up the file from my local drive c and attached to mail. this is my scenario. could u please help me

Regards

Sundher

Former Member
0 Kudos

Hi Sundher,

Hope the following link helps...

<a href="/people/sravya.talanki2/blog/2006/11/28/e-mail-xml-messages-in-pdf-format-from-sap-xi:///people/sravya.talanki2/blog/2006/11/28/e-mail-xml-messages-in-pdf-format-from-sap-xi

Regards,

Akshay

<a href="/people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi:///people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi

Message was edited by:

Akshay Salunke

Former Member
0 Kudos

Hi Akshay,

Thank you for your replay. I don't want to convet .xml file to .pdf. already third party system is doing that. just i need to pick from the filenet and attached to standard mail adapter. please help me this.

Thank you

Regards

Sundher