Guided Procedures - set mail smtp host

Hi,
I want to set the smtp host to use email notifications in a Guided Procedures process. So I go in the portal to:
Guided Procedures  -> Administration -> GP Configuration Tool -> Interactive Forms -> SMTP Server
When I click on the Save button I get
   java.lang.NullPointerException
    at com.sap.caf.eu.gp.ui.conf.iforms.CInteractiveForms.validate(CInteractiveForms.java:382)
I tried it on another CE installation with the same result. This seems like a bug. Is there another way to set the smtp host in GP? Below the stack trace..
Regards, Kevin
java.lang.NullPointerException
     at com.sap.caf.eu.gp.ui.conf.iforms.CInteractiveForms.validate(CInteractiveForms.java:382)
     at com.sap.caf.eu.gp.ui.conf.iforms.CInteractiveForms.save(CInteractiveForms.java:442)
     at com.sap.caf.eu.gp.ui.conf.iforms.wdp.InternalCInteractiveForms.save(InternalCInteractiveForms.java:215)
     at com.sap.caf.eu.gp.ui.conf.iforms.CInteractiveFormsInterface.save(CInteractiveFormsInterface.java:186)
     at com.sap.caf.eu.gp.ui.conf.iforms.wdp.InternalCInteractiveFormsInterface.wdInvokeMethod(InternalCInteractiveFormsInterface.java:196)
     at com.sap.tc.webdynpro.progmodel.generation.ExternalControllerPI$ExternalInterface.invoke(ExternalControllerPI.java:291)
     at $Proxy483_10002.save(Unknown Source)
     at com.sap.caf.eu.gp.ui.gpconf.app.CConfigApp.saveWizard(CConfigApp.java:317)
     at com.sap.caf.eu.gp.ui.gpconf.app.wdp.InternalCConfigApp.saveWizard(InternalCConfigApp.java:158)
     at com.sap.caf.eu.gp.ui.gpconf.app.VConfigApp.onActionSave(VConfigApp.java:430)
     at com.sap.caf.eu.gp.ui.gpconf.app.wdp.InternalVConfigApp.wdInvokeEventHandler(InternalVConfigApp.java:247)
     at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:131)
     at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:72)
     at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.doHandleActionEvent(ProcessingEventPhase.java:156)
     at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.execute(ProcessingEventPhase.java:91)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:161)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:109)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:96)
     at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:469)
     at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:52)
     at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1388)
     at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1208)
     at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoProcessing(AbstractExecutionContextDispatcher.java:145)
     at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppProcessing.doService(DispatchHandlerForAppProcessing.java:35)
     at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
     at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
     at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoProcessing(ExecutionContextDispatcher.java:114)
     at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:80)
     at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:506)
     at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:526)
     at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:457)
     at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:248)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:698)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:230)
     at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:228)
     at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:192)
     at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
     at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
     at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
     at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
     at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:92)
     at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:104)
     at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
     at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:61)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66)
     at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)
     at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
     at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
     at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
     at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
     at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67)
     at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
     at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
     at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
     at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
     at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
     at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
     at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
     at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
     at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
     at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
     at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
     at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:309)
     at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:222)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)

Hi Kevin,
I didn't get which release of CE you are using, so I am giving you the procedure for SP3. You set the smtp through the Mail Sending tab page. Here's the procedure:
1. Go to Guided procedure ->
Administration-> Administer BMF->Clients
->select iForms Processor -> press Settings button
-> Mail Sending tab.
2. Set your smtp server in SMTP Server field.
3. Press Save button.
You can test mail sending by pressing Test button
but first you should
configure the mail of the administrator of BMF and
the mail of the administrator of the client
(iForms Processor). Please follow instruction below
BMF Administrator's mail:
1.Go to Guided procedure ->
Administration-> Administer BMF->Settings.
2.Input the mail in Administrator Mail files.
3.Press Save button.
iForms client Administrator's mail:
1. Go to Guided procedure ->
Administration-> Administer BMF->Clients
->select iForms Processor
2. Press Edit button.
3. Input the mail in Administrator Mail files.
4. Press Save button.
Hope this works out
Greets,
Petra

Similar Messages

  • Mail.smtp.host ??

    if I want to send a mail to example: [email protected], what do i have write in properties objet? My code is:
    String host = "?????????";
    String from = "[email protected]";
    String to ="[email protected]";
    // Get system properties
    Properties props = System.getProperties();
    // Setup mail server
    props.put("mail.smtp.host", host);
    // Get session
    Session session = Session.getDefaultInstance(props, null);
    System.out.println("Creo objeto sesion");
    // Define message
    MimeMessage message = new MimeMessage(session);
    System.out.println("Creo objeto Mime");
    try{
    // Set the from address
    message.setFrom(new InternetAddress(from));
    // Set the to address
    message.addRecipient(Message.RecipientType.TO,
    new InternetAddress(to));
    // Set the subject
    message.setSubject("Hello JavaMail");
    // Set the content
    message.setText("Welcome to JavaMail");
    // Send message
    Transport.send(message);
    catch(Exception e){
    System.out.println("Falla");
    }

    read the tutorial carefully, everything is explained in the tasks, let this as it is
    String host = args[0];
    String from = args[1];
    String to = args[2];
    at runtime give the required details the way its given in the task!!

  • URGENT::Status returned by Transport.send() and problem with mail.smtp.host

    Hello,
    I am writing a code to send an email using JavaMail. I have added mail.jar and activation.jar in the classpath. Also I would like to mention that I am using Weblogic6.1 SP4.
    A bunch of questions:
    1. After calling Transport.send(), how do i know if the mail was sent successfully or not ?? Is there anyway I can handle that?
    2. I am using props.put(mail.smtp.host, <some-value>). What should be this <some-value> ?? Where can I get this value from??
    And is this value sufficient for the code to know that which server we are using for it? Do we need to give any URL/Port etc? How does this work?
    3. Is there anything else other than smtp host, username and password to be added to props?? Do we need to create a properties file??
    4. After doing these things, do I need to create a mail session in the Weblogic server also or is it a different method?
    Please help me in resolving these issues.
    Thanks

    Thanks for your kind answers, Dr. Clap..!!
    However, I will again like to ask u this:
    1. As i said that I installed Weblogic 6.1 in my local machine, can I use it as the mail server? As the server is local to my machine, i know that its only me who is the incharge of it. How do I know what smtp host to use.
    2. I am using this code:
    public callService(ServiceRequest request) throws Exception {
         EmailRequest req = (EmailRequest) request;
         Session session = null;
         MimeMessage msg = new MimeMessage(session);
         String accNum = req.getAccountNumber();
         String toAddress = req.getToAddress().trim();
         String fromAddress = generalConfig.FROM_EMAIL_ADDRESS;
         String subject = req.getSubject().trim();
         String message = req.getMessage().trim();
         String [] arrToAddress = null;
         String fileName = "./"+accNum+".htm";
         if (toAddress != null) {
    arrToAddress = convertToArray(toAddress);
         Properties props = System.getProperties();
         props.put("mail.smtp.host", "MYSERVER"); //STILL NEED TO FIGURE OUT WHAT VALUE TO PUT HERE
    session = Session.getDefaultInstance(props);
         setRecipientsTo(msg,arrToAddress);
         msg.setFrom(new InternetAddress(fromAddress));
         msg.setSubject(subject);
         msg.setText(message);
    MimeMultipart mp = new MimeMultipart();
    MimeBodyPart text = new MimeBodyPart();
         text.setDisposition(Part.INLINE);
         text.setContent(message, "text/html");
         mp.addBodyPart(text);
         MimeBodyPart file_part = new MimeBodyPart();
         File file = new File(fileName);
         FileDataSource fds = new FileDataSource(file);
         DataHandler dh = new DataHandler(fds);
         file_part.setFileName(file.getName());
         file_part.setDisposition(Part.ATTACHMENT);
         file_part.setDescription("Attached file: " + file.getName());
         file_part.setDataHandler(dh);
         mp.addBodyPart(file_part);
         msg.setContent(mp);
    Transport.send(msg); //send message
    In this code, like I am using Properties class, will this code work fine(as it is) even if I dont make any Properties text file?? or is it mandatory for me to make the properties text file and to add some values to it?
    I am sorry, I may sound a bit dumb, but I just need to learn it somehow.
    Thanks.
    P.S: convertToArray() and setRecipientsTo() are my own defined private methods.

  • Javamail ignoring mail.smtp.host?

    Hi all,
    I have some code that looks like this (OK, this is oversimplified):
    private void sendMessage(SMTPMessage message, String username, String domain) throws MessagingException
    bq. String mxHost = getMXHostnames(domain)[0]; \\ Properties sessionProperties = new Properties(); \\ sessionProperties.put("mail.smtp.host", mxHost ); // This line is important! \\ Session session = Session.getInstance(sessionProperties); \\ URLName targetUrl = new URLName("SMTP", mxHost, 25, null, null, null); \\ SMTPTransport transport = new SMTPTransport(session, targetUrl);     Address[] addr = new Address[]() {new InternetAddress(username \\ + '@' + domain)}; \\ transport.send(message, addrArray);
    username and domain are variables containing a target address, and getMXHostnames() is a function returning an array of MX host names, sorted in order of preference, for a supplied domain name (I can verify that this works, or at least that it generates an array of very plausible-looking domain names, none of which is "localhost".
    When I run this code, however, I get:
    javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25
    Where is that "localhost" coming from? I specified a value for mail.smtp.host, and it's not localhost! (An example is "mx1.balanced.swarthy.mail.dreamhost.com", for webmail hosted by DreamHost.)
    Any help would be much appreciated.
    Thanks much,
    Avrom

    drvijayy2k2 wrote:
    sessionProperties.put("mail.smtp.host", mxHost ); // This line is important! what mail.smtp.host is just like demo..
    use yours...
    ex
    smtp.gmail.com
    Sorry, I should have made it a bit clearer what I'm trying to do. This isn't mail client; it is (and yes, I know the FAQ suggests that
    JavaMail isn't quite appropriate for this, so maybe I shouldn't be
    asking this question at all^1^) an originating SMTP server. At
    some point in the SMTP server chain, you have to connect to the
    receiving server. I'm hoping that I can do that directly; if I can't, I
    need to find out how to discover the appropriate relay to get it there.
    (Do all originators need to connect to an "upstream" server for which
    they have an account? How do the upstream servers send mail, in that
    case?)
    "My" SMTP server, I assume you mean, is the server I have an account on and a password for. But (IIUC), the MX servers listed in a site's WHOIS entry are public receiving servers--they're what smtp.google.com (for example) uses to deliver messages to email addresses at that web site. Surely they can't require usernames and passwords, because they need to have a general ability to receive email from outside. (These are different from SMTP originators, which are really only for the use of a select few.)
    (Anyway, why would you list servers in a WHOIS entry when they require an account? You can inform your account holders of your SMTP servers without using WHOIS).
    bshannon, sorry, but there's something I'm failing to see in the
    samples (possibly due to my not seeing it, rather than its not being there). All of them assume you use your session object in the
    construction of the MimeMessage: new MimeMessage(session). I've already
    received and processed a MimeMessage from the actual client; if I don't
    intantiate my own transport, how do I tell the SmtpMessage about my
    session (with customized properties, especially smtp host)?
    I really don't want to put the session in the message constructor if I
    can possibly help it--because the same MimeMessage might go to a bunch
    of different receiving smtp hosts (if it has a long to line, for
    example). Re-reading the content for each of them seems wildly
    inefficient compared to creating a single Mime message, and then
    creating different sessions to send the message to different places.
    drvijayy2k2, I understand that thread and in fact have posted on it. But again, that person was trying to create a client that connected to an SMTP provider. I'm trying to be the SMTP provider, and deliver mail to receiving servers.
    ^1^On the other hand, I've looked at extensible Java servers available on the net, and they all really seem to be primarily intended as SMTP receivers, not SMTP originators. I've actually got a (home-brewed, and currently pretty basic) receiving SMTP system working just fine (and the server component of my originator fine; it's the bit that sends the mail along that I'm having trouble with), but I need to provide a way to send mail, not just receive it. If JavaMail isn't robust enough (as the FAQ suggests) for this purpose, then it looks like eventually I'll need an entirely home-brewed system, but for my prototype, time to completion is rather more important than real robustness. I don't expect the prototype to need to handle a big load, for example.

  • Setting 'mail.smtp.localhost' to make things work

    Hello
    I was getting this error with my initial attempts to send myself an email using JavaMail:
    javax.mail.MessagingException: 501 Syntactically invalid HELO argument(s)
    After hunting around for a while I came across references to doing this:
    props.put( "mail.smtp.localhost", "localhost" )
    So I tried it, and it works!
    I'm happy about that, but I would like to find out why? I just cannot seem to find an answer anywhere.
    I run Windows XP, and my hosts file has not been changed - localhost is still there, as shipped. When I call this:
    InetAddress.getLocalHost().getHostName()
    I get the $COMPUTERNAME value for my PC which happenes to be "HARRY_PC".
    My real concern is what will happen when I deploy my application to other machines - is this little 'hack' likely to break things?
    Hmm...
    Many thanks!
    Harry Mantheakis
    London, UK

    Thanks for that link.
    I had actually looked at it earlier, and next to the 'mail.smtp.localhost' property it reads:
    Local host name. Defaults to InetAddress.getLocalHost().getHostName(). Should not normally need to be set if your JDK and your name service are configured properly.
    Which begs the question: how should my JDK and/or my name service be configured?
    I am sorry to say that I have no idea what JDK configurations to consider, and I do not think a name service is used in my simple test application.
    Regards
    Harry Mantheakis
    London, UK

  • Mail settings for Guided Procedures

    Hi,
    I'm having problems having GP send mails.
    The settings in the GP Administration are correct. I can send test mails to myself without problems, and did the setup that is described here: [Re: Guided Procedures - set mail smtp host]
    Also, I'm sure that my user has an e-Mailaddress and the like, I've set it up properly on R3. Also, when trying to send a mail to a static address (just give it as a value) it still generates problems.
    Now when I go to the log, I get these errors, which are odd, considering mail.sap.org is NOT the SMTP server I set up!!
    Unknown SMTP host: mail.sap.corp
    javax.mail.MessagingException: Unknown SMTP host: mail.sap.corp;
      nested exception is:
    java.net.UnknownHostException: mail.sap.corp
    The question is fairly simple: Where does it say that the SMTP server is that? It's certainly not in Administration > Administer BMF > Clients as it's set correctly there!
    Help would be, as always, greatly appreciated!
    Frederik-Jan

    Hi,
    So, to start the Config Tool, double click the configtool script file from <SAP_install_dir>/<system_name>/<instance_name>/j2ee/configtool directory.
    When you open it, navigate to cluster-data -> template – <name of template> -> instance – <name of instance>  -> services  -> caf/eu/gp/model.
    The template represents the usage type installed on your server (for example, EP). It consists of one or more instances that can be configured in a different way.
    Next, modify the required system parameters (in your case smtp.server and smtp.service_user_mail) :
    a. On the Service properties screen, select a parameter from the table.
    b. In the Custom value field, enter a value for the parameter.
    c. Choose Set.
    The new value appears in the Value column.
    In the Template value field, you can see the default value (if any) for the parameter you have selected. You can restore the default template value for any parameter by choosing Restore to Template.
    So here is the documentation regarding the Config tool as a whole:
    http://help.sap.com/saphelp_nwce10/helpdata/en/e8/f48b33f9a3423c9e688dfa56330e79/content.htm
    Hope that helps
    Greets,
    Petra

  • Javax.mail.MessagingException: Could not connect to SMTP host:

    here is a part of my code
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class Mail {
    /** Creates a new instance of PostMail */
    public Mail() {
    public void postMail( String recipients[ ], String subject, String message , String from) throws MessagingException
    boolean debug = false;
    //Set the host smtp address
    Properties props = new Properties();
    props.put("mail.smtp.host", "smtp."_____".com");
    // create some properties and get the default Session
    Session session = Session.getDefaultInstance(props, null);
    session.setDebug(debug);
    // create a message
    Message msg = new MimeMessage(session);
    // set the from and to address
    InternetAddress addressFrom = new InternetAddress(from);
    msg.setFrom(addressFrom);
    InternetAddress[] addressTo = new InternetAddress[recipients.length];
    for (int i = 0; i < recipients.length; i++)
    addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Optional : You can also set your custom headers in the Email if you Want
    msg.addHeader("MyHeaderName", "myHeaderValue");
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/plain");
    Transport.send(msg);
    Here is the exception i rec'vd
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.google.com, port: 25;
    nested exception is:
    java.net.ConnectException: Connection refused: connect
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
    at javax.mail.Service.connect(Service.java:275)
    at javax.mail.Service.connect(Service.java:156)
    at javax.mail.Service.connect(Service.java:105)
    at javax.mail.Transport.send0(Transport.java:168)
    at javax.mail.Transport.send(Transport.java:98)
    at Mail.postMail(Mail.java:45)
    at ArchMain.<init>(ArchMain.java:30)
    at ArchMain$6.run(ArchMain.java:360)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
    ... 17 more

    package MailDao;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    import java.text.*;
    import java.text.DateFormat.* ;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.activation.*;
    import javax.mail.search.*;
    import java.util.Vector.*;
    import java.sql.*;
    public class SendMail {
    String SMTP_HOST_NAME = "smtp.techpepstechnology.com";//smtp.genuinepagesonline.com"; //techpepstechnology.com";
    String SMTP_AUTH_USER = "[email protected]"; //[email protected]"; //techpeps";
    String SMTP_AUTH_PWD = "demo"; //techpeps2007";
    public void postMail( String recipients[ ], String subject,
    String message , String from,String msgType) throws MessagingException {
    boolean debug = false;
    Properties props = System.getProperties();
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.host", SMTP_HOST_NAME);
    props.put("mail.smtp.auth", "true");
    Authenticator auth = new SMTPAuthenticator();
    Session session = Session.getInstance(props, auth);
    session.setDebug(debug);
    // create a message
    MimeMessage msg = new MimeMessage(session);
    // MimeMessage mimemessage = new MimeMessage(simplemailuser.getSession());
    // set the from and to address
    InternetAddress addressFrom = new InternetAddress(from);
    msg.setFrom(addressFrom);
    InternetAddress[] addressTo = new InternetAddress[recipients.length];
    for (int i = 0; i < recipients.length; i++) {
    addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    if(msgType.equalsIgnoreCase("")) {
    //mimemessage.setText(s4);
    msg.setContent(message, "text/plain");
    else {
    MimeBodyPart textBodyPart = new MimeBodyPart();
    textBodyPart.setText(message);
    MimeBodyPart fileBodyPart = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(msgType);
    fileBodyPart.setDataHandler(new DataHandler(fds));
    fileBodyPart.setFileName(fds.getName());
    //step:5 create the multipart/container to hold the part
    Multipart container = new MimeMultipart();
    container.addBodyPart(textBodyPart);
    container.addBodyPart(fileBodyPart);
    //step:6 add the multipart to the actual message
    msg.setContent(container);
    try{
    Transport transport=session.getTransport("smtp");
    transport.connect();
    transport.send(msg);
    transport.close();
    }catch(Exception e) {
    e.printStackTrace();
    private class SMTPAuthenticator extends javax.mail.Authenticator {
    public PasswordAuthentication getPasswordAuthentication() {
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    return new PasswordAuthentication(username, password);
    public static void main(String arg[]) {
    SendMail sm = new SendMail();
    String[] s ={"[email protected]"};
    try{
    sm.postMail(s,"hello","This is testing of mail","[email protected]","");
    catch(Exception e)
    e.printStackTrace();
    //sm.sendMsg("demo", "demo");
    System.out.println("Mail Sent");
    i also got the follwing error this code work fine in jcreator but i used this in netbeans it throws a exception
    plz.....help
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.techpepstechnology.com, port: 25;
    nested exception is:
    java.net.ConnectException: Connection refused: connect
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867)
    Mail Sent
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156)
    at javax.mail.Service.connect(Service.java:256)
    at javax.mail.Service.connect(Service.java:135)
    at javax.mail.Service.connect(Service.java:87)
    at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:93)
    at MailDao.SendMail.postMail(SendMail.java:86)
    at MailDao.SendMail.main(SendMail.java:110)

  • Javax.servlet.ServletException: Unknown SMTP host

    Hi
    I am using tomcat and trying to send emails. I keep getting a javax.servlet.ServletException: Unknown SMTP host error.
    I initially thought the problem was with the line: props.put("mail.smtp.host", "makethegrade.co.za"); But i checked the smtp info with the guys i'm hosing with and they said its right
    I am currently setting the fields manually, so it can't be a problem with passing data around in the webpage
    In my WEB-INF/lib i have jaf-1.0.2 and javamail-1.4.1 (i.e. mail.jar and activation.jar)
    The code for my mailer bean is:
    package mailer;
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    public final class MailerBean extends Object implements Serializable {
         /* Bean Properties */
         private String to = null;
         private String from = null;
         private String subject = null;
         private String message = null;
         public static Properties props = null;
         public static Session session = null;
         static {
              /*     Setting Properties for STMP host */
              props = System.getProperties();
              props.put("mail.smtp.host", "makethegrade.co.za");
              session = Session.getDefaultInstance(props, null);
         /* Setter Methods */
         public void setTo(String to) {
              this.to = to;
         public void setFrom(String from) {
              this.from = from;
         public void setSubject(String subject) {
              this.subject = subject;
         public void setMessage(String message) {
              this.message = message;
         /* Sends Email */
         public void sendMail() throws Exception {
              if(!this.everythingIsSet())
                   throw new Exception("Could not send email.");
              try {
                   MimeMessage message = new MimeMessage(session);
                   message.setRecipient(Message.RecipientType.TO,
                        new InternetAddress(this.to));
                   message.setFrom(new InternetAddress(this.from));
                   message.setSubject(this.subject);
                   message.setText(this.message);
                   Transport.send(message);
              } catch (MessagingException e) {
                   throw new Exception("Caught in sendMail" + e.getMessage());
         /* Checks whether all properties have been set or not */
         private boolean everythingIsSet() {
              if((this.to == null) || (this.from == null) ||
                 (this.subject == null) || (this.message == null))
                   return false;
              if((this.to.indexOf("@") == -1) ||
                   (this.to.indexOf(".") == -1))
                   return false;
              if((this.from.indexOf("@") == -1) ||
                   (this.from.indexOf(".") == -1))
                   return false;
              return true;
    }and the error i get is:
    org.apache.jasper.JasperException: Exception in JSP: /processingPages/mailer.jsp:17
    14:           mailer.setFrom("[email protected]");
    15:           mailer.setSubject("mailer test");
    16:           mailer.setMessage("TEst test test");
    17:           mailer.sendMail();
    18:           
    19:      %>
    20: </jsp:useBean>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    javax.servlet.ServletException: Unknown SMTP host: mail.yourisp.com
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
         org.apache.jsp.processingPages.mailer_jsp._jspService(mailer_jsp.java:89)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    java.lang.Exception: Unknown SMTP host: mail.yourisp.com
         mailer.MailerBean.sendMail(MailerBean.java:54)
         org.apache.jsp.processingPages.mailer_jsp._jspService(mailer_jsp.java:67)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    Tomcat logs give:
    Jul 15, 2009 10:50:35 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.Exception: Unknown SMTP host: mail.yourisp.com
         at mailer.MailerBean.sendMail(MailerBean.java:54)
         at org.apache.jsp.processingPages.mailer_jsp._jspService(mailer_jsp.java:67)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
         at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
         at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Thread.java:619)
    If anyone needs any other details feel free to ask.
    Any help or any pointers to a place to find a solution would be deeply appreciated
    Thanks

    All I can see is that you are running this in a web application. In most web application containers there's a place where you configure your mail providers and mail sessions. You seem to be ignoring that (you aren't using JNDI to get a session for example) but you are getting the default instance, so perhaps that uses that configuration anyway.

  • "mail.smtp.from" is not working for me

    There seem to be zero other posts like this, so I'm probably just doing something obviously dumb,
    but for me, setting the mail.smtp.from property seems to have no effect.
    The debug output shown below says to me that while the property has been set, the transport is using the From address not the value of the property.
    Any suggestions for what might be causing this?
    //set:
    Properties prop = new Properties();
    prop.put("mail.smtp.host", SMTPServers ); //see below
    prop.put("mail.smtp.from","[email protected]");
    sessions{i} = Session.getInstance(prop, null);
    //use:
    System.out.println("(session mail.smtp.from is '" + sessions{i}.getProperty("mail.smtp.from") + "')");
    sessions{i}.setDebug(true);
    mimeMsg = generateMimeMsg(msg, sessions{i});
    Transport.send(mimeMsg);
    //the console output:
    (session mail.smtp.from is '[email protected]')
    DEBUG SMTP SENT: mail from: <[email protected]>
    //note - Looks like this forum's software is grabbing my square brackets,
    so {i} in this post stands for opensquarebracket i closesquarebracket...

    I haven't read the FAQ, at least not lately. I'm just stating an interpretation of the behaviour that you described.
    Normally, system properties are used to specify defaults that can be overridden. It doesn't make sense to me to have to set a system property to "override" something that you do normally in your code. As a designer, it's obvious to me that the system property should be the default value for "from" and it should be possible to override that on a message-by-message basis by explicitly setting (and thus overriding) the from-address. And you confirm that it really does work that way. I'm not surprised at all. I would suggest that if the FAQ doesn't say that, then it needs to be fixed.

  • SMTP host

    im trying to make a class that can send email messages, my problem is i dont know what an SMTP host is, can anyone tell me, and can anyone recommend some SMTP hosts that works and doesnt reject my connections, like a generic or free SMTP host

    Hi,
    Please find an sample code below from apple.com,on how to send email from servlet.
    You can also find this code at http://developer.apple.com/internet/macosx/mailjava.html.
    // Copyright � 2001 by Apple Computer, Inc., All Rights Reserved.
    // You may incorporate this Apple sample code into your own code
    // without restriction. This Apple sample code has been provided "AS IS"
    // and the responsibility for its operation is yours. You may redistribute
    // this code, but you are not permitted to redistribute it as
    // "Apple sample code" after having made changes.
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class mail extends HttpServlet {
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException
    PrintWriter writer = response.getWriter();
    response.setContentType("text/html");
    writer.println("<html><head><title>Mail Example</title></head>");
    writer.println("<body bgcolor=\"white\">");
    writer.println("<h1>Mail Example</h1>");
    ///////// set this variable to be your SMTP host
    String mailHost = "your.smtp.server";
    ///////// set this variable to be your desired email recipient
    String to = "[email protected]";
    // these variables come from the mail form
    String from = request.getParameter("from");
    String subject = request.getParameter("subject");
    String body = request.getParameter("body");
    if ((from != null) && (to != null) && (subject != null) && (body != null)) // we have mail to send
    try {
    //Get system properties
    Properties props = System.getProperties();
    //Specify the desired SMTP server
    props.put("mail.smtp.host", mailHost);
    // create a new Session object
    Session session = Session.getInstance(props,null);
    // create a new MimeMessage object (using the Session created above)
    Message message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.setRecipients(Message.RecipientType.TO, new InternetAddress[] { new InternetAddress(to) });
    message.setSubject(subject);
    message.setContent(body, "text/plain");
    Transport.send(message);
    // it worked!
    writer.println("<b>Thank you. Your message to " + to + " was successfully sent.</b>");
    } catch (Throwable t) {
    writer.println("<b>Unable to send message: <br><pre>");
    t.printStackTrace(writer);
    writer.println("</pre></b>");
    else
    // no mail to send. print a blank mail form
    writer.println("<form action=\"/mine/mail\" method=\"POST\">");
    writer.println("<table border=\"0\">");
    writer.println("<tr><td>Message From: </td><td><input type=\"text\" name=\"from\"></td></tr>");
    writer.println("<tr><td>Subject: </td><td><input type=\"text\" name=\"subject\"></td></tr>");
    writer.println("<tr><td valign=\"top\">Message: </td><td><textarea name=\"body\" rows=\"10\" cols\"40\"></textarea></td></tr>");
    writer.println("<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" value=\"Send\"></td></tr>");
    writer.println("</table>");
    writer.println("</form>");
    writer.println("</body>");
    writer.println("</html>");
    // doGet() just calls doPost()
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException
    doPost(request, response);
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Micro Systems
    http://www.sun.com/developers/support/

  • Smtp host name

    can anybody tell me if i set the SMTP server host name from .lh setup after loading all the users and objects into the repository ?
    will this have any affect on the data or any other unforseen problems?
    Thanks for your help.
    G

    the prod system is built and now i have to set the SMTP host before roll-out.
    Will there be any problems if i execute init.xml after configuring SMTP host??

  • Java mail - unknown host

    hi
    I am quite new to java.. I have written some code that requests user input to create a mail then should be sent.
    I am using my companies smtp address to send it through but i keep getting the exception unknown host, however when a colleague tries to run my code on there pc on the same network it works correctly. Really impressed my code works but i want to play with it and add things to it and cannot!
    Is there any settings or rights i should have on my pc to enable me to get this code to work. Also does anyone know of any external smtp hosts i can send mails from.
    I can ping the smtp from dos and that works but will not recognise in code
    thanks
    A

    import javax.mail.Address;
    import javax.mail.Session;
    import javax.mail.Authenticator;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.AddressException;
    import javax.mail.internet.MimeMessage;
    import java.io.*;
    import java.util.Properties;
    * Created by IntelliJ IDEA.
    * User: ai011767
    * Date: Apr 8, 2003
    * Time: 3:24:57 PM
    * To change this template use Options | File Templates.
    public class JavaMail {
    Address recipientEmail;
    String ccAddress;
    Address senderAddress;
    String subject;
    String message;
    Properties p;
    String host;
    //*Address replyTo;
    public JavaMail(String propertiesPath) {
    try {
    FileInputStream fis = new FileInputStream(propertiesPath);
    p = new Properties();
    p.load(fis);
    host = p.getProperty("host");
    System.err.println(host);
    catch (Exception e) {
    System.out.println("file not found");
    public void mail(Address recipientAddress, Address senderAddress, Address reply[], String subject, String message) {
    p.put("mail.smtp.host", host);
    try {
    Session s = Session.getInstance(p, null);
    MimeMessage mess = new MimeMessage(s);
    mess.setText(message);
    mess.setSubject(subject);
    Address a = new InternetAddress();
    mess.addRecipient(MimeMessage.RecipientType.TO,recipientAddress);
    mess.setFrom(senderAddress);
    mess.setReplyTo(reply);
    Transport.send(mess);
    catch (Exception e) {
    e.printStackTrace(); //To change body of catch statement use Options | File Templates.
    public void doWork() {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    try {
    System.out.println("Type in recipents e-mail Address");
    String strRecipientEmail = in.readLine();
    Address recipientAddress = new InternetAddress(strRecipientEmail);
    System.out.println("Type in reply address");
    String strreplyTo =in.readLine();
    Address replyTo = new InternetAddress(strreplyTo);
    Address[] reply = new Address[1];
    reply[0] = replyTo;
    System.out.println("Type in Senders E-mail Address");
    String strSenderAddress = in.readLine();
    Address senderAddress = new InternetAddress(strSenderAddress);
    System.out.println("Type in Subject");
    subject = in.readLine();
    System.out.println("Type in Message");
    message = in.readLine();
    this.mail(recipientAddress, senderAddress, reply, subject, message);
    catch (Exception e) {
    System.out.println("No Line to read");
    public static void main(String args[]) {
    JavaMail jm = new JavaMail(args[0]);
    jm.doWork();

  • Getting nested exception(Unknown SMTP host)

    hello
    i have written a simple mailclient.i am running the following programme from my local machine which is under proxy server.
    public class MailExample {
    public static void main (String args[]) throws Exception {
    String host = "mail.ab";
    String from = "[email protected]";
    String to = "[email protected]";
    Properties props = System.getProperties();
    props.put("mail.smtp.host", host);
    Session session = Session.getDefaultInstance(props, null);
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO,
    new InternetAddress(to));
    message.setSubject("Hello JavaMail");
    message.setText("Welcome");
    Transport.send(message);
    This host is some other machine.
    i am getting nested exception as unknown SMTP host.
    please help.
    thanks in advance

    Unknown host: it is telling you that it can't find the host you told it to look for. Either you gave it the name of a system that does not exist, or that system does not have an SMTP host running on it. I would guess the first reason, as "mail.ab" does not look right to me. (What country is "ab" and why is there only one mail server in the entire country?)

  • Smtp.host error

    i got some error msg
    error - javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com; nested exception is: java.net.UnknownHostException: smtp.gmail.com
    code                Properties props = new Properties();
                    props.put("mail.smtp.host", "smtp.gmail.com");
                    props.put("mail.smtp.port", "465");
                    props.put("mail.user","dineshjweerakkody");
                    Session mailSession = Session.getDefaultInstance(props, null);
                    MimeMessage msg = new MimeMessage(mailSession);
                    msg.setFrom(new    InternetAddress(request.getParameter("mymail"),request.getParameter("myname")));
                    msg.addRecipient(Message.RecipientType.TO,new InternetAddress(request.getParameter("resmail"),request.getParameter("resname")));
                    msg.setSubject(request.getParameter("subject"));
                    msg.setText(request.getParameter("message"));
                    Transport.send(msg);
                    response.sendRedirect("success.jsp");
                    Please help me...............

    See the JavaMail FAQ for tips on debugging connection problems.

  • Unknown smtp host

    Is it necessary to have Exchange server on the pc in which u r making a web application
    having email option...?
    Tomcat is giving this error although i have provided the mail server ip as follows...
    Properties props = new Properties();
    props.put("mail.smtp.host", 192.168.0.2);
    Session s = Session.getInstance(props,null);
    Urgent....

    Help me please.........

Maybe you are looking for

  • Oracle 9i Lite Installation Issue

    Hi all, I have tried installing Oracle 9i Lite on Win Server 2000 and also on Windows XP. Installation seems to get stuck while it's installing Mobile Server Repository. Can anybody guide me please and let me know what I am doing wrong other then fol

  • Mavericks Boot time/memory usage

    Has anyone expierencing?> Currently using my mac pro 2012 june, after update my boot time increased up to 3.5 minutes (previously 45-60 sec.) And also really anoying usage of the memory it seems that mac all the time doing something and got less than

  • Initial setup probs - importing data from older imac or time machine backup

    i just bought a new imac and in the initial install, trying to import the data from older imac. i've tried both firewire and ethernet direct to the older imac (it says it has identified it) and to an external hard drive containing my time machine bac

  • How to add xyz.html page to swing container?

    Hi, can any one help me to embed a html file in swing container. i am new to swings. Thanks, Sai.

  • Problemas desde que instalé iOS.6

    hola, desde que actualicé mi iPad2 tengo varios problemas: va mucho más lento, falla el botón, se cuelga, etc. Le ha pasado a alguien más?