Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

javax.mail.*; not being seen by portal in EP 6

Hello All,

It seems that when I deploy the following code:

package com.giggity;
import java.util.Properties;
import javax.mail.*;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import com.sapportals.portal.prt.component.AbstractPortalComponent;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.component.IPortalComponentResponse;

public class Mailer extends AbstractPortalComponent
  public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
  Properties p = System.getProperties();
  p.put("", "stmail");
  MimeMessage message = 
new MimeMessage(Session.getInstance(p, null));
message.setFrom(new InternetAddress(""));			message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(""));
message.setSubject("No work");
message.setText("Does not work");
catch(Exception e)

I get a javax/mail/Address ClassNotFoundException. In

the IDE (Eclipse with PDK plugin, not using NW04), it

compiles and builds just fine. What is the problem?



Former Member
Not what you were looking for? View more on this topic or Ask a question