cancel
Showing results for 
Search instead for 
Did you mean: 

Email Sending Application in NWDS 7.2

Former Member
0 Kudos

Hi ,

I want to do desgn a application in which i need to send the mail to the users . i went through the link of NWDS 7.0 which doesnot have an API for session ,MIME message and Internet Address. The url given below gives problem wen i use it in 7.2.

Do i have to put some jar files??

Can any one tell me how to proceed on with this.???

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40239f38-a94a-2b10-c583-9b89187c3856?quicklink=index&overridelayout=true]

Edited by: swarnsing on May 26, 2011 4:16 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Qualiture
Active Contributor
0 Kudos

Hi,

The example you provided uses the standard JavaMail API and therefor should work just fine on 7.2 as well

What specific problems do you run into?

-edit: There is no need to deploy JavaMai jar filesl, since it's standard included.

Just use:


InitialContext ctx = new InitialContext();
Session session = ctx.lookup("java:comp/env/mail/MailSession");

to obtain a session and off you go.

Cheers,

Robin

Edited by: Robin van het Hof on May 26, 2011 2:09 PM

Removed references to import jar files

Former Member
0 Kudos

Hi

I have used the jar files but the thing is in the import statements they have javax which is not getting build it throwing build errors because the import files are of type javax. after i installed the jar files. As in in the build log its showing me the error wherever ihave imported javax .

Qualiture
Active Contributor
0 Kudos

Hi,

It looks like you haven't included the dependency yet

Have you added the dependency library 'engine.jee5.facade' to your used DC yet?

Best regards,

Robin