cancel
Showing results for 
Search instead for 
Did you mean: 

Steps to create file to Mail scenario in sap pi

priya_danasekar2
Explorer
0 Kudos

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"?>

<ns0:MT_670710_fileinput xmlns:ns0="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"?>

<ns0:MT_670710_Mailoutput xmlns:ns0="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.

priya_danasekar2
Explorer
0 Kudos

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

manoj_khavatkopp
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

priya_danasekar2
Explorer

Hi Manoj,

yes i am getting Delivery Notification as mail sent successfully.

Regards,

Priya D