Javax.mail.NoSuchProviderException: No provider for SMTP

whats the meaning of the following exception javax.mail.NoSuchProviderException: No provider for SMTP
can any one help.
thanks and regards.

This exception is thrown when Session attempts to instantiate a Provider (e.g. (com.sun.mail.smtp.SMTPTransport)) that doesn't exist.
Check if the smtp.jar is in the classpath.

Similar Messages

  • Javax.mail.NoSuchProviderException: No provider for Address type: rfc822

    Use JavaMail 1.2 send Mail Errors:
    "javax.mail.NoSuchProviderException: No provider for Address type: rfc822"
    Why?
    Can you supply a stmp server name?
    Thanks.

    [skyask],
    Honestly, I am not very sure where the JVM is located for the WebLogic 5.1 application server. You probably need to contact your local BEA rep office for support.
    The jar file for the JavaMail API is either mail.jar (contains the API libraries) or mailapi.jar (contains the API libraries and all the providers), so I guess if you search the WebLogic directories, you might be able to locate it.
    It also depends on the OS platform that you are working on and the WebLogic installation documentation may give a clue or two where the .jar files for optional Java packages are found.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Javax.mail.NoSuchProviderException: No provider for ifs1

    Similar to the question found in William Troper's thread run on
    November 1. We had mail code working fine, changed some
    variables to incorporate a migratable build and have now lost
    our mail functionality.
    We have followed William's advice by renaming all of Sun's Mail
    classes in the ~\9ifs\settings\META-INF directory and still no
    joy.
    Does anyone have any ideas of what is causing a "No provider for
    ifs1" error message?
    Cheers,
    Susan

    Hi Scott,
    These (among other) items are in my CLASSPATH (printed out at
    runtime)
    /projects/intranet/lib/mail.jar:/app/oracle/product/9.0.1S/9ifs/s
    ettings/META-INF:
    Here is my stack. Also, the code is EXACLTY the same between
    what was working and what is now not. Thanks for looking in to
    this:
    javax.mail.NoSuchProviderException: No provider for ifs1
         at javax.mail.Session.getProvider(Session.java:249)
         at javax.mail.Session.getTransport(Session.java:442)
         at javax.mail.Session.getTransport(Session.java:423)
         at com.mim.intranet.utils.MessageFactory.sendMesg
    (MessageFactory.java:130)
         at
    com.mim.intranet.unittest.utils.MessagingUT.testValidMesg
    (MessagingUT.java:56)
         at java.lang.reflect.Method.invoke(Native Method)
         at junit.framework.TestCase.runTest(TestCase.java:166)
         at junit.framework.TestCase.runBare(TestCase.java:140)
         at junit.framework.TestResult$1.protect
    (TestResult.java:106)
         at junit.framework.TestResult.runProtected
    (TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:131)
         at junit.framework.TestSuite.runTest(TestSuite.java:173)
         at junit.framework.TestSuite.run(TestSuite.java:168)
         at junit.framework.TestSuite.runTest(TestSuite.java:173)
         at junit.framework.TestSuite.run(TestSuite.java:168)
         at junit.textui.TestRunner.doRun(TestRunner.java:74)
         at junit.textui.TestRunner.run(TestRunner.java:200)
         at com.mim.intranet.unittest.AllTests.main
    (AllTests.java:40)
    4887 [main] WARN com.mim.intranet.unittest.utils.MessagingUT -
    Sending Exception
    F
    Time: 4.898
    There was 1 failure:
    1) testValidMesg(com.mim.intranet.unittest.utils.MessagingUT)
    junit.framework.AssertionFailedError: Failed sending message :
    com.mim.intranet.exception.IntranetException: Failed sending
    message encountered unexpected exception
    Wrapped Exception is : javax.mail.NoSuchProviderException: No
    provider for ifs1
         at
    com.mim.intranet.unittest.utils.MessagingUT.testValidMesg
    (MessagingUT.java:63)
         at com.mim.intranet.unittest.AllTests.main
    (AllTests.java:40)
    FAILURES!!!
    Tests run: 1, Failures: 1, Errors: 0
    com.mim.intranet.exception.IntranetException: Failed sending
    message encountered unexpected exception
    Wrapped Exception is : javax.mail.NoSuchProviderException: No
    provider for ifs1
         at com.mim.intranet.utils.MessageFactory.sendMesg
    (MessageFactory.java:187)
         at
    com.mim.intranet.unittest.utils.MessagingUT.testValidMesg
    (MessagingUT.java:56)
         at java.lang.reflect.Method.invoke(Native Method)
         at junit.framework.TestCase.runTest(TestCase.java:166)
         at junit.framework.TestCase.runBare(TestCase.java:140)
         at junit.framework.TestResult$1.protect
    (TestResult.java:106)
         at junit.framework.TestResult.runProtected
    (TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:131)
         at junit.framework.TestSuite.runTest(TestSuite.java:173)
         at junit.framework.TestSuite.run(TestSuite.java:168)
         at junit.framework.TestSuite.runTest(TestSuite.java:173)
         at junit.framework.TestSuite.run(TestSuite.java:168)
         at junit.textui.TestRunner.doRun(TestRunner.java:74)
         at junit.textui.TestRunner.run(TestRunner.java:200)
         at com.mim.intranet.unittest.AllTests.main
    (AllTests.java:40)
    -----------------------------------------------------------------

  • Javax.mail.NoSuchProviderException: No provider for imap

    Dear All,
    Currently i am running weblogic 5.1 for my javamail Application/WebMail. I have copied mail.jar, activation.jar,pop3.jar,imap.jarmailapi.jar in weblogic\jre1_2\jre\lib\ext folder. I get "javax.mail.NoSuchProviderException: No provider " exception when i run jsp page.
    Balaji

    It looks like weblogic 5.1 (atleast the mail.jar) doesn't contain the pop3.jar, I guess. Check whether you can include pop3.jar in ur classpath..
    -Narasimha

  • Es1javax.mail.NoSuchProviderException: No provider for pop3 ?

    What is wrong with this code?Do i need to specify a Provider? Where and when?
    String host = ...;
    String username = ...;
    String password = ...;
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session ses = Session.getDefaultInstance(props, null);
    // Get the store
    Store store = ses.getStore("pop3");
    store.connect(host, username, password);
    // Get folder
    Folder folder = store.getFolder("INBOX");
    folder.open(Folder.READ_ONLY);
    // Get directory
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++) {
    System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    // Close connection
    folder.close(false);
    store.close();
    Thank you all
    Dena

    [denapuerta],
    The exception that you are getting may mean that the java runtime environment that you are running your class file code on does not seem to have the JavaMail .jar files installed correctly. The JavaMail API packages are optional packages and must be downloaded and added to the J2SE runtime environment before such an application can run successfully.
    From the exception message, looks like either the pop3.jar file or the mailapi.jar (which contains all the JavaMail API and provider library files) is missing from the CLASSPATH of the JRE or not installed onto the <JRE install directory>/jre/lib/ext directory.
    What is wrong with this code?Do i need to specify a
    Provider? Where and when?I assume you obtained the code from the jGuru tutorial on JavaMail (which is a good tutorial to start off with). I have tested the code before and it works perfectly fine.
    String host = ...;
    String username = ...;
    String password = ...;
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session ses = Session.getDefaultInstance(props, null);
    // Get the store
    Store store = ses.getStore("pop3");
    store.connect(host, username, password);
    // Get folder
    Folder folder = store.getFolder("INBOX");
    folder.open(Folder.READ_ONLY);
    // Get directory
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++) {
    System.out.println(i + ": " +
    + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    // Close connection
    folder.close(false);
    store.close();
    Thank you all
    Dena
    You might also want to check the username/password and hostname string entries to see if you are really connecting to the POP3 mail server correctly.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Javax.mail.NoSuchProviderException

    Hi!
    I have written a java program for sending mail. I 'm getting these error msgs when i run the program. I have used Netbeans 5.5 ,so I have JavaMail jar files and Java Activation Jar file associated with my web application already. can u please help me?
    here is the error msg
    Messaging Exception Occured:-->javax.mail.NoSuchProviderException: No provider for smtp.gmail.com javax.mail.NoSuchProviderException: No provider for smtp.gmail.com at javax.mail.Session.getProvider(Session.java:455) at javax.mail.Session.getTransport(Session.java:650) at javax.mail.Session.getTransport(Session.java:631) at Mailtest.MailClient.send(MailClient.java:92) at Mailtest.MailClient.doGet(MailClient.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844) at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287) at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    And here goes my code
    package Mailtest;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.servlet.ServletException;
    import javax.mail.Authenticator;
    import javax.mail.PasswordAuthentication;
    import javax.mail.NoSuchProviderException;
    * @author mitalib
    * @version
    public class MailClient extends HttpServlet {
    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head>");
    out.println("<title>First Servlet</title>");
    out.println("</head>");
    out.println("<body bgcolor=\"white\">");
    out.println("<h1>Hello welcome to Mailing Service </h1>");
    out.println("<h2>Sending mail </h2>");
    try
    send("[email protected]", "[email protected]", "First Program ", "First Mail send by Servlet");
    out.println("\nMail send successfully-----");
    catch(AddressException ae)
    out.println("Address Exception Occured-->"+ae.getMessage());
    ae.printStackTrace(out);
    catch(MessagingException me)
    out.println("Messaging Exception Occured:-->"+me);
    me.printStackTrace(out);
    out.println("</body>");
    out.println("</html>");
    public void send(String s, String s1, String s3, String s4)
    throws AddressException, MessagingException
    String strHost = "smtp.gmail.com";
    Transport trans = null;
    int intPort =465;
              Address recp[];
              Address from = new InternetAddress(s);
              recp = new InternetAddress[1];
              recp[0] = new InternetAddress(s1);
              //recp[1] = new InternetAddress(s2);
    Properties prop = new Properties();
         prop.put("mail.transport.protocol","smtp");
    prop.put("mail.smtp.host", strHost);
    prop.put("mail.smtp.port", ""+intPort);
    prop.put("mail.smtps.auth ","true ");
    prop.put("mail.smtp.starttls.enpable","true");
    SMTPAuthenticator auth = new SMTPAuthenticator("[email protected]", "XXXXXXXXXX");
    Session session = Session.getDefaultInstance(prop, auth);
    session.setDebug(true);
              trans = session.getTransport(strHost);
              trans.connect(strHost,"[email protected]","xxxxxxxxxx");
              MimeMessage msg = new MimeMessage(session);
    msg.setFrom(from);
    msg.addRecipient(Message.RecipientType.TO, recp[0]);
    msg.setSubject(s3);
    msg.setText(s4);
              trans.sendMessage(msg,recp);
    class SMTPAuthenticator extends Authenticator
    public SMTPAuthenticator(String s, String s1)
    user = s;
    password = s1;
    public PasswordAuthentication getPasswordAuthentication()
    return new PasswordAuthentication(user, password);
    private String user;
    private String password;
    Please Help.
    Thanks in advance

    String strHost = "smtp.gmail.com";...
              trans = session.getTransport(strHost);You figured out that the above line is the line that caused the
    problem, right?
    And then after reading the javadocs that say:
    Get a Transport object that implements the specified protocol.
    You just couldn't figure out why "smtp.gmail.com" was not a valid
    protocol, right?
    The protocol name is "smtp". "smtp.gmail.com" is a host name.

  • Exception in thread "main" javax.mail.NoSuchProviderException: invalid prov

    HI,
    I am trying to read mails from my inbox i amgetting the ErrorC:\javamail>java
    Readmail
    Exception in thread "main" javax.mail.NoSuchProviderException: No provider for IMAP
            at javax.mail.Session.getProvider(Session.java:455)
            at javax.mail.Session.getStore(Session.java:530)
            at javax.mail.Session.getStore(Session.java:510)
            at Readmail.main(Readmail.java:24)My Code is    {
    String host = "hostname";
    String username = "user";
    String password = "password";
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session session = Session.getDefaultInstance(props,null);
    // Get the store
    Store store = session.getStore("IMAP");
    store.connect(host, username, password);
    // Get folder
    Folder folder = store.getFolder("Inbox");
    folder.open(Folder.READ_ONLY);
    // Get directory
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++)
       System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    // Close connection
    folder.close(false);
    store.close();
    I have also tried POP3 and MIME and SMTP
    Can anyone help me Thanks

    hi bshannon,
    I am getting the same error for others but for pop3 the error is as below
    Exception in thread "main" javax.mail.MessagingException: Connect failed;
      nested exception is:
            java.net.ConnectException: Connection refused: connect
            at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148)
            at javax.mail.Service.connect(Service.java:275)
            at javax.mail.Service.connect(Service.java:156)
            at Readmail.main(Readmail.java:25)
    Caused by: java.net.ConnectException: Connection refused: connect
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
            at java.net.Socket.connect(Socket.java:452)
            at java.net.Socket.connect(Socket.java:402)
            at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
            at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
            at com.sun.mail.pop3.Protocol.<init>(Protocol.java:81)
            at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:201)
            at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:144)
            ... 3 more

  • NoSuchProviderException: No provider for Address type: rfc822

    this is the stack : No provider for Address type: rfc822
    javax.mail.NoSuchProviderException: No provider for Address type: rfc822
         at javax.mail.Session.getTransport(Session.java:475)
         at javax.mail.Transport.send0(Transport.java:154)
         at javax.mail.Transport.send(Transport.java:80)
    I know what it means....but why it happens?
    please help!!!!!!!!!!!!

    [joyrex75],
    I suspect that the CLASSPATH settings on the machine that you are using is pointing only to the mail.jar file. If you are setting up the Java runtime environment that includes only the mail.jar file, your runtime environment will not have the mail providers such as the POP3, IMAP or SMTP .jar files.
    Point your CLASSPATH to the mailapi.jar file which contains the JavaMail APIs and all the mail protocol providers that SUN supports i.e. POP3, IMAP and SMTP. Try to execute the java command on your JavaMail application and see if throws out the Exception again.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Error javax.mail.NoSuchProviderException: pop3

    When my application runs within JBuilder everything works fine. But with a native executable I get the following error: javax.mail.NoSuchProviderException: pop3.
    The Dependencies property for JavaMail=Include Dependencies. When set to Include All the native executable not even starts.
    What is wrong here?
    Greetings,
    Hans

    I had some difficulty looking for a solution to this problem.
    All solutions 'beat about the same bush' but I couldnt get any of them to work.
    My advice is dont give up- the problem will eventually be resolved.
    How I resolved it was to assume, ( rightly) that when working inside JBuilder, it is not using the machine classpath to find library files such as mail.jar, but looking at its own library of jar files to find mail.jar.
    I tracked down the JBuilder mail.jar in the /lib dir and copied out all classes beginning with POP... also all non Class files eg proviider and map files , the mailcap file and all files beginning with SUN, and also the Manifest file and placed them in a separate folder on the hard drive.
    I then made an application jar definition from my JBuilder application but told it NOT to make a manifest file.I then right clicked on the build file, and selected properties/content and added in all files from the directory that I previously made containing the files mentioned above.
    To the Manifest file in that directory I also added the mine Main Class: to tell it where my main class was.
    I then re-built the executable jar file.
    It worked. Just when I was down to pulling out the last tuft of hair.
    Message was edited by:
    1straybullet

  • No provider for smtps

    Hi,
    After installing security updates for CF 8 Enterprise, I'm getting "No provider for smtps" errors when trying to send e-mail to Amazon SES. I also get this error if I try to send from my own server in SSL mode, however, non-SSL mode is working fine. Am I missing an smtps .jar?
    Thank you,
    Walter Hardy

    if the server is configured to use ssl, add usessl="false" to your cfmail tag.

  • I keep getting a message Cannot Get Mail No password provided for "MobileMe"

    I have upgraded to 4S and the phone is functioning properly but I keep getting some error messages.  In Mail, I keep getting the prompt - Cannot Get Mail  No password provided for "MobileMe". Please go to Mail Account Settings and enter a password.
    When I click Settings, I have already removed the "MobileMe" account from my phone & am receiving the MobileMe mail through the iCloud account that is set up.  And that iCloud account is functioning properly. 
    So the Mail is attempting to pull mail from an account I deleted off my iPhone & then when I try to follow the prompts to fix the problem & enter a password, it's no longer there.

    Hello Laurel,
    Thank you for the details of the issue you are experiencing with your email account on your iPhone.  I recommend the following article to troubleshoot the issue you described:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Why does Mail 6 keep switching on SSL for SMTP?

    After setting up a POP3 account in Mail 6, with SSL for SMTP disabled, it works fine for a short while, but then suddenly Mail decides to enable the SSL option which of course causes problems sending mail from the account. There is no SSL for this particular email account. When I try to disable the setting it turns off and then immediately turn itself on again. How can I turn it off, does anyone know?

    Thanks William.  I've done that, now will see if the problem pops back up.  It did report that no errors were found.
    I've also seen in the Keychain first aid that it's possible to sort of shuffle the keychain sideways and start again, would that be a sensible step if this doesn't work?  I understand that means re-entering in all my passwords for various services, which is a pain, but far less painful than having to randomly re-generate Gmail passwords

  • Javax.mail.message.recipienttype not found

    Hi,
    I use jdev10g and i want to send a mail message.
    Here's a little snip of my class for sending a mail.
    Jdeveloper gives me a error about Message.RecipientType.TO.
    "Member 'RecipientType' not found in javax.mail.Message"
    import javax.mail.Message;
    message.addRecipient(Message.RecipientType.TO,
    new InternetAddress(to));
    I've installed the javamail-1.1.3 API.
    In my project properties -> libraries, i've added this library with the correct path to the jar file.
    I'm sure that this API have this Message class.
    What is going wrong, have i missed something ???
    Greetings,
    Peter

    Hi! Srikanth,
    1. I checked MailerEJB.deploy under "Dependency Analyzer",
    I checked activation.jar and mail.jar under the J2EE node.
    I did the same for the MailerJSP.deploy.
    2. I used same jdeveloper version and jdk 1.3.1_06.
    3. I did a clean deploy for the ejb and mailerjsp.deploy
    4. I recompiled and run the jpr,
    from the message window, I got:
    C:\jdeveloper\jdk\bin\javaw.exe -ojvm -classpath C:\oc4j\samples\ejb\EJBCallsJSP\classes;C:\oc4j\samples\ejb\EJBCallsJSP;C:\jdeveloper\jdev\lib\jdev-rt.jar;C:\jdeveloper\j2ee\home\lib\activation.jar;C:\jdeveloper\j2ee\home\lib\ejb.jar;C:\jdeveloper\j2ee\home\lib\jaas.jar;C:\jdeveloper\j2ee\home\lib\jaxp.jar;C:\jdeveloper\j2ee\home\lib\jcert.jar;C:\jdeveloper\j2ee\home\lib\jdbc.jar;C:\jdeveloper\j2ee\home\lib\jms.jar;C:\jdeveloper\j2ee\home\lib\jndi.jar;C:\jdeveloper\j2ee\home\lib\jnet.jar;C:\jdeveloper\j2ee\home\lib\jsse.jar;C:\jdeveloper\j2ee\home\lib\jta.jar;C:\jdeveloper\j2ee\home\lib\mail.jar;C:\jdeveloper\j2ee\home\oc4j.jar;C:\jdeveloper\jdbc\lib\classes12.jar;C:\jdeveloper\jdbc\lib\nls_charset12.jar oracle.otnsamples.ejbcallsjsp.mailclient.MailClientSample
    I didn't see any error from this message window.
    5. The no provider for smtp error is prompted from the mail client.
    From above settings and running the application, I couldn't figure out where the error was coming from ?
    Thanks
    David

  • Hello, javax.mail.MessagingException: Unknown SMTP host:

    Hello,
    I am trying to send a mail and use a smtp Server which is located on the internet. I am however behind a firewall and am getting the following exception being thrown:
    javax.mail.MessagingException: Unknown SMTP host:
    This implies that I need to provide some settings for my proxy server. I though to solve this problem I could do the following:
    System.getProperties().put("proxySet", "true");
    System.getProperties().put("http.proxyHost", proxyHost);
    System.getProperties().put("http.proxyPort", proxyport);
    This however does not solve me problem as I still get the above exception. Could someone please give help me. Any suggestions,solutions or ideas as to what the problem might be would be appreciated.
    Thanks much,
    Alex.

    HTTP is not SMTP.
    Your proxy server no doubt allows your system to send
    HTTP traffic to and from the outside world, and using
    that code you posted would allow Java classes to do
    that as well. But HTTP is not SMTP. Ask the network
    people who configured your proxy server if it can act
    as an SMTP proxy, and if so what you have to do to
    use it in that way.Thanks much for your reply. I am however a little confused. Could you explain to me exactly what an SMTP proxy is/does.
    Thanks much,
    Alex.

  • Set up Mail service for SMTP only.

    I wish to set up the Mail service to act as an smtp server only.
    I have FileMaker Server running on this server, on which I am using a plug-in to send mail to my ISP's smtp server. But I am outgrowing my daily sending limits through my ISP (100/day), and would like to run my own smtp server instead.
    I have turned on the smtp mail service and it is running, but I'm not sure what credentials I should use to authenticate when connecting to this smtp server...

    I have turned on the smtp mail service and it is running, but I'm not sure what credentials I should use to authenticate when connecting to this smtp server...
    Why use any?
    If the Filemaker Server is inside your network and this server is just acting as a relay for outgoing mail then you don't need authentication at all. Just tell postfix to trust local networks ("Relay mail from the following networks" in Server Admin and add your internal addresses) and you're set.
    Since the server won't be accepting mail from outside clients or servers that's all you need to do. There's no need to authenticate since the connection is coming from a trusted network.
    If you still do want to use authentication then just provide any username/password combo that is valid for this server. You could even create a dummy account just for this purpose if you prefer.

Maybe you are looking for

  • In DCOMCnfg "Run application on this computer" is grayed out for my application on two Windows 7 machines, but it works fine on all other machines

    We have a COM application that is installed on hundreds of machines around the country.  We have instructions included in our install doc of how to set up DCOMCnfg.  On one machine in the field and one machine in our lab (both happen to be Windows 7

  • [nQSError: 12002] Socket communication error at call=recv: (Number=10038)

    Hi, When I try to run any reports in Oracle Answers I am getting the following error: Odbc driver returned an error (SQLExecDirectW). State: HY000. Code: 10058. NQODBC SQL_STATE: HY000 nQSError: 10058 A general error has occurred. nQSError: 12002 Soc

  • Video Playback Pauses, freezes

    My Video playback (iTunes 6.0.5- G4 Laptop 15" titanium) constantly pauses and freezes at key points during playback. It will make it approx. half way through a show, then start jumping and freezing. Any Suggestions? Thanks for any help

  • Badi---UDM_ITEM_DISP_C

    Hi friends, Can any one help me in getting the below  functionality by using this BADI. Please help in seeing the below requirement. This Business Add-In (BAdI) UDM_WL_ITEM_DISP_C in the component SAP Collections Management (FIN-FSCM-COL) is used for

  • Slow thumbnails

    hello All, I am running LR 3.5 on a virtual XPpro with 1.6gb of ram. This XP is dedicated to LR, so there is nothing installed, not even an antivirus. The network is gigabit. While it is snappy with my local raw files, accessing raw files on a samba