Skip to Content
0

Steps to create file to Mail scenario in sap pi

Oct 25, 2016 at 12:56 PM

227

avatar image
Former Member

Hi All,

My Scenario is ,I need to pick the file from location and send the file as attachment to the receiver mail.I configured both File and Mail adapters.but i didn't receive any mails.Please find below is the source and target structure i am using

Source Structure:

<?xml version="1.0" encoding="UTF-8"?>

http://infosys.com/sap/pi/workbench/hyd/inf670710">

<Record>

<EmailFrom/>

<EmailTo/>

<Subject/>

<Message/>

</Record>

</ns0:MT_670710_fileinput>

Target Structure:

<?xml version="1.0" encoding="UTF-8"?>

http://infosys.com/sap/pi/workbench/hyd/inf670710">

<Record>

<From/>

<To/>

<Subject/>

<Message/>

</Record>

</ns0:MT_670710_Mailoutput>

Please find below is the File sender and Receiver mail adapter which i configured in ID.Please provide the steps to send the source file as attachment.

mail-adapter.png (18.9 kB)
file-adapter.png (19.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Manoj K Oct 25, 2016 at 01:22 PM
0

This Blog should help you.

Stop Using Mail Package

Br,

Manoj

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Manoj,

Thank you for the blog.I defined Receiver Mail Adapter as per in the blog.But still i didn't receive any mail with attachment yet.But file got pick from the defined path.Kindly let me know the input file should contain data as per the source structure?

Thanks & Regards,

Priya D

0

Firstly chekc if there is any error in receiver channel , if yes please let us know what is the error ? Usually the mail server would be something like smtp://server.XXXX.com so just cross check withan y of your earlier existing mail channel and chekc the mail server.

And also i see you have enabled Delivery Notification , didn't you get any delivery error/successful mail ?

br,

Manoj

0
avatar image
Former Member Nov 03, 2016 at 09:00 AM
0

Hi Manoj,

yes i am getting Delivery Notification as mail sent successfully.

Regards,

Priya D

Share
10 |10000 characters needed characters left characters exceeded