Sending mail attachment through PL/SQL, message not showing in mail body

Dear All,
I am sending mail with attachment(pdf file) through oracle.
file is attached and showing.
problem is,message is not displaying in message body, it's displaying also in file attachment.
i want to show message in body.
mime setting is as follow:
mesg := mesg || 'Mime-Version: 1.0' || crlf ||
'Content-Type: multipart/mixed; boundary="' || boundary || '"' ||
crlf || crlf ||
'This is a Mime message, which your current mail reader may not' || crlf ||
'understand. Parts of the message will appear as text. If the remainder' || crlf ||
'appears as random characters in the message body, instead of as' || crlf ||
'attachments, then you''ll have to extract these parts and decode them' || crlf ||
'manually.' || crlf || crlf;
utl_smtp.write_data(conn,mesg);"
-- Write the text message or message file or message CLOB, if any
if (message is not null and length(message) > 0) or
clob_message is not null then
mesg := '--' || boundary || crlf ||
'Content-Type: text/plain; name="message.txt"; charset=US-ASCII' ||
crlf ||
'Content-Disposition: inline; filename="message.txt"' || crlf ||
'Content-Transfer-Encoding: 7bit' || crlf || crlf;
utl_smtp.write_data(conn,mesg);
if instr(message,'/') = 1 or instr(message,':\') = 2 or
instr(message,'
') = 1 then
split_path_name(message,directory_path,file_name);
append_file(directory_path,file_name,'text',conn);
utl_smtp.write_data(conn,crlf);
elsif message is not null and length(message) > 0 then
utl_smtp.write_data(conn,message);
if length(message) = 1 or
substr(message,length(message)-1) != crlf then
utl_smtp.write_data(conn,crlf);
end if;
elsif clob_message is not null then
append_file(null,'message.txt','text/plain',conn,clob_message);
end if;
end if;please help

dear, when i open this auto generated mail into outlook express, then message is showing properly, but in microsoft outlook 2007, it's showing message as text attachment.
I appreciate any hint...
thanx.

Similar Messages

  • How do I send an attachment through email

    How can I send an attachment through email.

    This is not a firefox problem, but see analytical information in this link:
    [http://www.ehow.com/how_4942_send-e-mail.html How to Send an E-mail Attachment]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Send mails with csv file as an attachment through oracle(SQL SCripts / Stor

    Hello Everybody,
    I have recently come across a requirement in which I am supposed to send mails with csv file as an attachment through oracle(SQL SCripts / Stored Procedure) .
    The contents of the csv file are to be retreived from the Database as well as the content of the mail and to whom it needs to be sent has also to be picked up from the database.
    Can somebody suggest me with a suitable code for the same?
    Would be of great help..!!
    Thanks & Regards,
    - VR
    Edited by: user646716 on Dec 18, 2009 10:44 AM

    read below links
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:255615160805
    http://www.orafaq.com/wiki/Send_mail_from_PL/SQL#Send_mail_with_UTL_TCP_-withattachments
    How to send csv file as an attachment

  • TS3276 Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Not sure if this is a fix, but I tried sending myself a test email from only  the Bcc field, and lo and behold it now shows the Bcc field in all sent item previews;
    ...maybe leaving the 'To' field blank on purpose forced Mail to show it.
    Rebooted the Mail program, still there - rebooted the machine, still there. Hope this is still relevant and it works for you too - J.

  • Sending an emial through PL/SQL procedure

    Hi All,
    Can any one suggest me how to send an email through PL/SQL procedure without any mail package installed in Database.
    Thanks

    Does "without any mail package" mean that you don't want to use the UTL_MAIL or UTL_SMTP packages that Oracle delivers (depending on the version of Oracle that you haven't mentioned)?
    Justin

  • TS4002 Once I send my email on icloud, it does not show up on my mail client or on icloud.  How can I retrieve an email sent this way?

    Once I send my email on icloud, it does not show up on my mail client or on icloud.  How can I retrieve an email sent this way?

    SADLY  not as i downloaded an upgrad to my original PAGES/
    i have in the meantim had to open www.icloud. then from there import the file that i am working on and then check on ipad if it uploaded/ yes it did.
    but what a waste of time as it doesn not save any changes done automatically back in the cloud....
    i am now downloading the new LION and hope that it will fix the problem
    i cant find any other way. I was lead to believe that you wrote, it saved automatically, on to the cloud, you then opened anohter device in anotother country even, and the new file was there, waiting, in its latest version.......
    and the same magic was supposed to happen in reverse.
    It doesn't/
    if i have to open a browser, go to www.icloud....why on earth did they not just leave us an icon to drop it in in that case?
    I hope the new lion will help resolve the isssue/
    any other ideas> keep em coming...thank you so much.

  • Complete code to send an attachment with a text message using java mailapi

    complete code to send an attachment with a text message using java mailapi
    code should be free from error

    http://java.sun.com/products/javamail/FAQ.html#examples
    Was this code too hard to find?
    Was the FAQ too hard to find?

  • How do you send a attachment through email on iPad 2

    How do you send a attachment through email using iPad 2

    How to Attach Photos and Videos to Emails on an iPhone or  iPad
    http://www.wikihow.com/Attach-Photos-and-Videos-to-Emails-on-an-iPhone-or-iPad
    iPad Basics: Sending an Email With An Attachment
    http://ipadacademy.com/2012/03/ipad-basics-sending-an-email-with-an-attachment
    How to add, send and open iPad email attachments
    http://www.iskysoft.com/apple-ipad/ipad-email-attachments.html
    How to Send Multiple email Attachments from your iPad or iPhone
    http://ipadacademy.com/2014/03/how-to-send-multiple-email-attachments-from-your- ipad-or-iphone
     Cheers, Tom

  • SMS outgoing messages not showing in messaging apps since kitkat

    Since the upgrade, when I use the integrated Voice Mate or Google Search to create an SMS, it successfully sends it, but the outgoing text does not show in the SMS app.  I've tried the stock SMS and other 3rd party apps, with the same results.  However, if I use a 3rd party app like Assistant, Sherpa, Text by Voice.  While just using these would be a solution, they don't always want to cooperate like the stock Google Search or even Voice Mate.  Is there a fix to this latest upgrade glitch?

        Auburntiger1856,
    I completely understand where you're coming from, I know it's important to have access to the messages. Have you changed the settings in Voice Mate(Voice Mate>Menu>Settings) to ensure it's backed up to your stock SMS app?
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • OSX Messages Not showing "My" Contact Pics

    OSX Messages Not Showing "My" Contact Pics
    But My contacts app can showing my contact pics.
    So I send the messages to "My"
    1. Messages Automatic change @me.com and @icloud.com
    2. @me.com can't Showing "My" Contact Pics
    3. @icloud.com can Showing "My" Contact Pics
    4. But My Right Contact Pics, always can't showing "My" Contact Pics.

    Messages isn't using the picture from the contacts app. You can set a user picture under "Messages" > "Change My Picture".

  • Previous Photos In Messages Not Showing (Blue Question Mark)

    Previous Photos In Messages Not Showing (Blue Question Mark)
    iPhone 4s, updated to iOS 8.1.1, and now previous photos in messages (imessage & text) show as blue question mark.
    Not viewable in details (view) either. However any new photos sent or received are viewable. PLEASE HELP!!!
    (MMS is turned on & over 5GB of free space on phone)

    I have the same issue. Does anybody know how to fix it?
    It is really annoying... I chose iphone to be ensure about functionality and stability of this product.
    Any help appreciated.
    IOS. 8.1.1 iphone 5s

  • TS1702 Already purchase applications through apple ID is not showing in apps store purchase history of apps and If I try to download the same application in apps store  its showing paid application in apps store with using same apple ID account. Please re

    Already purchase applications through apple ID is not showing in apps store purchase history of apps and If I try to download the same application in apps store  its showing paid application in apps store with using same apple ID account.

    Thanks King_Penguin for taking time to read and reply. 
    I just purchased this movie on Thursday, May 15, so just a few days ago.  I have never had any trouble whatsoever since I have been in Vietnam.  I have downloaded several movies and even music and they have all synced to my respected Apple products except for this purchase. 
    Sorry, I don't quite understand what you mean by studios and different versions.  Could you please explain? 
    I checked my purchased list in my purchase history under my account and there are no hidden items. 

  • HT5622 Messages not showing up on my iPad?

    Why are the messages not showing up both on my iPad and iPhone ?  Please advise

    Movies are not eligable for iTunes match, it s just music and music video, the 'add to iClouyd' option is a generic entry in the list, Apple should really have removed it when it applies to movies.

  • Send pdf attachment with pl/sql

    Hello,
    Does anybody has a sample code on how to send an pdf file as attachment using pl/sql?
    Thanks

    PDF file distribution via e-mail: http://plpdf.com/23-1725.html

  • Convert spool to xls and send the attachment through email

    Hello,
    I have a requirement to convert spool to xls and then send the xls as an attachment through email,how sould i go about it,which fm can i use please advice..
    Thanks.

    Please check the links
    Re: Spool to XLS
    Re: converting spool data to xls file format.
    Regards
    Satish Boguda

Maybe you are looking for

  • Ipod nano 6th gen is not recognized by itunes on a PC running Windows XP professional SP3, itunes 10.2

    Running Windows XP professional SP3 and itunes 10.2. I have followed every troubleshooting page on the apple support site yet my ipod nano 6th gen is not recognized by itunes (but it shows on my pc as a hard disk) weirder still, my ipod nano 3rd gen

  • Can i create a standby database in oracle 10g standared edition ?

    what are the steps required for creating a standby database using oracle 10g standard edition. or Any other feature for mirroring database in oracle 10g standared edition

  • Zip file upload

    When I do a bulk upload of .pdf files from an NT Server to Portal, some of the files are not showing up, without a corresponding error message in the log file ... do you know why?

  • N_r_data_set- n_sx_version_20a_1 table interface

    Can anyone tell me how the n_r_data_set->n_sx_version_20a_1 structure is used in a table interface? I have been able to take a look at it contents in the debugger and see that it holds all data pertaining to the cells in a table.  What I want to do i

  • Replacing a win8.1 key without activating it

    Hi, I'm working a laptop that have a bad key installed. (I'm assuming it was a flagged corporate key.) The owner of the laptop bought a legit key from a local retailer. I did a factory restore to reset everything on the system. Every time I try to ac