Unable to send email javax.mail.MessagingException: 553 Domain require

Hello
When sending a test message using One to One fulfillment I get the following message
unable to send email
javax.mail.MessagingException: 553 <UNSET>... Domain name required"
Has anybody got this message before? how did you resolve it?
Thank you
Kind Regards
Eva

See if there is any space in the name of the email server. If yes, remove the space and stop and start the fulfillment server.
HTH

Similar Messages

  • I am unable to send emails using mail from my btinternet and yahoo accounts similar problem to others with mobile me accounts on lion any suggestions?

    I am unable to send emails using mail from my btinternet and yahoo accounts similar problem to others with mobile me accounts on lion any suggestions?

    Do I need to delete all my email accounts and start again?

  • Javax.mail.MessagingException: 505 Authentication required

    Could any one provide ,what would be the reasons for the following error information.
    [5/7/07 0:16:21:853 EDT] 11ba7fef SystemOut O DEBUG SMTP RCVD: 505 Authentication required
    [5/7/07 0:16:21:853 EDT] 11ba7fef SystemOut O DEBUG SMTP SENT: QUIT
    [5/7/07 0:16:21:853 EDT] 11ba7fef SystemOut O javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.MessagingException: 505 Authentication required

    it was working until few days.we dont understand what woud be problem.
    There is log informatiuon in websphere systemerr.log also.
    0:102 EDT] 740d8b8d SystemErr R javax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: 505 Authentication required
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at javax.mail.Transport.send0(Transport.java:219)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at javax.mail.Transport.send(Transport.java:81)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.det.core.jenmail.JENMailSender.sendEmail(JENMailSender.java:250)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.det.core.jenmail.JENMailSender.sendEmail(JENMailSender.java:165)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.det.jenadmin.registration.ModifyUserAction.process(ModifyUserAction.java:171)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at org.apache.jsp._PendingAction._jspService(_PendingAction.java:824)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

  • Gmail will not send emails from mail

    On my Gmail account I am unable to send emails from mail on my iMac. I have OS X 10.9.1
    I have tried several times turning on and off 2 - step verification.
    I have also entered the generated password in the SMTP server as well.
    Message says: SMTP-server.gmail....  Could not connect
    When I edit SMTP server list how do I fill that in.
    ie Description, server name TLS Certificate.

    Does this mail ID supports either POP or IMAP protcol? Report this issue to your carrier they will raise a ticket to RIM for resolving the issue.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • Atg.service.email.EmailException: javax.mail.MessagingException:

    All, while sending email via web production application getting the following exception and it is intermittent as well, any quick pointers in cause/fix, please..
    ERROR [nucleusNamespace.atg.dynamo.service.EmailFormHandler] Failed to send meail message:Remember to set /atg/dynamo/service/SMTPEmail.emailHandlerHostName and /atg/dynamo/service/SMTPEmail.emailHandlerPort
    atg.service.email.EmailException: javax.mail.MessagingException: Exception reading response;
    nested exception is:
         java.net.SocketTimeoutException: Read timed out
         at atg.service.email.SMTPEmailSender.sendEmailMessage(SMTPEmailSender.java:907)
         at atg.service.email.SMTPEmailSender.sendEmailMessage(SMTPEmailSender.java:930)
         at atg.service.email.SMTPEmailSender.sendEmail(SMTPEmailSender.java:1009)
         at atg.service.email.SMTPEmailSender.sendEmailEvent(SMTPEmailSender.java:985)
         at atg.service.email.SMTPEmailSender.sendEmailMessage(SMTPEmailSender.java:522)
         at atg.service.email.EmailFormHandler.sendMail(EmailFormHandler.java:316)
         at atg.service.email.EmailFormHandler.handleSendEmail(EmailFormHandler.java:436)
         at sun.reflect.GeneratedMethodAccessor843.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:592)
         at atg.droplet.EventSender.sendEvent(EventSender.java:582)
         at atg.droplet.FormTag.doSendEvents(FormTag.java:791)
         at atg.droplet.FormTag.sendEvents(FormTag.java:640)
         at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)
         at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2442)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:602)

    Check the configuration of /atg/dynamo/service/SMTPEmail component and specify proper values for emailHandlerHostName, emailHandlerPort, username, password. By default emailHandlerHostName is configured to localhost and port is set to 25 which is default for SMTP. If you do not know these you can get these details from your mail administrator who has setup your mail-id. You would also need to specify the username and password if your administrator has not allowed for making anonymous connection to the mail server.

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

  • Send mail through Java program. ERROR javax.mail.MessagingException: [EOF]

    Hi,
    i've a java Mail program which will send the mail thro smtp server.
    when i try to execute this program im getting the error javax.mail.MessagingException: [EOF]
    i've attached both code & error.
    while running the program need to give the arguments
    ex : java SendMail smtpserver frommailid tomailid subject body
    please provide me the solution.
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class SendMail {
         public static void main(String[] args) {
              try
         String smtpServer=args[0];
         String to=args[1];
         String from=args[2];
         String subject=args[3];
         String body=args[4];
         send(smtpServer, to, from, subject, body);
         catch (Exception ex)
         System.out.println("Usage: java SendMail"
         +" smtpServer toAddress fromAddress subjectText bodyText");
         System.exit(0);
         public static void send(String smtpServer, String to, String from
                   , String subject, String body)
                   try
                   Properties props = System.getProperties();
                   props.put("mail.smtp.host", smtpServer);
                   Session session = Session.getDefaultInstance(props, null);
                   Message msg = new MimeMessage(session);
                   msg.setFrom(new InternetAddress(from));
                   msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to, false));
                   msg.setSubject(subject);
                   msg.setText(body);
                   msg.setSentDate(new Date());
                   System.out.println("test 1--");
                   Transport.send(msg);
                   System.out.println("test 2--");
                   System.out.println("Message sent OK.");
                   catch (Exception ex)
                   ex.printStackTrace();
    thanks for the help in advance.
    regs
    lal.

    I ran into a similar error today. I fixed it by setting up SMTP authentication because my ISP's help pages said that they would allow only SMTP authentication.
    Here is what I did:
    Transport transport =
    mailConnection.getTransport("smtp");
    transport.connect(
    "hostname", "email", "password");
    Transport.send(msg);
    I also passed the following property while creating the session:
    props.put("mail.smtp.auth", "true");
    finally turning on debug helped:
    session.setDebug(true);
    session.setDebugOut(null);
    Hope this helps

  • We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is: Cannot send mail. The user name or password for iCloud is incorrect.

    We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.

    About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone.  Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc.  This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...

  • Loaded Outlook mobile app and now I can't send emails through Mail ("Unable to verify account information" error message).  Can't use the Authenticator number, either.  Help!

    I installed the Outlook mobile app on my iPhone using my Hotmail email address and the authenticator code.  It works, but I can no longer send emails from Mail.  I have not forgotten the password, so I don't know why I am unable to send messages from my mail email account (linked to Hotmail) in Mail.  Should I delete the Outlook mobile app?  Please help!  Thanks.

    I installed the Outlook mobile app on my iPhone using my Hotmail email address and the authenticator code.  It works, but I can no longer send emails from Mail.  I have not forgotten the password, so I don't know why I am unable to send messages from my mail email account (linked to Hotmail) in Mail.  Should I delete the Outlook mobile app?  Please help!  Thanks.

  • Mail doesn't send - javax.mail.MessagingException: 250

    Hello all,
    I'm new to JavaMail. I actually started with it last night. I've successfully sent a number of messages, but I randomly get a strange exception for no apparent reason.
    If I run the exact same code several times, it will produce this error about every 5 or 6 times:
    javax.mail.MessagingException: 250 Requested mail action okay, completed
    Does anyone know what might be going on? Thanks in advance for any help you might can give.
    Here is the heart of my code:
    // Get system properties
    Properties props = System.getProperties();
    // Setup mail server
    props.put("mail.smtp.host", host1);
    // Get session
    Session session = Session.getDefaultInstance(props, null);
              session.setDebug(true);
    // Define message
    MimeMessage message = new MimeMessage(session);
    // Set the from address
    message.setFrom(new InternetAddress(fromAddress));
    // Set the to address
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(toAddress));
    // Set the subject
    message.setSubject(subject);
    // Set the content
    message.setContent(content, "text/html");
    // Send message
    Transport.send(message);
    Below is the debugger output: (certain values have been removed for anonymity's sake)
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth false
    DEBUG: SMTPTransport trying to connect to host "xx.xx.xx.xx", port 25
    DEBUG SMTP RCVD: 220 domain.company.com ESMTP MailEnable Service, Version: 1.704-- ready at 01/14/04 14:07:27
    DEBUG: SMTPTransport connected to host "xx.xx.xx.xx", port: 25
    DEBUG SMTP SENT: EHLO licensing
    DEBUG SMTP RCVD: 502
    DEBUG SMTP SENT: HELO licensing
    DEBUG SMTP RCVD: 250-AUTH LOGIN
    250-SIZE 5120000
    250-HELP
    250 AUTH=LOGIN
    DEBUG SMTP: use8bit false
    DEBUG SMTP SENT: MAIL FROM:<[email protected]>
    DEBUG SMTP RCVD: 250 Requested mail action okay, completed
    DEBUG SMTP SENT: RCPT TO:<[email protected]>
    DEBUG SMTP RCVD: 250 Requested mail action okay, completed
    Verified Addresses
    [email protected]
    DEBUG SMTP SENT: DATA
    DEBUG SMTP RCVD: 250 Requested mail action okay, completed
    DEBUG SMTP SENT: QUIT

    But I am getting that code thrown as a MessageException; the message never goes through. If you look at the debugging output compared to a message that went through, the DATA transmission commands are screwed up.
    Thanks for your input, though. I think I've gotten around this by trying to resend the message. It looks like that when I get this exception the message is never sent. I have a catch that detects this exception and tries to resend up to 3 times.
    Thanks,
    floosh

  • Javax.mail.MessagingException: Unable to load BODYSTRUCTURE

    Hi.
    when i try receive message i have next exception. (But some message recieve without this problem). Can help me?
    Exception with Session debug:
    A12 FETCH 5 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 5 FETCH (INTERNALDATE "14-Dec-2006 08:46:20 -0500" RFC822.SIZE 35458 ENVELOPE ("Thu, 14 Dec 2006 15:46:13 +0200" "Fwd: Fwd: 123" (("s2mtestAIM" NIL "s2mtest" "aim.com")) (("s2mtestAIM" NIL "s2mtest" "aim.com")) (("s2mtestAIM" NIL "s2mtest" "aim.com")) ((NIL NIL "s2mtest" "aim.com")) NIL NIL "<[email protected]>" "<[email protected]>"))
    A12 OK FETCH completed
    FROM: s2mtestAIM <[email protected]>
    TO: [email protected]
    SUBJECT: Fwd: Fwd: 123
    SendDate: Thu Dec 14 15:46:13 EET 2006
    FLAGS: XAOL-GOODCHECK-DONE
    A13 FETCH 5 (BODYSTRUCTURE)
    * 5 FETCH (BODYSTRUCTURE (("TEXT" "HTML" ("CHARSET" "windows-1251") NIL NIL "QUOTED-PRINTABLE" 4071 146 NIL NIL NIL)("MESSAGE" "RFC822" ("NAME" "1.eml") NIL NIL "7BIT" 13251 NIL ("attachment" ("FILENAME" "1.eml")) NIL)("MESSAGE" "RFC822" NIL NIL NIL "7BIT" 17777 ("Thu, 14 Dec 2006 13:17:25 +0200" "Fwd: 123" (("s2mtestAIM" NIL "s2mtest" "aim.com")) (("s2mtestAIM" NIL "s2mtest" "aim.com")) (("s2mtestAIM" NIL "s2mtest" "aim.com")) ((NIL NIL "s2mtest" "aim.com")) NIL NIL "<[email protected]>" "<[email protected]>") (("TEXT" "HTML" ("CHARSET" "windows-1251") NIL NIL "QUOTED-PRINTABLE" 3103 124 NIL NIL NIL)("MESSAGE" "RFC822" ("NAME" "1.eml") NIL NIL "7BIT" 3723 NIL ("attachment" ("FILENAME" "1.eml")) NIL)("MESSAGE" "RFC822" NIL NIL NIL "7BIT" 1658 ("Thu, 14 Dec 2006 12:36:23 +0200" "123" (("12323" NIL "resetdel" "gmail.com")) (("12323" NIL "resetdel" "gmail.com")) (("12323" NIL "resetdel" "gmail.com")) ((NIL NIL "s2mtest" "aol.com")) NIL NIL NIL "<[email protected]>") ("TEXT" "HTML" ("CHARSET" "windows-1251") NIL NIL "7BIT" 1658 0 NIL NIL NIL) 0 NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "windows-1251") NIL NIL "QUOTED-PRINTABLE" 2063 97 NIL NIL NIL)("TEXT" "PLAIN" ("CHARSET" "US-ASCII") NIL NIL "7BIT" 1697 35 NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "windows-1251") NIL NIL "QUOTED-PRINTABLE" 2063 97 NIL NIL NIL) "MIXED" ("BOUNDARY" "----------87AC1A33733336A") NIL NIL) 440 NIL NIL NIL) "MIXED" ("BOUNDARY" "----------121BF2519BABDF9") NIL NIL))
    A13 OK FETCH completed
    javax.mail.MessagingException: Unable to load BODYSTRUCTURE
         at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1117)
         at com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:340)
    Thanks.

    Then it's a bug in the AIM IMAP server, please report it.
    I guess this deserves a FAQ entry. Here's what I'll add:
    Q: I can read messages from my IMAP server with other mail clients,
    but even though I can connect to the server using JavaMail, when I use
    JavaMail to read some messages it fails. Doesn't that mean there's a bug
    in JavaMail?
    A: No, not usually. Most other mail clients make very little
    use of the rich IMAP protocol. They use the IMAP protocol as little
    more than a variant of the POP3 protocol, typically downloading the
    entire message to the client and parsing it in the client. This allows
    them to avoid all sorts of parsing and protocol bugs in many IMAP
    servers, but of course it comes at the cost of being less efficient
    because they don't take advantage of the IMAP protocol's ability to
    fetch only the parts of the message that are needed. These server bugs
    often manifest themselves as the following exception on the client:
    javax.mail.MessagingException: Unable to load BODYSTRUCTURE
    The best approach when running into server bugs of this sort is to contact
    the vendor of the server and get them to fix their product. Contact
    [email protected] and we'll help you
    pinpoint the problem so that you can report it to the server vendor.
    If you can't get a fix from the server vendor, the following technique
    will often allow you to work around these server bugs:
        // Get the message object from the folder in the
        // usual way, for example:
        MimeMessage msg = (MimeMessage)folder.getMessage(n);
        // Use the MimeMessage copy constructor to make a copy
        // of the entire message, which will fetch the entire
        // message from the server and parse it on the client:
        MimeMessage cmsg = new MimeMessage(msg);
        // The cmsg object is disconnected from the server so
        // setFlags will have no effect (for example).  Use
        // the original msg object for such operations.  Use
        // the cmsg object to access the content of the message.

  • Javax.mail.MessagingException: 451 Error while writing spool file??

    Hi all friends,
    Can any one plz tell me why Iam getting below error when Iam trying to send mail with attachment.Iam using Java Mail API.
    javax.mail.MessagingException: 451 Error while writing spool file
    Plz tell me what are the reasons behind it.
    Regards
    Bikash

    The problem here is that the SMTP server was unable to write its spool file.
    The error is probably on the OS side of things and has nothing to do with email except that the lack of the system resource is causing email to fail.
    Have the server admin take a look at his error log to find out why the the user that smtp is running as could not write the file.

  • Unable to send emails through adobe offline project.

    Hi Experts!!!
                        I am trying to send an email through Adobe Offline Form. I am quoting the code. Plz check what's the problem with the code.
    // This file has been generated partially by the Web Dynpro Code Generator.
    // MODIFY CODE ONLY IN SECTIONS ENCLOSED BY @@begin AND @@end.
    // ALL OTHER CHANGES WILL BE LOST IF THE FILE IS REGENERATED.
    package com.lifecyclelettersapplication;
    // IMPORTANT NOTE:
    // ALL IMPORT STATEMENTS MUST BE PLACED IN THE FOLLOWING SECTION ENCLOSED
    // BY @@begin imports AND @@end. FURTHERMORE, THIS SECTION MUST ALWAYS CONTAIN
    // AT LEAST ONE IMPORT STATEMENT (E.G. THAT FOR IPrivateFormView).
    // OTHERWISE, USING THE ECLIPSE FUNCTION "Organize Imports" FOLLOWED BY
    // A WEB DYNPRO CODE GENERATION (E.G. PROJECT BUILD) WILL RESULT IN THE LOSS
    // OF IMPORT STATEMENTS.
    //@@begin imports
    import java.util.Properties;
    import javax.mail.Address;
    import javax.mail.BodyPart;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.SendFailedException;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.AddressException;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    import com.lifecyclelettersapplication.wdp.IPrivateFormView;
    //@@end
    //@@begin documentation
    //@@end
    public class FormView
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(FormView.class);
      static
        //@@begin id
        String id = "$Id$";
        //@@end
        com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
    Private access to the generated Web Dynpro counterpart
    for this controller class.  </p>
    Use <code>wdThis</code> to gain typed access to the context,
    to trigger navigation via outbound plugs, to get and enable/disable
    actions, fire declared events, and access used controllers and/or
    component usages.
    @see com.lifecyclelettersapplication.wdp.IPrivateFormView for more details
      private final IPrivateFormView wdThis;
    Root node of this controller's context. </p>
    Provides typed access not only to the elements of the root node
    but also to all nodes in the context (methods node<i>XYZ</i>())
    and their currently selected element (methods current<i>XYZ</i>Element()).
    It also facilitates the creation of new elements for all nodes
    (methods create<i>XYZ</i>Element()). </p>
    @see com.lifecyclelettersapplication.wdp.IPrivateFormView.IContextNode for more details.
      private final IPrivateFormView.IContextNode wdContext;
    A shortcut for <code>wdThis.wdGetAPI()</code>. </p>
    Represents the generic API of the generic Web Dynpro counterpart
    for this controller. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDViewController wdControllerAPI;
    A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>
    Represents the generic API of the Web Dynpro component this controller
    belongs to. Can be used to access the message manager, the window manager,
    to add/remove event handlers and so on. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
      public FormView(IPrivateFormView wdThis)
        this.wdThis = wdThis;
        this.wdContext = wdThis.wdGetContext();
        this.wdControllerAPI = wdThis.wdGetAPI();
        this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
      //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
         /* The following lines initialize the context elements;
    Enter your e-mail id in the set From-method
         //wdContext.currentContextElement().setTeststatus(" do in it");
            try{
            wdContext.currentEmailElement().setFrom("[email protected]");
            wdContext.currentEmailElement().setTo("[email protected]");                                            
            wdContext.currentEmailElement().setCc("[email protected]");
            wdContext.currentEmailElement().setBcc("[email protected]");
    //        wdContext.currentEmailElement().setCc(" ");
    //        wdContext.currentEmailElement().setBcc(" ");
            wdContext.currentEmailElement().setSubject("Test Mail By Umang");
            wdContext.currentEmailElement().setBody("You will find the address proof letter in the attachment of this e mail. Please sign this form and send it.");
           catch(Exception e)
             wdContext.currentContextElement().setTeststatus("do in it"+e.getMessage());              
        //@@end
      //@@begin javadoc:wdDoExit()
      /** Hook method called to clean up controller. */
      //@@end
      public void wdDoExit()
        //@@begin wdDoExit()
        //@@end
      //@@begin javadoc:wdDoModifyView
    Hook method called to modify a view just before rendering.
    This method conceptually belongs to the view itself, not to the
    controller (cf. MVC pattern).
    It is made static to discourage a way of programming that
    routinely stores references to UI elements in instance fields
    for access by the view controller's event handlers, and so on.
    The Web Dynpro programming model recommends that UI elements can
    only be accessed by code executed within the call to this hook method.
    @param wdThis Generated private interface of the view's controller, as
           provided by Web Dynpro. Provides access to the view controller's
           outgoing controller usages, etc.
    @param wdContext Generated interface of the view's context, as provided
           by Web Dynpro. Provides access to the view's data.
    @param view The view's generic API, as provided by Web Dynpro.
           Provides access to UI elements.
    @param firstTime Indicates whether the hook is called for the first time
           during the lifetime of the view.
      //@@end
      public static void wdDoModifyView(IPrivateFormView wdThis, IPrivateFormView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
        //@@end
      //@@begin javadoc:onPlugFromFirstview(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onPlugFromFirstview(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onPlugFromFirstview(ServerEvent)
         wdContext.currentContextElement().setTeststatus("from first view");
         //wdDoInit();
        //@@end
      //@@begin javadoc:onActionBack(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionBack(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionBack(ServerEvent)
        wdThis.wdFirePlugToFirstView();
        //@@end
      //@@begin javadoc:onActionSend(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionSend(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSend(ServerEvent)
         Properties props = new Properties();
              String host = "rmail070.zmail.ril.com";
              props.put("rmail070.zmail.ril.com", host);
              Session session = Session.getInstance(props, null);
              MimeMessage message = new MimeMessage(session);
              Address toAddress = new InternetAddress();
              Address fromAddress = new InternetAddress();
              Address ccAddress = new InternetAddress();
              Address bccAddress = new InternetAddress();
         wdContext.currentContextElement().setTeststatus("1");
              try
                   MimeMultipart multipart = new MimeMultipart();
                   wdContext.currentContextElement().setTeststatus("2");
                   BodyPart messageBodyPart = new MimeBodyPart();
                   if (! wdContext.currentEmailElement().getFrom().equals(""))
                        fromAddress = new InternetAddress(wdContext.currentEmailElement().getFrom());               
                        message.setFrom(fromAddress);
                   wdContext.currentContextElement().setTeststatus("3");
                   if (! wdContext.currentEmailElement().getTo().equals(""))
                        toAddress = new InternetAddress(wdContext.currentEmailElement().getTo());
                        message.setRecipient(Message.RecipientType.TO, toAddress);
                   wdContext.currentContextElement().setTeststatus("4");
                   if (! wdContext.currentEmailElement().getCc().equals(""))
                        ccAddress = new InternetAddress(wdContext.currentEmailElement().getCc());
                        message.setRecipient(Message.RecipientType.CC, ccAddress);
                   wdContext.currentContextElement().setTeststatus("5");
                   if (! wdContext.currentEmailElement().getBcc().equals(""))
                        bccAddress = new InternetAddress(wdContext.currentEmailElement().getBcc());
                        message.setRecipient(Message.RecipientType.BCC, bccAddress);
                   wdContext.currentContextElement().setTeststatus("6");
                   if (! wdContext.currentEmailElement().getSubject().equals(""))
                        message.setSubject(wdContext.currentEmailElement().getSubject());
                   wdContext.currentContextElement().setTeststatus("7");
                   if (! wdContext.currentEmailElement().getBody().equals(""))
                        messageBodyPart.setText(wdContext.currentEmailElement().getBody());
                   wdContext.currentContextElement().setTeststatus("8");
                   multipart.addBodyPart(messageBodyPart);
                   wdContext.currentContextElement().setTeststatus("10");
    ////               A new part will be added this will be the attachment
                   messageBodyPart = new MimeBodyPart();
    //               String filename = "temp
    webdynpro
    web
    local
    LifeCycleLetters
    Components
    com.lifecyclelettersapplication.LifeCycleLettersApplication
    LifeCycle.pdf";
    //               DataSource source = new FileDataSource(filename);
    //               messageBodyPart.setDataHandler(new DataHandler(source));
    //               messageBodyPart.setFileName(source.getName());                    
    //               messageBodyPart.setHeader("Content-Type","application/pdf");
    //               multipart.addBodyPart(messageBodyPart);
                   message.setContent(multipart);
                   Transport.send(message);
                   wdContext.currentContextElement().setTeststatus("11");
              catch (AddressException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
              catch (SendFailedException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
              catch (MessagingException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
         catch(Exception e)
                             wdContext.currentContextElement().setTeststatus("action send"+e.getMessage());              
        //@@end
    The following code section can be used for any Java code that is
    not to be visible to other controllers/views or that contains constructs
    currently not supported directly by Web Dynpro (such as inner classes or
    member variables etc.). </p>
    Note: The content of this section is in no way managed/controlled
    by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      //@@end

    Hi,
    I think u need to set up the SMTP  So that u can send the email.
    Regards
    Mustafa.

  • Javax.mail.MessagingException: 505 Client was not authenticated

    Hi!,
    I got the following error:
    Exception in thread "main" javax.mail.MessagingException: 505 Client was not authenticated
    at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:507)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:312)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:168)
    at HelloMail.main(HelloMail.java:35)
    This is the code:
    To send an email I need authentification, and I include the mail.smtp.auth propertie and
    "message.saveChanges();
    Transport transport = session.getTransport("smtp");
    transport.connect("mail.xxx.com.mx","harriaga",passw);
    transport.sendMessage(message,message.getAllRecipients());
    transport.close();"
    Do you know if I am skip something.
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class HelloMail {
    public static void main(String args[]) throws Exception {
    String host="mail.xxx.com.mx"; //obviously doesn't work
    String from="[email protected]"; //sender's email
    String to ="[email protected]" ; //receiver's email
    Properties props = System.getProperties();
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.auth", "true");
    Session session=Session.getInstance(props,null);
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO, new
    InternetAddress(to));
    message.setSubject(" My Test HTML email ");
    message.setText(" Here is the content ");
    message.saveChanges();
    Transport transport = session.getTransport("smtp");
    transport.connect("mail.xxx.com.mx","harriaga",passw);
    transport.sendMessage(message,message.getAllRecipients());
    transport.close();
    Thanks for all,
    HAG.

    HAG,
    you need to create a session object passing a valid authenticator. In other words,
    MyAuthenticator auth = new MyAuthenticator ();
    Session session = Session.getInstance(props, auth);where MyAuthenticator is something like
    public class MyAuthenticator extends Authenticator{
      public PasswordAuthentication getPasswordAutentication(){
        return new PasswordAuthentication( "user", "password");
    }You obviously need to replace username and password with data valid for your e-mail account.
    Hope this helps,
    gulfi

  • Javax.mail.MessagingException

    HI all,
    i am new to this area and currently i am working on email messaging application.
    in here i have set up an SMTP server and every thing, but finally it gives following exception
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: 550 Sorry, <[email protected]> is not allowed access from your location
    can you please help me to solve this problem
    thanx
    Kelum

    hi,
    thanx for your reply...i checked JavaMail faq.
    it says
    This is an error reply from your SMTP mail server. It indicates that your mail server is not configured to allow you to send mail through it.
    actually my application is a servlet. that means do we have to give any permisions to my web server to send requests to smtp server.
    do you have any idea abot this
    thanx
    Kelum

Maybe you are looking for