cancel
Showing results for 
Search instead for 
Did you mean: 

Help required for Mail Scenerio

0 Kudos

Hi Folks,

I am configuring Mail to file scenario in SAP PO.

I have to read the mail attachments from specific email address and place the attachment in the file path.

I have used payload swap bean to retrieve and place the attachment in the file path.

Now additional requirement is to read the mail from specific email address.

For example:

Email server receiving mails with attachment ..

Requirement:Mail adapter should pick only the attachment from my mail ID.

Can anybody help me on this?

Whether this requires mapping in ESR?

Regards,

Pavithra.R

Accepted Solutions (1)

Accepted Solutions (1)

former_member182412
Active Contributor
0 Kudos

Hi Pavithra,

Read the mail with attachment, in the sender mail adapter using PayloadSwapBean adapter module to swap the attachment to main payload and send it to file adapter.

Regards,

Praveen.

0 Kudos

Hi Praveen,

I used Payload swapbean to read the attachment and its working fine.

My problem is not to read the attachment.

I have to read the mail attachment from specific sender.

Can u please tel me how to acheive this?

former_member182412
Active Contributor
0 Kudos

Hi Pavitra,

Move the mails to specific folder which is receiving from specific sender then configure you sender mail adapter to pick up from that folder.

Regards,

Praveen.

0 Kudos

Is there any way apart from this?

Is it possible in using POP3 protocol?

Or we have to use IMAP4 protocol?

0 Kudos

Praveen,

Is it possible to read the mail from folder in POP3?

former_member186851
Active Contributor
0 Kudos

Hello Pavithra,

POP3 is for retrieving mails from mail server and imap is for retrieving from folders in mail box.

For more details check the sap documentation

Configuring the Sender Mail Adapter - Advanced Adapter Engine - SAP Library

former_member182412
Active Contributor
0 Kudos

Answers (3)

Answers (3)

suchitatomar
Participant
0 Kudos

Hi Pavithra,

If you are trying to read the mail sender refer below

For possible attributes :

adapter specific attributes @

Configuring the Sender Mail Adapter - SAP NetWeaver Exchange Infrastructure - SAP Library

Regards

S Tomar

iaki_vila
Active Contributor
0 Kudos

Hi Pavithra,

The best and more standard way is to use PayloadSwapBean module as Praveen said. Another way is to read the attachment in a java mapping. You can check how to read a PI attachment in this blog

Regards.

former_member186851
Active Contributor
0 Kudos

Hello Pavithra,

It depends on your requirement,

If you wish to convert the attachments you need mapping.

0 Kudos

Hi Raghu,

i dont want to convert the content in attachement.

Can u tel me how to read the mail from specific sender?