How do i format the contents in message body in the email

Hi guys,
I have a problem.I am sending a complete record columns of a interative report from apex as a mail.But the contents are very bad to see.I want them to appear as a report along with headings in th email to user.PLs guide me in dis
Thanks in advance
Samiya

DECLARE
l_body CLOB;
l_body_html CLOB;
as_id number;
cust_id number;
customer_name varchar2(100);
mproduct varchar2(30);
minstance varchar2(20);
mtoa varchar2(30);
mton number;
mpriority number;
massesor1 varchar2(15);
massesor2 varchar2(15);
mreviewer1 varchar2(15);
mreviewer2 varchar2(15);
mDoa date;
mstartdate date;
mreviewdate date;
mfinaldate date;
mactualdate date;
mssc varchar2(10);
mpanno number;
mtime varchar2(10);
mcustinterview varchar2(10);
minterviewdate date;
mdev_by varchar2(100);
mcust_feedback varchar2(4000);
mSr_no number;
mgar_id number;
mpoc varchar2(30);
BEGIN
select ASSESMENT_ID,CUSTOMER_ID, CUSTOMER, PRODUCT, INSTANCE, TOA, TON, REL_PRIORITY, ASSESOR1, ASSESOR2, REVIEWER1, REVIEWER2, DOA, START_DATE, REVIEW_DUE_DATE, FINAL_DUE_DATE, ACTUAL_DEL_DATE, SSC , PA_NO, TIME_ENTRY, CUST_INTVW , INTVW_DATE , DEV_BY_ENG , CUST_FB , SR_NO , GAR_ID , POC into as_id,cust_id, customer_name, mproduct, minstance, mtoa, mton, mpriority, massesor1, massesor2, mreviewer1, mreviewer2, mDoa, mstartdate, mreviewdate, mfinaldate, mactualdate, mssc, mpanno, mtime, mcustinterview, minterviewdate, mdev_by, mcust_feedback,mSr_no, mgar_id, mpoc from ASSESMENT where CUSTOMER= :P17_CUSTOMER_ID;
l_body := l_body || as_id || ' ' || cust_id || ' ' || mproduct || ' ' || minstance || ' ' || mtoa || ' ' || mton ||' ' || mpriority ||' ' || massesor1 || ' ' || massesor2 || ' ' || mreviewer1 || ' ' || mreviewer2 ||' ' || mDoa || ' ' || mstartdate || ' ' || mreviewdate || ' ' || mfinaldate ||' ' || mactualdate || ' ' || mssc ||' ' || mpanno || ' ' || mtime || ' ' || mcustinterview || ' ' || minterviewdate || ' ' || mdev_by || ' ' || mcust_feedback ||' ' || mSr_no || ' ' || mgar_id ||' ' || mpoc ||utl_tcp.crlf;
l_body_html := '<html>
<head>
<style type="text/css">
body{font-family: Arial, Helvetica, sans-serif;
                    font-size:10pt;
                    margin:30px;
                    background-color:#ffffff;}
span.sig{font-style:italic;
font-weight:bold;
color:#811919;}
</style>
</head>
<body>'||utl_tcp.crlf;
l_body_html := l_body_html || as_id || ' ' || cust_id || ' ' || mproduct || ' ' || minstance || ' ' || mtoa || ' ' || mton ||' ' || mpriority ||' ' || massesor1 || ' ' || massesor2 || ' ' || mreviewer1 || ' ' || mreviewer2 ||' ' || mDoa || ' ' || mstartdate || ' ' || mreviewdate || ' ' || mfinaldate ||' ' || mactualdate || ' ' || mssc ||' ' || mpanno || ' ' || mtime || ' ' || mcustinterview || ' ' || minterviewdate || ' ' || mdev_by || ' ' || mcust_feedback ||' ' || mSr_no || ' ' || mgar_id ||' ' || mpoc ||utl_tcp.crlf;
apex_mail.send(
p_to => '[email protected]',
p_from => ' [email protected]',
p_body => l_body,
p_body_html => l_body_html,
p_subj => 'APEX_MAIL Package - HTML formatted message');
END;
Edited by: user10763992 on Jun 23, 2009 6:33 AM

Similar Messages

  • How do I format the layout of my pages in Iphoto for a book?

    How do I format the layout of my pages in an iphoto for a book?

    Welcome to Apple Support Communities.
    Open iPhoto.
    Select 'Book' from the bottom Toolbar.
    Choose a book or other template.
    Select your photos and drag them to the template, following the instructions.
    Note the 'Options and Prices' button on the left.
    When you've filled your book template, save it and submit it online for printing.

  • How do i format the memory card on n78

    how do i format the memory card on my n78? do we another application to do it? can i do it with my nokia? the music player keeps on searching for files non stop and i wanna know if formatting the memory card solves the problem
    Solved!
    Go to Solution.

    29-Oct-2008 02:05 PM
    grschinon wrote:
    29-Oct-2008 01:48 PM
    grayburn wrote:
    BTW i didn't say anything about looking in the file manager.
    You should have because that's how to do it on FP2 phones such as the N78 and N96.
    Menu > Tools > File manager
    Go into the "Memory card" section, then:
    Options > Memory card options > Format
    Learn something new everyday.
    Grayburn @ www.nokiausers.net & www.dailymobile.se....come say Hello!!!
    If you appreciate ANY help from a member,then show it by clicking on the Blue Star button, cheers

  • Already deleted all files from my MINIMAC and still appears to have only 200 gb free. How do I format the macmini?

    Already deleted all files from my MINIMAC and still appears to have only 200 gb free. How do I format the macmini?

    If you deleted from within the OS, did you empty the Trash?

  • How can I format the number in ?shape-text:

    Hi All,
    I am using shapes in the rtf template. I need to format the number which is used in the shape as
    <?shape-text:mytagname?>
    now mytagname has inconsistent values in the xml like 3, 4.5, 3.55. I want to format this to two digits after decimal i.e 0.00 format.
    How can I format the number in <?shape-text: ???
    Regards,
    Amit Deshpande
    Persistent Systems Ltd

    Hi Amit,
    <?shape-text:format-number(4.5,'#,##0.00')?>

  • HT3275 How do you Format the external hard drive been used for time machine?

    Error reads "Not enough space on the external hard drive" How do i format the memory and start again?
    Thanks Geremy

    ON an external hard drive.. that is easy.. just open disk utility and reformat it. Make sure you use Mac Extended Journeled. (HFS+)

  • How can i make apple mail dislay message body to the left not below the mes

    How can i make apple mail display message body to the left not below the messages
    headers pane ? something like outlook

    There is a plugin to do this in Leopard but currently its not compatible with SL however you might like to try the beta release which has preliminary support for 10.6:
    http://www.macupdate.com/info.php/id/21899

  • I want to change my iCloud email. My dad doesn't want messages from my iPad to his. How do I change the email?

    My dad has messages from my ipad. He doesn't want the messages that I text. How can I chane the email on the I cloud?

    Simply stop using the same Apple ID for iMessage on both devices.

  • ICloud accidentally set-up with erroneous email acct. How do I reset the email originally used to start the Apple ID? I'm stuck in a loop...

    Hi Apple friends! Here's my frustrating situation. When I got the new computer (2012 Macbook Pro), I tried to set up iCloud but accidentally input an erroneous email acct. I cannot access iClod because the email was accidentally input as "[email protected]", not "[email protected]". How do I reset the email originally used to start the Apple ID? I'm stuck in a loop, and not only cannot use iCloud, but I keep getting messages popping up to register my iCloud with a non-existent email...
    Help?
    Sincerely,
    Cole
    [email protected]

    Have you tried to go into System Preferences > iCloud and entering the correct information there? You will first have to "sign out" of the wrong account and then log in with the correct information.
    If that does not work you should direct follow up to the iCloud for Mac forum.

  • HT5312 How do you change the email address used to send security answers?

    How do you change the email used to send the security answers you have forgotten? I have changed the alternative email adress in Name, ID and Email Addresses but this does not change the email address in the Password and Security section.

    Jus what do you want to accomplish? The Apple ID email address is used for variosu thing onthe iPod like:
    - For purchasing media. Srrings.iTunes and App stores. Sing out and sign into anoterh account
    - Settings>iCLoudl for iCloud account
    - Settings>FaceRome for Apple ID and where You can Be Reached At email address
    - Settings>Messages for Send And Receive email address.
    - Maybe for Game Center

  • No longer use this email account but how do you backup the email that is...

    No longer use this email account but how do you backup the email that is in the "example" folder, So that I can delete the account on my mail app?

    Not sure what you mean. Deleting a POP account only deletes the messages stored in the account’s mailboxes, not any messages stored in custom “On My Mac” mailboxes, if that’s what you mean. It’s not that Mail goes after your mail trying to delete as much as it can. It’s just that if a mail account is deleted, then its mailboxes cannot exist anymore...
    That said, instead of deleting the account right away, you can just disable it (i.e. turn OFF Preferences > Accounts > Advanced > Enable this account), leave it that way for some time, and delete it only after making sure you didn’t miss anything while the account was disabled.
    BTW, if you back up your data, and the ~/Library/Mail folder in particular, you won’t have to worry about accidentally losing anything as a result of doing something like that...
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. That is, ~/Library is the Library folder within the user’s home folder, i.e. /Users/username/Library.

  • How do I stop the EMAIL sync between my desktop  and my laptop?

    How do I stop the email sync between my desktop computer and my laptop? Right now, the laptop is set to automatically load my email when I click on mail. I use my desktop daily; laptop only when traveling. The laptop is somehow set to receive ALL messages, so I get messages that are several weeks/months old. I want to be able to manually sync and NOT have all of the hundreds of old, already viewed messages sent to my laptop. However, I DO want my desktop to receive all of my old messages so that I can have them when I return from traveling. Thanks.

    Actually, your mail isn't 'synchronizing' in the conventional sense at all. And, you are effectively trying to make it do so manually at the present time. As you have discovered, this simply does not work.
    The only way that you can effectively address your requirements is to use IMAP—rather than POP3—technology. Using IMAP will allow you to readily control what is stored on the server, and will provide a view into that data store when you use your portable computer.
    While is is possible to use POP3 and set one computer to delete mail from the server and the other not to, this is potentially fraught with problems, and will not fully address your concerns.
    An IMAP option is available from such providers as Apple with .Mac, AOL with AOL Mail and AIM Mail, and Google with GMail. You can convert an existing POP3 account with such a provider to IMAP with little difficulty, or initiate a new IMAP account with such a provider and forward mail to it from providers who do not offer such an option.

  • How can I edit the email on a PDF form that's not created by me?

    I'm a beginner for Acrobat Pro and there is an email button on the form for user to email to the previous admin, how can I change the email addres to mine? When I try to edit on forms, it asked me to click "save a copy", I really can edit and changed to email address, however when I tested it, it said this is only a data but not a form.

    Tools > Content > Edit Document Text
    Better yet, edit the original source document, create a new PDF, and replace the old pages with the new: Tools > Pages > Replace

  • Can I format the email announcement of an Acrobat Shared Review

    I use Acrobat's Shared Review feature to get approval of draft documents. Acrobat sends out an email that requests people to join the review. However, this email is in plain text and its appearance is horrible. I want to be able to format the email, doing things like putting the deadline in bold.
    Right now, I normally send the review request to myself. Then I create and format an email in Outlook, and insert a link to the review. Is there a better way?

    You can't change the email body that Acrobat composes, but you can copy what it's generated and paste it into your regular email software, where you can apply templates etc.
    Since the SR system will now only run on local shared folders or WebDAV, the content of the 'invitation' email is largely redundant anyway - you don't need the special Acrobat.com hyperlink anymore, and would have to manually add a link to the PDF.

  • How do I change the email Address associated with my FF forum userid?

    I am new to the FF help forum and I can't find an appropriate place to post this. How do I change the email address associated with my FF help forum registration? I tried to use my personal email address but somehow it says it's already registered - but it won't give me the userid. I used a business email address to register now but I want to try to get it over to my personal email address - if FF forum will let me do that.
    thank you

    If you are logged on to the SUMO site then you should see a "Welcome, ffuserX" message in the side bar at the right with a link to go to your profile.<br />
    Click the "Edit My Profile" button and you have a "Change" button next to your current email address.

  • HT5621 How do I change the email and apple account on my new work IPad from the old user to my email and account?

    How do I change the email and account info on my new iPad from the old user to me?

    Restore the iPad to out of the box configuration. This will erase all contents/settings on the iPad. Then set up using your ID and email info.
    Troubleshoot Your iPad: Restore
    http://www.dummies.com/how-to/content/troubleshoot-your-ipad-restore.html
     Cheers, Tom

Maybe you are looking for

  • Client Install Issue - SCCM 2012 R2 - Manual Deploy Installed ok

    Hello, I have sccm 2012 configured with 2,000 machine approx. It is been used mainly as a Software Deployment tool for now. On checking a recent IE10 upgrade, I noticed that there is a number of machines that do not have the client installed (and thu

  • Exception NoClassDefFoundError while using the plug-in API IResource

    hi, i am trying to use the plug-in API IResource . for this i have included the necessary jar files. when i am using the class Iresource in my application then it is throwing the following exception : Error stacktrace: com.sap.tc.webdynpro.services.e

  • Attached document not opening in FB03.

    Hi , I am using an error while checking uploaded attchment in the transaction FB03. When any file(ex. pdf) is uploaded from presentation server, it is uploaded successfully and able to see the content . But when the same file is downloaded on the app

  • Already found a BuG in the PR1.2

    sins this morning the new PR1.2 is availeble. Not much changes. Already found a BuG The Calender Noticing (Bday warning) for missed calender warning When unloching the phone and accept the missed warning. You get on the screen with the (Bday) notific

  • Capturing gives av files

    I am capturing video from an old Sony camcorder, but the clips do not appear in the bin. In the capture scratch folders, they are listed only as av files, and thus not compatible. What am I doing wrong?