cancel
Showing results for 
Search instead for 
Did you mean: 

new to mail adapter

Former Member
0 Kudos

Hello,

I have a process that will retrieve a file from a server and send it to SAP. I would to have a email generated when the file is sent to SAP to inform the user that the file is ready for processing.

I am not sure how to accomplish this. someone had mentioned that I should use the mail adapter.

I have been looking thru the SDN for information on setting up the mail adapter to send a email and I found blogs similar to the ones below:

/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter

/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address

questions:

1) do I have to create mappings in order to send a email to a person?

2) I am not sure how everything gets tied to each other in the intregration builder. the pieces that I have built for my process are a communication component, 2 communication channels, one for receiving the file and one for sending the file and a intregrated configuration which looks like it is used to tie anything together. I am not sure where the mail adapter fits in.

is there any more documentation on how to set up the mail adapter to be able to send a email

thanks in advance for the help

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos
1) do I have to create mappings in order to send a email to a person?

When you need mapping:

a) When you are using Mail Package.....the Mail.xsd file...here you can give the Subject, To, From values in the mapping itself....else you have the option of specifying them in the Receiver Email Channel

b) When you want to display the mail contents in a proper format (using html tags)

If you want to send the mail as an attachment and the included message structure should be XML (of the target message type defined in IR) then no need of mapping.

Message and XSLT mappings are the most preffered mappings for email scenarios.....purely my opinion.

2) I am not sure how everything gets tied to each other in the intregration builder. the pieces that I have built for my process 
are a communication component, 2 communication channels, one for receiving the file and one for sending the file and a 
intregrated configuration which looks like it is used to tie anything together. I am not sure where the mail adapter fits in.

A communication channel is actually a transport used by the message to go from source to XI/ PI to target system.

When you create a Communication Channel the first thing that you do is you select the Adapter Type for your channel.

So this is the part where your actual Email Adapter fits into (or is selected)

In your case it will be selected in the Receiver Channel.

Actually there are many blogs on Email communication (how to design), how to develop mappings (XSLT, Message Mappings)...giving links to these blogs would mean spamming your post (and hence SDN)....the best option that i would suggest is you use the Search facility....it is quite simple

Regards,

Abhishek.

Former Member
0 Kudos

Hello,

I ma been out and just getting back to the office.

thank for the answers. I have been reading and checking everything out. one thing that I dod not mentioned in the original post. we are using PI 7.1 and we have a process that is using 1 communications component, 2 communication channels, and 1 integrated configurations which looks like it ties everything together. I have created another communication channel for the mail adapter but I cannot figure out where to code the communication channel for the mail adapter in the integrated configurations.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Timothy,

You can create two receivers one for sap and one for mail. Then whenever you are sending to sap you can also send mail to the concerned person stating under process or whatever you want. It should be very straight forward.

Also check this blog which will help you in configuring receiver mail adapter with various options:

/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure

Regards,

---Satish

Former Member
0 Kudos

Hi Timothy,

You can use a BPM for this scenario. Once your message has been triggered to SAP, then only the email will be sent to the Mail server.

Please make a search on SDN / SAP help for further documentation on mail adapter.

Let us know if you have more questions.

Regards,

Neetesh