cancel
Showing results for 
Search instead for 
Did you mean: 

How To Send A Text Attachment Through MAIL Adapter

vinay_kumar75
Explorer
0 Kudos

Hi Experts,

   I Did A Scenario that is  By using file adapter at the sender side and PI as a middle ware i have sent one text file to database

Now here my question is

I have to send the same text file which i have sent database... my using Mail Adapter

Simply  File to Mail Scenario

FILE         PI                MAIL

But I have to send the same text file which i sent to database... by using mail adapter... Here all the configuration are done ... And the channels are working properly... only thing  here is..to send same text file using mail adapter..

It will be good if  any one can explain step by step..

Regards

aravindh

Accepted Solutions (1)

Accepted Solutions (1)

vinay_kumar75
Explorer
0 Kudos

Hi  Vimal Pillai,

Thank you very much .. This is the help full answer to me.. But i have question  that is...Here i am doing "FILE TO MAIL" ... My process is that ... i want to pick a file from the database and i want to send that file by  to email as a .....txt file attachment..here i am using .... FILE at sender side. and message protocol as  " FCC" .. is this  correct ..? ..

Thanks in advance,

Regards

vinay

Vimalsap
Participant
0 Kudos

Hi Vinay,

Can you be more specific when you are saying you want to pick a file from Database? Can you brief a bit on that.

When we are picking the file from the any File Server we use File Adapter. If you are working with a Database you need a JDBC adapter and the required modifications needs to be checked if we can get any attachement along with the JDBC query to Database.

Regards

Vimal Pillai

vinay_kumar75
Explorer
0 Kudos

Hi Vimal,

I  did scenario  that is FILE TO MAIL

   Tanq u alot for suggesting me this mail module configuration... When i keep  this module configuration i was receiving a text attachment but inside the text i was getting in the form of xml... Please solve the issue na....

Please find the attachment of .text that i got into mail, And iam sending the module configuration that what i did as per your have given to me please check it and tell me weather it is correct or not...

And i cannot under stand that what is payload name ... In that module configuration  u have mentioned

Please do the needful to solve this issue..  This is the 1st time i was using this mail adapter...

Thanks in advance.....

Thanks,

vinay

Vimalsap
Participant
0 Kudos

Hi Vinay,

Please provide points(or click answered) if the solution is proving useful.

Try this:

File Sender Channel

Mail Receiver Channel:

Please let me know if this does not work. You should receive a text file as attachement in the mail adapter using the above solution.

Answers (3)

Answers (3)

vinay_kumar75
Explorer
0 Kudos

Hi Vimal,

  Tanq For connecting me again.. I did this scenario successfully ... But again i have a problem that is..

For this file to mail scenario we have got .txt as an attachment ... Its fine ... But her my Client is asking me to add CONTENT in the mail... Content in the sense..

Example of content...

Hi,

Please find the attachment

Regards,

sap pi,

They need in the form of like this...  To add content in the mail  What i have to do...DO i need to add more configurations if it is what are they...

Please solve the issue.. It is appreciated  some one can explain me step by step or .. By sending me screen charts..

Thanks in  advance....

Regards

vinay

Former Member
0 Kudos

Dear

vinay_kumar75
Explorer
0 Kudos

Hi Rajendra,

   Tanq for connecting me ... This  Blog helped me a lot ....And it is a useful answer to me..

For this file to mail scenario we have got .txt as an attachment ... Its fine ... But her my Client is asking me to add CONTENT in the mail... Content in the sense..

Example of content...

Hi,

Please find the attachment

Regards,

sap pi,

They need in the form of like this...  To add content in the mail  What i have to do...DO i need to add more configurations if it is what are they...

Please solve the issue.. It is appreciated  some one can explain me step by step or .. By sending me screen charts..

Thanks in  advance....

Regards

vinay

Vimalsap
Participant
0 Kudos

Hi Vinay,

In the below scree, I am sending an xml file and attaching a .txt file along with it.

Now, when the files are processed in Mail Adapter the .txt file will be read as an attachment and the required configuration are as under:

Let me know if this answers your question.

Regards

Vimal Pillai