Error when trying to send an email

Hi,
Whenever i try to send an email using SMTPin my application i get the following error message :
javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Unknown SMTP host: mail.webahn.com; nested exception is: java.net.UnknownHostException: mail.webahn.com
Please could you help me solve this problem or give me a suitable suggestion as to why I get this message.

I gueess your client application is behind the firewall. You need to specify proxy host and proxy port.
java -Dhttp.proxyHost=... -Dhttp.proxyPort=....

Similar Messages

  • HT4863 I have an error message coming up when trying to send an email which says 'sending the message failed because you're exceeding the limit' can anyone help me to resolve this please

    I have an error message coming up when trying to send an email which says 'sending the message failed because you're exceeding the limit' can anyone help me to resolve this please

    Try reentering the password in your iCloud mail settings.

  • I am getting error message "the recipient was rejected by ther server" when trying yo send an email.

    I am getting error message "the recipient was rejected by ther server" when trying yo send an email.
    How do I fix it??

    Hello, Oldershaw. 
    Thank you for visiting Apple Support Communities. 
    Here is an article I would recommend going through when experiencing issues with mail. 
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Cheers,
    Jason H. 

  • When trying to send an email this message appear: No se ha podido firmar el mensaje

    When trying to send an email this message appear: No se ha podido firmar el mensaje. Se ha producido un error al intentar firmar este mensaje con un certificado de “[email protected]”. Compruebe que su certificado para esta dirección sea correcto y que la clave privada correspondiente esté en su llavero.

    Hi Srini,
    OS is XP
    Database = 10g
    EBS - 11.5.10.2
    When i tried with simple code like below i am getting mail .
    CREATE OR REPLACE PROCEDURE APPS.send_mail (p_sender IN VARCHAR2,
    p_recipient IN VARCHAR2,
    p_message IN VARCHAR2)
    as
    l_mailhost VARCHAR2(255);
    l_mail_conn utl_smtp.connection;
    BEGIN
    SELECT value value1
    INTO l_mailhost
    FROM v$parameter
    WHERE name like '%smtp%';
    l_mail_conn := utl_smtp.open_connection(l_mailhost, 25);
    utl_smtp.helo(l_mail_conn, l_mailhost);
    utl_smtp.mail(l_mail_conn, p_sender);
    utl_smtp.rcpt(l_mail_conn, p_recipient);
    utl_smtp.open_data(l_mail_conn );
    utl_smtp.write_data(l_mail_conn, p_message);
    utl_smtp.close_data(l_mail_conn );
    utl_smtp.quit(l_mail_conn);
    end;
    Can you please let me know if i am wrong in the following one
    1. After running the program, the output saves at ''/u07/applmgr/dev/devcomn/admin/out/DEV_wg-oa-01/RGADWALA.5929617"
    This information i got from fnd_concurrent_request table.
    * Do i need to have Write and Read permissions for the above said path
    2. The above said path I can see in the V$parameter table for column Name = 'utl_file_dir'
    3. I even created an Directory Name as 'OUT_DIR' in all_directories table with same path as above.
    I hope i have cleared your doubts, can you please let me know where exactly i am going wrong in my earlier procedure.
    Regards,
    RR

  • When trying to send an email I can not access "insert addresses" link, what is wrong?

    I am using Windows XP and when trying to send an email using Yahoo email I can not insert address from that link. It will not open. I can not find a way to solve this. Help. Thanks

    See this:
    [http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox]

  • I am receiving an error message when trying to send an email.

    I recently had to change my email password.  Now when trying to send or forward a message on my Iphone 4s I am receiving an error that my user name or password is incorrect.  My phone service is through AT&T and email is embargmail.com.

    Where did you change the password? Did you go into the email account on your phone and change the password as well? You need to check your SMTP settings, as that is what controls sending mail. If you get an error when trying to receive mail, that is the incoming server.

  • Error when trying to send an attachment

    Hi there,
    I am running an application in Tomcat 5.5 and I am trying to send an email with an attachment via java mail. The attachment will eventually be a zip file containing wav files but I can't seem to get it to work with a text file yet.
    I may be a little confused...I am especially confused with the DataHandlerSet stuff.
    Here is the code:
    public String sendmail(String msgSubject)
         //Sets some variables.
        String emailmultipart = "true"; //if this is set to false sends a simple message.
        String msgText = "Some text \n\n";
        String smtphost = "myhost";
        String emailto = "[email protected]";
        String emailfrom =  "[email protected]";
        //Gives the path of where the sound files are.
        File soundfile = new File("myfile.txt");
        boolean debug = true; // change to get more information
        String msgText2 = "multipart message";
        boolean sendmultipart = Boolean.valueOf(emailmultipart).booleanValue();
           // set the host
        Properties props = new Properties();
        props.put("mail.smtp.host", smtphost);
          // create some properties and get the default Session
        Session session = Session.getDefaultInstance(props, null);
        session.setDebug(debug);
        try
              // create a message
               Message msg = new MimeMessage(session);
               // set the from address
               InternetAddress from = new InternetAddress(emailfrom);
               msg.setFrom(from);
               //set the to address
               InternetAddress[] address =
                   new InternetAddress(emailto)
               msg.setRecipients(Message.RecipientType.TO, address);
               //set subject - support request id
               msg.setSubject(msgSubject);
              //decides whether to send plain text message or multi text message (from true/false in the command line)
              //sends a simple plain text email
              if(!sendmultipart)
                 // send a plain text message
                 msg.setContent(soundfile, "text/plain");
              //sends an attached file.
              else
                 // send a multipart message// create and fill the first message part
                 MimeBodyPart mbp1 = new MimeBodyPart();
                 //adds the text as normal
                 mbp1.setContent(msgText, "text/plain");
                 // create and fill the second message part
                MimeBodyPart mbp3 = new MimeBodyPart();
                // attach the file to the message
                  //FileDataSource fds = new FileDataSource(filen);
                  FileDataSource fds = new FileDataSource(soundfile);
                 mbp3.setDataHandler(new DataHandler(fds));
                 mbp3.setFileName(fds.getName());
    //             mbp3.setContent();
                Multipart mp = new MimeMultipart();
                //adds the text to the message
                mp.addBodyPart(mbp1);
                  //adds the attachment to the message
                  mp.addBodyPart(mbp3);
                // adds the content to the message
                msg.setContent(mp);
             //Transport - sends the message.
             Transport.send(msg);
        catch(MessagingException mex)
          mex.printStackTrace();
        //log.debug("At end of Send email");
        return "nothing";
    }Here is the error:
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
         java.io.IOException: "text/html" DataContentHandler requires String object, was given object of type class javax.mail.internet.MimeMultipart
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:566)
         at javax.mail.Transport.send0(Transport.java:151)
         at javax.mail.Transport.send(Transport.java:80)
         at questionnaireweb.Formemail.sendmail(Formemail.java:337)
         at org.apache.jsp.web.emailrecorded_jsp._jspService(org.apache.jsp.web.emailrecorded_jsp:338)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    I'd be really grateful for any help. I can't seem to get past this error not matter what I try. Sending the simple mail works, but sending an attachment produces the error above. I have seen similar errors before but when the user actually wants to send html and not a file.
    Thanks a lot,
    Jess

    HI ,Thanks for your response. That was an error in the code I posted, but wasn't the error I was trying to solve. Once correcting that error you pointed out I am getting the problems not when I send a plain text email like:
              if(!sendmultipart)
                 // send a plain text message
                 msg.setContent(msgText, "text/plain");
              }but when I try and send multipart messages doing this:
              else
                 // send a multipart message// create and fill the first message part
                       MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(msgText);
          // create and fill the second message part
         MimeBodyPart mbp3 = new MimeBodyPart();
         // attach the file to the message
         FileDataSource fds = new FileDataSource(soundfile);
         mbp3.setDataHandler(new DataHandler(fds));
         mbp3.setFileName(fds.getName());
                       Multipart mp = new MimeMultipart();
         //adds the text to the message
          mp.addBodyPart(mbp1);
          //adds the attachment to the message
          mp.addBodyPart(mbp3);
           // adds the content to the message
          msg.setContent(mp);
         }So i get the error when executing the else branch.
    Can you spot any errors here? I get the same error as mentioned earlier.
    Thanks a lot,
    Jess

  • Receiving an Error message when trying to send an email

    Help
    All of a sudden whenever I try to send an email I receive an Error message stating it cannot be delivered. The message suggests verifying addressee, checking SMTP server settings and verifying any advanced settings. I have tried different addressees, and all the information in the Mail Preferences looks accurate to me. Any ideas what could be causing this? It just started happening.
    Any info is greatly appreciated
    Susan
    Quad Core   Mac OS X (10.4.6)  

    Hi Susan,
    Many ISPs have recently started blocking outgoing (smtp) mail via port 25 that doesn't use their own smtp server. (This is to try and combat spam).
    There are generally two ways to overcome this:
    1) Use the smtp server of the ISP that you are currently connected to. (If you have a laptop and connect from different places this may mean you have to select an appropriate smtp server at each location.)
    2) Connect to your preferred smtp server on a port other than 25. This will depend on the setup of that server. For instance the Apple .Mac smtp server allows connections on port 587 (reference Apple support article: http://docs.info.apple.com/article.html?artnum=75124)
    Graham

  • E mail error when trying to send email

    I have an application that I want to send an email alert when there is an alarm condition. I have an email VI that works when run outside of my application. When I try to have my application load the VI into a form and run I get the following error:
    Error 26: occured at set cursor icon (icon pict).vi
    How can I fix this?

    Hi Ernie,
    Would you be able to provide more details on this issue.?  I am not quite sure what you mean by "have my application load the VI into a form."  Can you post your VI here or a screenshot?

  • Error When Trying To Send MMS via email

    Ive been trying to send an MMS via email. Ive got it to work a couple times but other times I get a message that says: MAILER-DAEMON.....etc....remote host said: 550 SMTP connection refused [BODY]"....
    I sent the pic message to a verizon phone by emailing to [email protected]
    please help. thanx.
    kev

    I'm not sure why a Verizon subscriber not updating the PRL for their phone affects this, but it can.
    As already provided, ask the Verizon subscriber to update the PRL for their phone per the instructions included with this link, which should resolve the problem.
    http://www.verizonwireless.com/care/popups/prl.html

  • Error when trying to send questionnaire (SURVEY)

    Hi All
    I have designed and built a questionnaire using the SURVEY transation in BIW. I am now testing the send to function but I am unable to send this to users as the following error occurs;
    You have recieved a status for the following doc:
         Encues.
    Sent:
         14.05.2007 10:16:28
    Sent By:
         Christopher John Burleigh
    Status for destination [email protected]:
        Internal Error: CL_SMTP_RESPONSE error code ESMTP unknown 554 554 <[email protected]>: Sender address rejected.
    I have think the SCOT transaction where SMTP email con be configured may help but after trying I can't see how.
    Please Help!!!
    Thanks in advance
    Chris

    HI ,Thanks for your response. That was an error in the code I posted, but wasn't the error I was trying to solve. Once correcting that error you pointed out I am getting the problems not when I send a plain text email like:
              if(!sendmultipart)
                 // send a plain text message
                 msg.setContent(msgText, "text/plain");
              }but when I try and send multipart messages doing this:
              else
                 // send a multipart message// create and fill the first message part
                       MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(msgText);
          // create and fill the second message part
         MimeBodyPart mbp3 = new MimeBodyPart();
         // attach the file to the message
         FileDataSource fds = new FileDataSource(soundfile);
         mbp3.setDataHandler(new DataHandler(fds));
         mbp3.setFileName(fds.getName());
                       Multipart mp = new MimeMultipart();
         //adds the text to the message
          mp.addBodyPart(mbp1);
          //adds the attachment to the message
          mp.addBodyPart(mbp3);
           // adds the content to the message
          msg.setContent(mp);
         }So i get the error when executing the else branch.
    Can you spot any errors here? I get the same error as mentioned earlier.
    Thanks a lot,
    Jess

  • FTP error when trying to send crystal report to FTP destination

    Hello experts.
    I am trying to send a crystal report to a FTP destination. I have enabled the FTP destination on all servers that have a destination option. I am able to connect to the FTP site manually from the server that is running crystal reports server. However every time I try to run the report in CMC, it fails with the following message:
    Error Message: connection error. CrystalEnterprise.Ftp: WSA11004
    Any ideas on what this message means and how to fix the issue?

    Here's the details of the Note
    Symptom:
    Scheduling of the Crystal Report to FTP destination prompts the Error: Connection error, CrystalEnterprise.Ftp: WSA0.
    Cause:
    Every time when Crystal Report is scheduled to FTP destination, a connection is made to FTP server from server where job server is installed. If there is limitation on connection being made to FTP server then this error occurs.
    Resolution:
    For FTP sites in IIS:
    - Open IIS Manager
    - Go to Properties
    - Click on the FTP site tab
    - In FTP site connections, check for Connection limited to :
    - When report is long running do check how much time it takes to complete scheduling. - Accordingly change the connection time out setting in Properties of FTP site.
    - For FTP sites created using FTP Server applications, setting for Connection limited to and connection timeout will remain same.

  • HELP....why do I keep getting "Not Delivered" errors when trying to send a Group MMS text message?

    I am trying to send a Group MMS text. There are 6 recipients. I hit "send" and the progress bar goes almost to the very end, and then hangs up....and eventually I get a "Not Delivered" error message. I click on the "i" icon and it says "your message was not sent. Tap try again to send this message." I've done that time and time again, and the same thing happens. What am I doing wrong?

    Try sending it as a regular text message... turn off iMessage.

  • ME23N Error when trying to send PO via IDOCS to another system?

    Hello Experts,
    I am getting wired message what I ma trying to send PO via IDocs to other SAP system (XI)
    I went to all partner , port configurations on WE20 and everything there seems to be fine but once I go to ME23N, then GO TO -> MESSAGES , than opens another windows when you key in MESSAGE CONTROL DATA that have been mantained
    in the outbound parameters in the PARTNER PROFILE configurations.Then I am getting the message :
    'No communication data has been defined for transmission medium 6'-----
    The LED on "PO:output screen' is YELLOW and never gets green.
    Can someone tell me how to overcome this and send my  PO Idocs?Please some more details will be appreciate it!
    Thank you much  eveyone!
    Boby<b></b>

    I just got the same problem. Everything worked fine when i was using message type ORDERS01, but when i changed it to ORDERS05 this problem started happening.
    This might solve your problem. If you have it solved out can you tell us the solution you found??
    regards,
    Diogo

  • Getting error when trying to sent outgoing email

    Eveytime I try to send an email forward to anyone I get an error message about password for outgoing mail. I have no clue what to do
    To fix this help please

    Some of the email providers (never met,but heard about one) do require additional password for outgoing mail.
    You would have to contact your Exchange Administrator or email provider to find that password. Pretty sure after you enter it once, phone will remember.

Maybe you are looking for