Attachment appears as garbled characters in message section.

I am using Javamail to send emails with attachments. The attachments are MS Word documents. When I run the Javamail program in JDeveloper, the emails with their attachments are sent just fine. However, when the Javamail program is run from the server (9iAS) the emails are sent, but the attachments appear in the message section as garbled characters. Is there a setting on the server that needs adjusting? Thank you for any help.
Roger

have u set the content type of your mail, something like "application/octet-stream" for the attachment part

Similar Messages

  • Garbled characters appear in PDF's generated in Acrobat XI 11.0.10

    Adobe: when generating PDF's using Acrobat XI 11.0.10, garbled characters appear on complete lines on otherwise legible generated pages. Adobe Acrobat says no updates are available. Please advise what workaround(s) should be used to prevent this. The problem seems to be increasing lately.
    Platform: Windows 7.
    Steps to troubleshoot: have no idea where to start other than updating Acrobat which has already been done.

    You probably are using some strange fonts that Acrobat can not embed due to licensing and are not viewing with system fonts. Be sure all the fonts are embedded (document properties -- ctrl-D).

  • Garbled characters in output

    Experts,
    I have a issue with Output.Output content consist of  Japanese letters and English letters and numbers.
    When we see print preview in Production, output has all japanese leters and numbers etc.its fine.
    When we take print out through Sap and send it to vendors we are getting garbled characters in place of Japanese language.
    The numbers and English letters are appearing fine.
    I have checked in transaction SOST and SP01, document is as per the requirement.
    Would like to know what willbe the basic cause for such kind of issue and how can we resolve it.

    Hi
    The fonts are specific to the printers
    We maintain font family in the printers,
    Hence you can check this issue with your BASIS consultant.
    Regards
    KRSNA

  • Email sent...but attachment appears in body

    Hi,
    I am trying to send emails with attachments in pl/sql.
    I heard it can be done.
    I tried it, the code runs wiithout erros.
    But i cannot see the actual attachment.
    The content of the attachment appears in the body of the email.
    In the email i see this:
    This is an automated email. Please do not reply!
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="-----AABCDEFBBCCC0123456789DE"
    This is a multi-part message in MIME format.
    -------AABCDEFBBCCC0123456789DE
    Content-Type: text/html;US-ASCII
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename="your_file_name.csv"
    SYS,ICOL$,TABLE,2009-06-19 15:35:34
    SYS,I_USER1,INDEX,2009-06-19 15:35:34
    SYS,CON$,TABLE,2009-06-19 15:35:34
    SYS,UNDO$,TABLE,2009-06-19 15:35:34
    SYS,C_COBJ#,CLUSTER,2009-06-19 15:35:34
    SYS,I_OBJ#,INDEX,2009-06-19 15:35:34
    SYS,PROXY_ROLE_DATA$,TABLE,2009-06-19 15:35:34
    SYS,I_IND1,INDEX,2009-06-19 15:35:34
    SYS,I_CDEF2,INDEX,2009-06-19 15:35:34
    SYS,I_PROXY_ROLE_DATA$_1,INDEX,2009-06-19 15:35:34
    SYS,FILE$,TABLE,2009-06-19 15:35:34
    SYS,UET$,TABLE,2009-06-19 15:35:34
    SYS,I_FILE#_BLOCK#,INDEX,2009-06-19 15:35:34
    SYS,I_FILE1,INDEX,2009-06-19 15:35:34
    SYS,I_CON1,INDEX,2009-06-19 15:35:34
    SYS,I_OBJ3,INDEX,2009-06-19 15:35:34
    SYS,I_TS#,INDEX,2009-06-19 15:35:34
    SYS,I_CDEF4,INDEX,2009-06-19 15:35:34
    SYS,IND$,TABLE,2009-06-19 15:35:34
    -------AABCDEFBBCCC0123456789DE--
    The part between the boundry
    (-------AABCDEFBBCCC0123456789DE--) should come as an attachment.
    Code for attachment:
    PROCEDURE R040_attach
    IS
    v_clob clob := empty_clob();
    c_mime_boundary VARCHAR2(256) := '-----AABCDEFBBCCC0123456789DE';
    v_len INTEGER;
    v_index INTEGER;
    BEGIN
    FOR x IN (SELECT *
    FROM all_objects
    WHERE ROWNUM < 20)
    LOOP
    v_clob :=
    v_clob
    || x.owner
    || ','
    || x.object_name
    || ','
    || x.object_type
    || ','
    || TO_CHAR(x.created, 'yyyy-mm-dd hh24:mi:ss')
    || UTL_TCP.crlf;
    END LOOP;
    UTL_SMTP.write_data(c, 'MIME-Version: 1.0' || UTL_TCP.crlf);
    UTL_SMTP.write_data(
    c,
    'Content-Type: multipart/mixed; boundary="' || c_mime_boundary || '"' || UTL_TCP.crlf
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    UTL_SMTP.write_data(
    c,
    'This is a multi-part message in MIME format.' || UTL_TCP.crlf
    UTL_SMTP.write_data(c, '--' || c_mime_boundary || UTL_TCP.crlf);
    --UTL_SMTP.write_data(c, 'Content-Type: text/html;US-ASCII' || UTL_TCP.crlf);
    --Content-Type: image/jpeg
    UTL_SMTP.write_data(
    c,
    'Content-Type: text/html;US-ASCII'
    || UTL_TCP.crlf
    || 'Content-Transfer-Encoding: base64'
    || UTL_TCP.crlf
    -- Set up attachment header
    UTL_SMTP.write_data(
    c,
    'Content-Disposition: attachment; filename="'
    || 'your_file_name.csv'
    || '"'
    || UTL_TCP.crlf
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    -- Write attachment contents
    v_len := DBMS_LOB.getlength(v_clob);
    v_index := 1;
    WHILE v_index <= v_len
    LOOP
    UTL_SMTP.write_data(c, DBMS_LOB.SUBSTR(v_clob, 32000, v_index));
    v_index := v_index + 32000;
    END LOOP;
    -- End attachment
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    UTL_SMTP.write_data(c, '--' || c_mime_boundary || '--' || UTL_TCP.crlf);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR( -20110, 'Dwx0110 - R030 - ' || SQLERRM );
    END R040_attach;
    Any help would be appreciated.
    Thank you.

    Hi,
    there are some threads you may find interesting:
    UTL_SMTP mail with attachment( Problem in attaching zip file)
    UTL_SMTP or UTL_MAIL
    Regards.
    Al

  • Email is sent correctly, but attachment appears in the body

    Hi,
    I am trying to send emails with attachments in pl/sql.
    I heard it can be done.
    I tried it, the code runs wiithout erros.
    But i cannot see the actual attachment.
    The content of the attachment appears in the body of the email.
    In the email i see this:
    This is an automated email. Please do not reply!
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="-----AABCDEFBBCCC0123456789DE"
    This is a multi-part message in MIME format.
    -------AABCDEFBBCCC0123456789DE
    Content-Type: text/html;US-ASCII
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename="your_file_name.csv"
    SYS,ICOL$,TABLE,2009-06-19 15:35:34
    SYS,I_USER1,INDEX,2009-06-19 15:35:34
    SYS,CON$,TABLE,2009-06-19 15:35:34
    SYS,UNDO$,TABLE,2009-06-19 15:35:34
    SYS,C_COBJ#,CLUSTER,2009-06-19 15:35:34
    SYS,I_OBJ#,INDEX,2009-06-19 15:35:34
    SYS,PROXY_ROLE_DATA$,TABLE,2009-06-19 15:35:34
    SYS,I_IND1,INDEX,2009-06-19 15:35:34
    SYS,I_CDEF2,INDEX,2009-06-19 15:35:34
    SYS,I_PROXY_ROLE_DATA$_1,INDEX,2009-06-19 15:35:34
    SYS,FILE$,TABLE,2009-06-19 15:35:34
    SYS,UET$,TABLE,2009-06-19 15:35:34
    SYS,I_FILE#_BLOCK#,INDEX,2009-06-19 15:35:34
    SYS,I_FILE1,INDEX,2009-06-19 15:35:34
    SYS,I_CON1,INDEX,2009-06-19 15:35:34
    SYS,I_OBJ3,INDEX,2009-06-19 15:35:34
    SYS,I_TS#,INDEX,2009-06-19 15:35:34
    SYS,I_CDEF4,INDEX,2009-06-19 15:35:34
    SYS,IND$,TABLE,2009-06-19 15:35:34
    -------AABCDEFBBCCC0123456789DE--
    The part between the boundry
    (-------AABCDEFBBCCC0123456789DE--) should come as an attachment.
    Code for attachment:
    PROCEDURE R040_attach
    IS
    v_clob clob := empty_clob();
    c_mime_boundary VARCHAR2(256) := '-----AABCDEFBBCCC0123456789DE';
    v_len INTEGER;
    v_index INTEGER;
    BEGIN
    FOR x IN (SELECT *
    FROM all_objects
    WHERE ROWNUM < 20)
    LOOP
    v_clob :=
    v_clob
    || x.owner
    || ','
    || x.object_name
    || ','
    || x.object_type
    || ','
    || TO_CHAR(x.created, 'yyyy-mm-dd hh24:mi:ss')
    || UTL_TCP.crlf;
    END LOOP;
    UTL_SMTP.write_data(c, 'MIME-Version: 1.0' || UTL_TCP.crlf);
    UTL_SMTP.write_data(
    c,
    'Content-Type: multipart/mixed; boundary="' || c_mime_boundary || '"' || UTL_TCP.crlf
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    UTL_SMTP.write_data(
    c,
    'This is a multi-part message in MIME format.' || UTL_TCP.crlf
    UTL_SMTP.write_data(c, '--' || c_mime_boundary || UTL_TCP.crlf);
    --UTL_SMTP.write_data(c, 'Content-Type: text/html;US-ASCII' || UTL_TCP.crlf);
    --Content-Type: image/jpeg
    UTL_SMTP.write_data(
    c,
    'Content-Type: text/html;US-ASCII'
    || UTL_TCP.crlf
    || 'Content-Transfer-Encoding: base64'
    || UTL_TCP.crlf
    -- Set up attachment header
    UTL_SMTP.write_data(
    c,
    'Content-Disposition: attachment; filename="'
    || 'your_file_name.csv'
    || '"'
    || UTL_TCP.crlf
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    -- Write attachment contents
    v_len := DBMS_LOB.getlength(v_clob);
    v_index := 1;
    WHILE v_index <= v_len
    LOOP
    UTL_SMTP.write_data(c, DBMS_LOB.SUBSTR(v_clob, 32000, v_index));
    v_index := v_index + 32000;
    END LOOP;
    -- End attachment
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    UTL_SMTP.write_data(c, '--' || c_mime_boundary || '--' || UTL_TCP.crlf);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR( -20110, 'Dwx0110 - R030 - ' || SQLERRM );
    END R040_attach;
    Any help would be appreciated.
    Thank you.

    This is the forum for Oracle's SQL Developer tool, not for general SQL and PL/SQL questions.
    Questions like this will get a better response in the PL/SQL forum.
    Here is some code I have used to send emails with attachments.
      utl_smtp.open_data(conn);
      utl_smtp.write_data(conn,'Subject:'||subject);
       utl_smtp.write_data( conn, utl_tcp.crlf );
      utl_smtp.write_data( conn, 'Content-Disposition: attachment; filename="attachment"' || utl_tcp.crlf);
        utl_smtp.write_data( conn, 'Content-Transfer-Encoding: base64' || utl_tcp.crlf );
        utl_smtp.write_data( conn, utl_tcp.crlf );
        v_length := dbms_lob.getlength(attachment);
        <<while_loop>>
        while v_offset < v_length loop
          dbms_lob.read( attachment, v_buffer_size, v_offset, v_raw );
          utl_smtp.write_raw_data( conn, utl_encode.base64_encode(v_raw) );
          utl_smtp.write_data( conn, utl_tcp.crlf );
          v_offset := v_offset + v_buffer_size;
        end loop while_loop;
        utl_smtp.write_data( conn, utl_tcp.crlf );
      utl_smtp.write_data(conn,utl_tcp.crlf||utl_tcp.crlf);
      utl_smtp.write_data(conn,content);
      utl_smtp.write_data(conn,utl_tcp.crlf||utl_tcp.crlf);
      utl_smtp.close_data(conn);
    content is a varchar holding the body of the email.
    attachment is a blob holding the attachment.
    Edited by: Jim Smith on Nov 2, 2012 9:24 AM

  • Need help in solving garbled characters in the translated es-mx applicaiton

    I followed the APEX Globalizations instructions to translate an application from es-us language to es-mx language. After I uploaded, applied, and published the translated file, the es-mx application was displayed based on my browser's language setting. However, some translated texts with special characters are garbled. For example, the "Number" is translated into "Número", but it is displayed as "N�mero".
    After our DBA has verified that the PlsqlNLSLanguage is set to AMERICAN_AMERICA.AL32UTF8 in the APEX DAD configuration file, the garbled characters still appear in es-mx application.
    Any help or suggestion on how to tackle this inproper translation issue is greatly appreciated.

    With your suggestion, it triggered me to check the Encoding setting on my Internet Explorer which was set to Western European. After I changed my Encoding setting to Auto Select, all translated texts are displayed in es-mx lanaguge correctly.
    Thanks for your suggestion.

  • Apexlib error :Message section  t7Messages not found

    Hi everybody. After installing Apexlib, I forced my application to produce an error in order to verify if error handling works properly.
    Well, when I produce the error, it appears the alert window of the browser with the following message: "Message section t7Messages not found".
    I have followed the instructions on "How to integrate", checking if the page templates of shared components refer to t7Messages instead of t1Messages (my theme number), but it all seems correct. What have I missed? What could I control more?
    Thanks for any help.
    Greetings from Rome
    Stefano

    Hi Stefano,
    based on the code snipped you posted I would assume that you haven't changed the call of the apexlib.error.init Javascript function in the Page 0 region "ApexLib - Handle Error Page"
    From the HowTo Integrate document chapter 3.4:
    Note: t7 has to be replaced by your theme number! #6699cc is the background color and #000000 is the foreground color for cell highlighting.
    So your code should look like
    &lt;script type="text/javascript">
    apexlib.error.init
      ( "t1Messages"
      , "t1Notification"
      , "#6699cc"
      , "#000000"
      , apexlib.error.DISPLAY_LOCATION.FIELD_AND_NOTIFICATION
    apexlib.error.handleErrorPage();
    </script>Hope that helps
    Patrick
    My APEX Blog: http://www.inside-oracle-apex.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

  • When I hook my ipod up to my mac I used to get the Itunes has detected an ipod that appears to be corrupted error message. It would then sync all my song to the ipod but when I ejected it, none of the songs would be on the ipod. Now I hook it up and I get

    When I hook my ipod up to my mac I used to get the Itunes has detected an ipod that appears to be corrupted error message. It would then sync all my song to the ipod but when I ejected it, none of the songs would be on the ipod. Now I hook it up and I get the Mac OS X can't repair the disk error message. Then the spinning colored pinwheel pops up and I can't use iTunes. Please HELP!!!!!!

    Sounds like your iPod is broken. Take it to Apple or someone else who repairs iPods and see if you can get it fixed, or get it replaced.

  • I am unable to update my apps... in my purchases page it appears as "update", then a message tells me to log on with the Apple ID I purchased the app with... Well I have tried my two different accounts and neither one will work, can someone help ??

    I am unable to update my apps... in my purchases page it appears as "update", then a message tells me to log on with the Apple ID I purchased the app with... Well I have tried my two different accounts and neither one will work, can someone help ??
    And is there any way to sync all my purchases and accounts to just have one... It is a bit stupid that you dont even get a list of something of what account you may of used, or some kind of hint, so you could log on to the right account. I am really stuck ...
    Please Advise......

    You can't merge accounts. But you can check your purchase history:
    iTunes Store & Mac App Store: Seeing your purchase history and order numbers
              http://support.apple.com/kb/HT2727
    Also, what may seem stupid to you... may be a protection of privacy to others.

  • HT2500 The message section of my Mail is very tiny to read as I type my messages.  How do I enlarge the viewing size of my window?

    The message section of my Mail is very tiny to read as I type my messages.  How do I enlarge the viewing size of my window?
    I am referring to outgoing new messages that I am typing.

    Can you drag the bottom right corner? You can in Snow Leopard, and I imagine you can in Lion.

  • The hyperlink manager in the case messages section doesn't work

    Hi
    One of my clients uses the messages section in cases to respond to customer enquiries to keep track od communications (as it's set up for). However, you can't add a hyperlink to a message. If you open the Hyperlink Manager, the pop up box just shows a system error. Custom links work, but he wants to insert another web address.
    Can we please get this fixed.
    Thanks
    Jarrod

    Hi Jarrod,
    You need to create a page for the responses, add it to secure zone, place {module_case,a} onto it and customers will then be able to go there, log in and view the replies.
    What you may want to look at is CST. You can append it to web forms and customers can email it directly and all the conversations will be stored in the CRM.
    Cheers,
    -mario

  • Outlook mail appearing as garbled text

    Recently we have shifted from gmail to outlook and what earlier worked with gmail now is appearing as garbled text in outlook.
    A mail notification is triggered from TACTIC ( a web framework ). It worked well earlier. Seems to be related with text encoding but not sure where or how to do that. How should I go about it( have normal text appearing).
    Using Exchange server as backend. Microsoft outlook web app in front.

    Is the mail appearing fine in other clients like ActiveSync/Outlook Web Access?
    What is the version of Exchange server you are running?
    Can you paste a screenshot of what you notice on gmail and what you notice on Outlook by removing all the personally identifiable information please?

  • Mail messages in my In Box are not appearing in the list of messages.

    Mail: SOME mail messages in my In Box are not appearing in the list of messages.  Instead, there's a blank line in its place if already read, or just the blue dot if unread.  But when I click on the line, the message's column/header detail appears (and I can open it).
    (Coincidental or not, immediately prior to this situation, I established a New Rule that mail coming from my son's email address should be Moved to the IN Box as they had been going to Trash.  None of the emails I'm questioning have any reference to his email address in them.)

    Continuation of info (from GDTGG): When I leave that mail message and click on a different one, the blank line marking its place once again appears for the message.  (There was a similar problem posted by someone else in 2009 entitled "Inbox Has Blank Lines" but with no apparent solution that I could find.)

  • I created a Group and put in all names and email addresses but cannot get the group to appear in an outgoing email message.  What am I doing wrong?

    I created a Group and put in all names and email addresses but cannot get the group to appear in an outgoing email message.  What am I doing wrong?

    This may help.
    Can't connect to the iTunes Store
    What happens whenyou try to connect? Error messages?

  • How to attach a pdf file to a message posted on this forum

    Hello All,
    I'm trying to attach a pdf file to a message that I'm going to post. I don't a way to do, although I see that I can attach image files. Is there a way to attach a pdf file or this is not allow on this forum?

    A lot of folks set up a free account at Acrobat.com. Upload the file, share it, publish it, and get the link to post here.

Maybe you are looking for

  • Frequent Mouse-Down Errors

    I'm experiencing frequent (every 11 minutes or so) mouse-down errors. As this occurs in any variety of apps, including the Finder, the application in-use seems to not be a factor. I will be using an application and suddenly the track-pad no longer wo

  • Error on start up oc4j 10.1.3

    i have this exception when start up oc4j posted in global-application.log defaultWebApp: Error preloading servlet javax.servlet.ServletException: Error instantiating servlet 'jsp'. Servlet class org.apache.jasper.servlet.JspServlet not found in web-a

  • Why is the Power Pc application Not supported on Maverick?

    The MS product is not supported on Maverick Why?

  • Flash Forum Suggestion

    On the Adobe.com and Forums Feedback forum I posted a suggestion which applies to this forum. It concerns the two languages, Actionscript 2.0 and 3.0, we are all so familiar with. ;) Well maybe it is personal, but I find it increasingly difficult to

  • What are those files that remain/show up after installation

    this one - adobe, Java, Libre etc. What are they ? Can I delete them ? Also sometimes after installation something alike shows up on my desktop ...  Can anyone explain what exactly is this. Thanks.