Javamail to send message with a custom messageclass to outook exchange

Hello,
I developed a microsoft outlook addin which added a custom message class to our outlook exchange. Now if a user sends a message of type "IPM.Note.OurCustomForm"; the recipient gets our custom addin when the message is received. My question is, is there any way to use JavaMail to send a message from our server, which is all in Java, which the Microsoft Office exchange will pick up as the "IPM.Note.OurCustomForm"; message class and display my addin.
Some example code, or reference to similar problems would be appreciated, I have not programmed in Java since I graduated many a years ago :). Also, I was hoping to do this without using third party software (unless it is free), but I would none the less appreciate information about them too.
Thanks much,

I know nothing about Exchange, so all I can give you is a general approach to
solving this problem. Remember that Exchange is full of Microsoft proprietary
features that are not defined by any standard or specification.
You need to learn how to construct a MIME format message that is equivalent
to the new Exchange-proprietary message you created. One way to do that would
be to use JavaMail (or some other non-Outlook email client) to read a message of
that type from Exchange and examine the MIME structure of that message. That
should give you enough information to construct a MIME message using JavaMail
that has the same structure (MIME types, headers, etc.).
The second part is constructing the actual content of the message. Since you
created the new custom message class, maybe you already know how to do that.
But if you used a tool to do that you might not understand the raw format of that
message, in which case you may need to reverse engineer the format by reading
sample MIME messages in that format.
Does that help?

Similar Messages

  • The XI does not send messages with correct IDOC structure

    SAP XI 3.0 sends to ECC IDOC HRMD_A07 
    The XI does not send messages with correct IDOC structure.
    In XI Design, Software Component RHEVOLU, I’ve imported the Objects
    HRMD_A.HRMD_A07 from SAP ECC; In Tools -> Export Reduced XSD, I saved
    HRMD_A.HRMD_A07.xsd in Namespace http://suezambiental.com.br/HR . At
    Message Mapping -> mmAdmissao, in Imported Message -> Import XML or
    XSD, I imported the reduced Idoc file generated above, mapping source
    fields to target fields.
    The IDOC sent from XI to ECC has this structure (template: 22122)
    E1PLOGI
    E1PORIG
    E1PITYP
    E1P0000
    E1P0001
    E1P0002
    Status 53 -HR: ALE inbound processing for HR master data
    But does not update HR Master data.
    The structure expected in ECC side (template: 20376) is:
    E1PLOGI
    E1PORIG
    E1PITYP
    E1P0000
    E1PITYP
    E1P0001
    E1PITYP
    E1P0002
    Status 53 -HR: ALE inbound processing for HR master data
    By using WE19 transaction, this structure was changed manually; so, the
    HR Master data was updated.
    Witch kind of customizing or correction could be made in XI, to send
    the correct structure to ECC?
    Best Regards
    Claudio

    Hi Claudio,
    In your case, there are perhaps two causes:
    1. perhaps when you have import the idoc, for a strange reason, a bad metadata was created by XI. You can clean this one in tcode <b>IDX2</b> (Idoc metadata cache).
    2. but it's also probably an error in your Message Mapping. Have you correctly manage segment E1PITYP?
    Regards
    Mickael

  • Problem with sending message with excel attachment

    hi,
           i m using sap b1 2005b  i send message with excel attachment to sap user but message is reached to destination but attchment cannot send .ot shows an internal error pls help me.
    reagrds,
    vishal

    Vishal,
    Couple of questions. 
    How are you sending this message.  Is it a message that you create and send Internally with an attachment.
    As you reply me, please also check if the <b>Attachments folder</b> has been set under <b>Administration > System Initialization > General Settings.....Path Tab</b>
    SBO tries to copy the attachment from the location you select to the Path defined for Attachments.
    Let me know
    Suda

  • TS3276 I can't send messages with mail 6.0 of mountain lion, because I can't desactivate the option SSL (Secure sockets Layers); it is locked

    I can't send messages with mail 6.0 of mountain lion, because I can't desactivate the option SSL (Secure sockets Layers); it is locked

    Hi, i am having the same problem. this is what i have noticed.
    I have 2 x imac's and 2 x macbook air's
    i upgraded the 2 macbook air's and 1 of the imac's to Mountain Lion, all these have problems acessing sites that require you to login .
    the one remaining imac is still running lion and works perfect.
    i am using a dlink router with DD-WRT firmware, i tested teathering from my iphone and i can log into websites fine using the newly upgraded mac's.
    It's not a wireless issue as my imac is using an ethernet connection.
    is there a compatibility issue with some routers.

  • Over riding a seeded message with a custom one.

    Hello everybody,
    Can you please tell me if it is possible to over ride the seeded error messages with our custom message. For example, while accessing UpdateSR screen on setting the Responded Date to a date before the creation of the case, we get an API programming error. Is there a way we can catch this exception and show the user a more understandable error. Please let me know...
    Thank you,
    Ramya

    Did you query if the message exists under Appl. Admin>Application>Messages form. If it exists, you can change the message text as per your requierments.
    Btb, What is the message text of the error?

  • Can't send messages with old .mac/me aliases

    Hi, I'm using iCloud on the web because I have an old Powerbook as my primary device.  I specifically recall that Apple said that I can continue to use my .mac and .me aliases.  This is incredibly important since my business is tied to a particular .mac e-mail alias that I've had since, well, dotmac was around.
    It looks like I can receive messages with at least one of these aliases, but I cannot send messages with the alias.  The alias does not exist in the alias list pull down menu.  I tried adding the alias, but was told I already have too many.  Three?  Very frustrating!  Anybody know what's going on or how to fix it?  Thanks!
    -Jen

    IE11 is the most recent update.
    Try to reset all Skype settings.
    Quit Skype or use Windows Task Manager to kill any Skype.exe process. Go to Windows Start and in the Search/Run box type %appdata% and then press Enter or click the OK button. The Windows File Explorer will pop up. There locate a folder named “Skype”. Rename this folder to something different, e.g. Skype_old.
    Next go to Windows Start and in the Search/Run box type %temp%\skype and then press Enter or click the OK button. Delete the DbTemp folder.
    Restart Skype.
    N.B. If needed, you will still be able to re-establish your call and chat history. All data is still saved in the Skype_old folder.

  • Please help! I can't send messages with my IPod 5!

    I can't send messages with my iPod 5th gen. If anyone can help thank you!!!

    I just realized I don't have Lion, but I still have this problem with my email.

  • Sending messages with ipad impossible:user name or password incorrect

    Can't send messages with my IPAD.
    I'm tell that " Username or password for smtp:[email protected]@smtp.live.com is incorrect
    I need a clue
    Thanks

    Hello mipage,
    For that error you would need to make sure that the password is correct in Settings > Mail, Contacts, Calendars and look at the outgoing server settings. If you are unsure of what it should be, then the easiest way is to remove the email account and add it back in to add the correct settings. For more information, take a look at the article below 
    Get help with Mail on iPhone, iPad, and iPod touch
    https://support.apple.com/en-us/TS3899
    Regards,
    -Norm G. 

  • Can't send message with photo

    Can't send message with photo.

    Does this relate in any way to the three other threads you have going?

  • Is there an option to send messages with an added emoticon?, is there an option to send messages with an added emoticon?

    Is there an option to send messages with an emoticon?

    there is an application name emoji this is the link for it
    http://itunes.apple.com/us/app/emoji-free/id332509635?mt=8
    download this and install it after that open the app it will automatically install the emoticon keyboard for you and will give you a step by step guide for it

  • [OSB]JMS Business Service sending message with a given JMSCorrelationID

    Hi,
    Is it possible to send jms message with a given JMSCorrelationID in OSB? Just like use javax.jms.Message.setJMSCorrelationID() before sending.
    If yes, how to change the payload accordingly?
    Any help? Thanks in advance.

    Try Transport Headers action in request action route node (Add Action >> Communication >> Transport Headers).
    Then click on add headers and in name drop down select the JMSCorrelationID. In set Headers to expression select the value you want to put for JMSCorrelationID.

  • Bug report: Mail sends messages with empty bodies

    Over the last year, I have experienced a particularly irritating bug in Mail.app at least a dozen times. I finally have a good idea as to what causes it.
    The problem involves long email messages (often with attachments) that end up being sent with blank bodies (and no attachments). Even the copy in the "Sent" folder ends up blank, and several minutes or hours of work vanishes into thin air, not to be seen ever again.
    I finally realized that this bug only occurs when sending mail through our work SMTP server while outside the work firewall, and only as a result of a certain sequence of events. Here is what happens:
    When we connect to our work SMTP server from outside the local network and without going through the VPN, the SMTP server requires password authentication. If the current SMTP selection in Mail.app is the one that does not require authentication, the SMTP server rejects the message. At that point, Mail.app opens the email I am trying to send and brings up a modal dialog that says "Cannot send message using the server xxx.xxx -- The server response was: xxx@xxx relaying prohibited. You should authenticate first." The dialog also presents a drop-down list of SMTP server choices. I choose the password-authenticated version of the server and then click on "Use Selected Server" to send the message.
    This works almost all the time, but on occasion it ends up sending a blank message! If I have a long email, particularly with attachments such as PDFs that are rendered in the body of the message, it takes a few seconds for the mail message to be rendered underneath the modal dialog box. Since I am used to this STMP rejection behavior, sometimes I am too fast to choose another STMP server from the list and click on "Use Selected Server" before the mail message is rendered on screen! The result, invariably, is a blank email message that gets sent.
    I guess what is happening is that when the STMP server rejects the message and hands it back to Mail.app, the message gets copied into a buffer in order to be displayed on screen. Selecting another server and resending it immediately (before the message is copied into the buffer completely) causes the message body to get trashed.
    I hope that this description is adequate for Apple QA folks to replicate and isolate the problem (and hopefully fix it). One solution (although not the most elegant one) would be to disable the "Use Selected Server" action until the message is copied into the buffer and rendered on screen.

    This could be related to another bug reported here recently:
    E-mail looses all images if mail server doesn't accept outgoing email...
    You cannot count on Apple looking into this or even noticing it if you report it here, so I suggest you the same I suggested in the other thread, i.e. report it in one of the following places:
    http://www.apple.com/macosx/feedback/
    http://developer.apple.com/bugreporter/

  • Got error when sending message with big size

    Hello!
    I hope someone will able to help. I am facing with the size issue (I guess).
    The input file has a size of 58668 bytes. My program takes it and convert it to a TextMessage. When sending the file to the JMS queue, I got:
    javax.jms.JMSException: Failed to process message: Failed to add message=ID:f411d6c8-c1df-1004-8942-9b67f9629ee5, destination=QueueName3 (5)
            at org.exolab.jms.messagemgr.MessageMgr.add(MessageMgr.java:199)
            at org.exolab.jms.server.ServerSessionImpl.send(ServerSessionImpl.java:205)
            at org.exolab.jms.server.net.RemoteServerSession.send(RemoteServerSession.java:152)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(DefaultORB.java:553)
            at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:511)
            at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:595)This error is generated when doing:
    if(message instanceof TextMessage)
          this.producer.send(message);
      }producer is a MessageProducer.
    I looked around and did not find any limitation on the send method :o(
    FYI I am using OpenJMS has JMS provider.
    Thx in advance

    oh I looked into OpenJMS log (I could do that from the beginning) and I saw the following message:
    17:00:11.005 ERROR [ORB-Worker-18] - Failed to process message
    javax.jms.JMSException: Failed to process message: Failed to add message=ID:f3e38ebc-c1df-1004-8ecc-3d4e4e499b90, destination=
    QueueName3 (5)
            at org.exolab.jms.messagemgr.MessageMgr.add(MessageMgr.java:199)
            at org.exolab.jms.server.ServerSessionImpl.send(ServerSessionImpl.java:205)
            at org.exolab.jms.server.net.RemoteServerSession.send(RemoteServerSession.java:152)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(DefaultORB.java:553)
            at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:511)
            at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:595)
    17:00:41.333 ERROR [ORB-Worker-18] - Failed to process message
    org.exolab.jms.persistence.PersistenceException:
    ERROR 22001: A truncation error was encountered trying to shrink LONG VARCHAR FOR BIT DATA 'XX-RESOLVE-XX' to length 32700.
            at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
            at org.apache.derby.iapi.types.SQLBinary.checkHostVariable(Unknown Source)
            at org.apache.derby.exe.ac601a400fx0110xbb05xf3e9xffff95b19c308.e0(Unknown Source)
            at org.apache.derby.impl.services.reflect.DirectCall.invoke(Unknown Source)
            at org.apache.derby.impl.sql.execute.RowResultSet.getNextRowCore(Unknown Source)
            at org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(Unknown Source)
            at org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(Unknown Source)
            at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
            at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
    ...From what I understand, my issue is related to OpenJMS. Can the length be increased?

  • Send message with abap proxy client

    I'm trying to send message to XI, but no message in sxmb_moni.
    I have created logical port with LPCONFIG.
    ABAP code
    REPORT  Z_HTTP_SEND.
    DATA:
    * Reference variables for proxy and exception class
      lo_clientProxy     TYPE REF TO ZPCO_MI_COMPANY_OB,
      lo_sys_exception   TYPE REF TO cx_ai_system_fault,
    * Structures to set and get message content
       ls_request         TYPE ZPMT_COMPANY_ID,
       ls_response        TYPE ZPMT_COMPANY_DETAILS.
    *Complete the structure ls_request for the request message.
    *DATA: zmt_id type ZPMT_COMPANY_ID,
    *zdt_id type ZPDT_COMPANY_ID,
    *z_id_tab type ZPCOMPANY_ID_TAB,
    *z_id type ZPCOMPANY_ID.
    *z_id-COMPANY_ID = '3000'.
    *append  z_id to z_id_tab.
    *  zdt_id-RECORD = z_id_tab.
    *zmt_id-MT_COMPANY_ID = zdt_id.
    DATA tab TYPE ZPCOMPANY_ID_TAB WITH HEADER LINE.
    tab-COMPANY_ID = '3000'.
    APPEND tab.
    ls_request-MT_COMPANY_ID-RECORD = tab[].
    TRY.
    * create proxy client
    *CREATE OBJECT lo_clientProxy( u2018LOGICAL_PORT_NAMEu2019 ).
        CREATE OBJECT lo_clientProxy.
    * do synchronous client proxy call
        CALL METHOD lo_clientProxy->execute_synchronous
                 EXPORTING output  = ls_request
                 IMPORTING input   = ls_response.
        CATCH cx_ai_system_fault INTO lo_sys_exception.
    *   Error handling
    ENDTRY.
    Any ideas? Thanks very much,

    Hi,
    Proxies communicate with the XI server by means of native SOAP calls over HTTP .RFC does not, so you have to convert from SOAP to RFC calls and vice versa. So XML conversion is required.
    ABAP Proxies uses Webservice and Http Protocols. And if you use RFC it is mainly meant for Sync. call. But Proxies is used for both Sync and Async.
    If you use ABAP Proxy , you can reduce the overhead calling the function again and again.
    How do you activate ABAP Proxies? - Activate Proxy
    ABAP Server Proxies - ABAP Server Proxy
    ABAP Proxies in XI(Client Proxy) - ABAP Client Proxy
    Re: JDBC Sender select/update problem
    If u generate proxy for outbound interface then its client proxy and for inbound interface its server proxy.
    In client proxy u can call the method to send messages but u can't modify it but in server proxy its possible to write a user code within the method to execute proxy.
    CLIENT PROXY:
    A WSDL description from a UDDI server (or an Internet page) is usually used to make a service executable in the Internet and to describe the interface of this service. You require a client proxy and not a server proxy to call this service by using the Web service infrastructure.
    SERVER PROXY:
    You can only generate ABAP server proxies from a WSDL description if they originate in the Integration Repository.You can also generate server proxies for Java and client proxies for ABAP from message interfaces.
    s refer these doc about ABAP proxy ..
    How do you activate ABAP Proxies? - Activate Proxy
    ABAP Server Proxies - ABAP Server Proxy
    ABAP Proxies in XI(Client Proxy) - ABAP Client Proxy
    Re: JDBC Sender select/update problem
    ABAP Server Proxies
    How do you activate ABAP Proxies?
    ABAP Proxies in XI(Client Proxy)
    File to R/3 via ABAP Proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/41e08c90-0201-0010-9197-d8774336ea78
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ae9874-109c-2910-f48a-e91f0cdd1c81
    Smarter Approach for coding ABAP Proxies
    regards,
    Surya

  • Hacker sending messages with links in messages tha...

    There is a hacker that has hacked Skype and anyone who is online are getting messages with a link in it, the messages containes a Malwear virus. Please put a stop to it.
    Solved!
    Go to Solution.

    It's not Skype that is hacked, but the computer of your contact sending you this message has been compromised. More information here: http://community.skype.com/t5/Security-Privacy-Tru​st-and/lol-is-this-your-new-picture-on-skype-link-​...
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

Maybe you are looking for