cancel
Showing results for 
Search instead for 
Did you mean: 

File to Email with Attachment FileName

brian_briones
Participant
0 Kudos

hi experts,

I need send to email with attachment file. This attachment must have the name and source type.

Actually i have on email maindocument.xml but the source file is is files.csv

I dont have the mapping... is a dummy interface... please let me if I must create IB objects or in the module I can do this one.

is PI 7.4

Regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member182412
Active Contributor
0 Kudos

Hi Brians,

Better to do it in java mapping, check below thread

Dynamic filename in receiver mail adapter | SCN

You just need to set the output payload content type in java mapping.


transformationOutput.getOutputHeader().setContentType("text/plain;charset = \"UTF-8\";" + "name=\"" + FileName + "\""); 

Regards,

Praveen.

Answers (4)

Answers (4)

manoj_khavatkopp
Active Contributor
0 Kudos

AFAIK dynamic filename i.e attachment cant be handled by standard module so this has to be handled in Java mapping or custom module

Former Member
0 Kudos

Hi Nitin,

What ever you have provided the link for mail to file scenario. Is it possible for file to mail scenario. I mean to say that if we sent one File, it had to receive to mail as attachment and the file name should display in the subject line. If it is possible please elaborate.

Regards,

Anji Reddy

nitindeshpande
Active Contributor
0 Kudos

Hello Brians,

Have you gone through the below blog? there are suggestions of using existing standard module parameters to use file name as attachment name.

Regards,

Nitin

brian_briones
Participant
0 Kudos

Hi, the interface is file to email... Anda file must go attachment with same name...

Former Member
0 Kudos

Hi,

Please try below link. I hope this will useful to you

File to Mail Receiver with Attachment without mapping

Regards,

Anji Reddy