cancel
Showing results for 
Search instead for 
Did you mean: 

sap.com_SAP-JEE_1 Mail

Former Member
0 Kudos

Hi

I am trying to find a way to send mail from a Web Dynpro without using my own external Jars such as mail.jar and activation.jar

I have come across the sap.com_SAP-JEE_1 in Used DC's and found a mail DC inside of this package but I'm not sure how to use it. Can anyone shed some light on this for me? Thanks.

Regards,

Brian

Accepted Solutions (1)

Accepted Solutions (1)

roberto_tagliento
Active Contributor
0 Kudos

You not have to ADD external LIB, that are inside SAP-JEE!!!

You must add used DC into metaData

Former Member
0 Kudos

Roberto,

Thanks for the reply. Can you elaborate a little more? I am new to WebDynpro and still learning.

Regards,

Brian

roberto_tagliento
Active Contributor
0 Kudos

follow:

right click on "used DC" --> click ADD DC

will SHOW a list of TREE element

choose

SAP-J2EE track

explode

find your wished JAR

and ADD

it is intuitive

roberto_tagliento
Active Contributor
0 Kudos

After on your project properties do:

on Web Dynpro References ---> tab: Library References

and ADD this 2 name

sap.com/mail

and

sap.com/activation

Former Member
0 Kudos

Brian,

For using external libraries refer my <a href="/people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas">blog</a>.

For using the standard DC as a used DC, simply open the DC metadata of your DC and go to "Used DCs" and choose the option "Add used DCs" and select the DC you want. You may refer <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383">tutorial</a> as well.

Bala

roberto_tagliento
Active Contributor
0 Kudos

After this operation you are able to use the JavaMail libraries.

take a look here:

http://java.sun.com/developer/onlineTraining/JavaMail/contents.html

there are also example.

Former Member
0 Kudos

Hi,

Thanks for all the replies. I have followed the instructions for using the sap.com/mail and sap.com/activation DC'S making a WebDynpro Library reference. This solution makes sense to me because they are part of the sap.com package and I expect that there will be no problem when activating in the NWDI because they are a part of the sap.com package. My first attempt to use mail.jar and activation.jar as external jars resulted in a build failure upon activation in NWDI, I think becuase of the missing jars.

My final question is how do I now use the sap.com/mail and sap.com/activation in my code for example? Thanks.

Regards,

Brian

roberto_tagliento
Active Contributor
0 Kudos

Did you look my last POST? 😛

After ADDED the used DC, mail.jar and activation.jar are available

into your source code can use that libraries like showed in my last LINK above.

roberto_tagliento
Active Contributor
Former Member
0 Kudos

Roberto,

Thanks. I just noticed that in my Email class there are no complaints about importing javax.mail.n etc...I am supposing now that the imports are resolving to the sap.com/mail and sap.com/activation Library references that were made aliong with the USED DC association that was made. I also expect this to activate in the NWDI without any problems. I hope! Thanks again.

Regards,

Brian

Former Member
0 Kudos

Sorry all, I think I'm not sure how give out the points. But I did try to give some to you all.

Regards,

Brian

roberto_tagliento
Active Contributor
0 Kudos

😄

not are important point Brian

it´s important that you can go on!

Former Member
0 Kudos

Thanks, Roberto. Your help is greatly appreciated!

Regards,

Brian

Former Member
0 Kudos

Hi Bala,

Thanks for the link to your blog. It is a very good resource.

Regards,

Brian

Answers (0)