cancel
Showing results for 
Search instead for 
Did you mean: 

Need to send a mail back to the user in Sender Mail adapter Scenario

Former Member
0 Kudos

Hi all,

I have a scenario where the user fills the Price form or the Article form (which is a Adobe Form).When the user clicks on the "submit" button,the form is converted into xml , gets attached to the mail and sent to PI.

Now the user sometimes attaches the pdf directly instead of submitting the form. This results in the mail being sent

with pdf as attachment.

Now my requirement is to send a mail back to the user asking them to send an xml instead of a pdf.

How can this be done ?

Kindly let me know friends.

Quick Response is appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sanjay,

Can you some more information on the scenario itself?

Like what is PI doing after receiving mail with attachment??

regards

Ramesh

Shabarish_Nair
Active Contributor
0 Kudos

you might have to first write a mapping in which it reads the attachment name and if the attachment name ends with .pdf, create a routing logic to trigger a new mail using the mail receiver adapter else the alternate flow will cater to your business logic of message processing.

Former Member
0 Kudos

Thanks Shabz,

Can we take the attachment type value with Dynamic Config and use it for creating a mail back to the user.

Is there a previous blog on this?

Shabarish_Nair
Active Contributor
0 Kudos

I dont think there is parameter available for this in the mail sender adapter. http://help.sap.com/saphelp_nw04/helpdata/EN/23/c093409c663228e10000000a1550b0/frameset.htm

Former Member
0 Kudos

hi Sanjay,

Have a look on Michal's blog, it's for JMS, but it works for others: [|]

Mickael

Former Member
0 Kudos

Hi Shabz,

I actually checked the checkbox "mail package" and I am now getting the email ID and the content type in the mail message section of payload.

Now how can I use this info and send a mail back?

Kindly let me know.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

if you have the e-mail in the message then you can ither map it to the ASMA-THeaderTO field

or use the package info also at the receiver with XIPAYLOAD protocol

unless you need to do something very specific which you did not mention yet with this info,

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

Thanks for your reply.

I did use the mail package and got it in the payload.

Now if the user attaches a pdf, we should send a mail back asking the user to send in xml.

If the user sends a xml attachment, there is no need to send back any mail.

This is the actual requirement.

Former Member
0 Kudos

Hi Shabz,

I have the sender mail ID in the message payload now.

How do I use this and send a mail back?

I created a mapping which has attachment type, sender mail ID in it.

How do I use all of this and achieve the desired result?

Please do help.