Error when trying to send e-mail: javax.mail.MessagingException: can't dete

Any help on the below error would be appreciated?
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: can't determine local email address
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at com.rightworks.maildispatcher.MailDispatcher$SenderThread.sendMessage
(MailDispatcher.java, Compiled Code)
at com.rightworks.maildispatcher.MailDispatcher$SenderThread.run(MailDis
patcher.java:536)
Cannot send mail file s1io.d.xml : Sending failed;
nested exception is:
javax.mail.MessagingException: can't determine local email address

Appears to be related to specifing the mail.from input.
Works now.

Similar Messages

  • Mail delivery error when trying to send document to hpeprint. I know the email address is correct

    I just got the HP8600.  I set up eprint according to the instructions.  When I email a document to the printer, I get a Mail Delivery error:
    This message was created automatically by the mail system (ecelerity).
    A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
    >>> [email protected] (reading confirmation): 550 5.7.1 Command
    >>> rejected
    I know the email address is correct.  I don't know what to do to get this to work.

    The Q.com provider seems to have issues sending to our servers for some reason. Other email providers will work fine like you've found with your gmail account. The best workaround at this time is to send from your gmail account if possible.
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • ERROR MESSAGE WHEN TRYING TO SEND IPHOTO VIA E-MAIL

    DRIVING ME NUTS, CAN ANYONE ASSIST? TRYING TO SEND PHOTO'S FROM MY IPHOTO ACCOUNT VIA E-MAIL KEEP GETTING SERVER DOES NOT RECOGNISE ACCOUNT/PASSWORD MESSAGE. ALSO I-CLOUD ACCOUNT REFUSES TO ALLOW ME TO SELECT MAIL FROM MAIL, CONTACTS & CALENDARS PREFERENCE
    THANKS
    TED

    First unlock your caps lock key. Typing in all caps is inappropriate in online forums (considered shouting) and is hard to read.
    iPhoto>Preferences>General. Select the email program or how you wish to email photos from iPhoto.
    (There is an iPhoto forum for iPhoto questions).

  • 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

  • Getting strange message when trying to send in a web mail. can you help

    I work for a  ISP  and one of our customers was having trouble with their webmail.  she was getting this message when trying to reply to messages. 
    http://mail.e-isco.com
    Message Not Sent!
    Following sender has not been
    Accepted:
    “cece778”&lt
    Does anyone know what might be going on with it.  she is using an ipad2.  has this problem wether she is on her 3g or on her wifi at home.  Her webmail works fine from the computer just not the ipad.

    I am getting an error message when I try to open an attachment to an email entitled movie.avi. It says I may need more software but its not a helpful message because it does not say whta software. Lame and frustrating.

  • 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.

  • 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=....

  • 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

  • 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.

  • 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

  • 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

  • Error when trying to send mail

    I have recently got Sky broadband and everything is working fine except I can't send mail I get this error
    "The server "smtp.sky.com" refused to allow a connection on port 465."
    Now I have checked my mail settings and all seems fine and sky tech help want give me specific help with Macs, any help would be gratefull
    Thanks Anthony.

    Disable SSL for SMTP. After disabling make sure, SMTP port is 25. If this does not work, try port 587 for SMTP (SSL still disabled).

  • Error when trying to send e-mail

    When running the following code:
    import oracle.ifs.common.IfsException;
    import oracle.ifs.common.*;
    import oracle.ifs.beans.LibraryService;
    import oracle.ifs.protocols.email.beans.Mailbox;
    import oracle.ifs.adk.mail.IfsMessage.*;
    import oracle.ifs.adk.mail.*;
    import oracle.ifs.server.*;
    public class test
    public static void main(String[] args)
    try
    LibraryService service = new LibraryService();
    CleartextCredential me = new CleartextCredential("system", "manager");
    ConnectOptions options = new ConnectOptions();
    options.setServiceName("IfsDefault");
    options.setServicePassword("manager");
    options.setLocale(Locale.US);
    LibrarySession session = service.connect(me, options);
    DirectoryUser user = (DirectoryUser) session.getDirectoryUser();
    if (user.isAdminEnabled())
    session.setAdministrationMode(true);
    IfsMessage msg = new IfsMessage(session);
    msg.setToHeader(new String[] {"[email protected]"});
    msg.setFromHeader(user);
    msg.setContentType("text/plain");
    msg.setSubject("iFS email test message");
    msg.setBody("Hello! This is a test. If you got this, something is working right.");
    msg.send();
    catch (IfsException e)
    e.printStackTrace();
    ...we get the following message:
    java.lang.ClassCastException: oracle.ifs.beans.TieFolder
    at oracle.ifs.adk.mail.IfsMessage.<init>(Compiled Code)
    at oracle.ifs.adk.mail.IfsMessage.<init>(Compiled Code)
    at test.main(Compiled Code)
    Thanks in advance for any ideas you may have.

    This code snippet works for me... It places the message in the system outbox.
    Can you check that your system outbox exists
    at /ifs/outbox
    and that it is an instance of 'FOLDER' and the that the ACL on it ' is protected (system)'.
    public void doSomething(LibrarySession ifs)
    throws IfsException
    IfsMessage msg = new IfsMessage(ifs);
    msg.setToHeader(new String[] {"[email protected]"});
    msg.setFromHeader(ifs.getDirectoryUser());
    msg.setContentType("text/plain");
    msg.setSubject("iFS email test message");
    msg.setBody("Hello! This is a test. If you got this, something is working right.");
    msg.send();
    null

  • Error when trying to send scan pic thru e-mail

    i scanned a pic to the puter as a jpeg file to send to e-mail contact and get and error message bout no e-mail association's
    so i can not get pics sent

    This code snippet works for me... It places the message in the system outbox.
    Can you check that your system outbox exists
    at /ifs/outbox
    and that it is an instance of 'FOLDER' and the that the ACL on it ' is protected (system)'.
    public void doSomething(LibrarySession ifs)
    throws IfsException
    IfsMessage msg = new IfsMessage(ifs);
    msg.setToHeader(new String[] {"[email protected]"});
    msg.setFromHeader(ifs.getDirectoryUser());
    msg.setContentType("text/plain");
    msg.setSubject("iFS email test message");
    msg.setBody("Hello! This is a test. If you got this, something is working right.");
    msg.send();
    null

  • 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?

Maybe you are looking for

  • Getting column headers dynamically from input parameters in alv.

    Hi all, I am new to abap, can any one help me in getting column header dynamically through parameters in alv ? Eg:- i Have parametars for days field , user inputs days as 10 20 30 40. Now I want to display in alv column headers as:- 1st column-  'FRO

  • Pdf support in the works?

    I was wondering if there are plans to add pdf document viewing support into flash in the future. If so is there an eta on this feature?

  • How do i save an image on website

    Hi can someone please advise what i want to do is i am building my own website for my shop and i need to take the logo's from the national lottery, paypoint etc and insert them onto my site does anyone know how to save the picture or link as in windo

  • Keynote dissolves non-functional

    I have a long, long list of broken actions and missing functions with this 'new' version of Keynote. However, to keep it as brief as possible: In Mavericks, Keynote previews dissolves fine. On play they are non-functional. Completely and utterly brok

  • Same class in diferent projects

    hi!! in one project (homecontrolserver), i have one class ("Arrays"), i serialize it, and send over sockets to other project (homecontrolclient), here i have an error, because in this project (client) doesn't exist this class (homecontrolserver.Array