Error when sending HTML format mail from Oracle 9i forms

Dear All,
i have created one procedure with 15 in parameter by which i can send mail in HTML format. due to length problem i am using 15 parameter, every parameter has length 32767, i am splitting HTML coding after every parameter length fulfilled
when 3 or 4 parameter only fulfilled mail comes well, but more than 4 parameter fulfilled mail is not coming, will any one of you kindly please help me to resolve this
following procedure i am using.......
PROCEDURE P_SEND_MAIL( subject_p varchar2, salutation_p varchar2, plan_hdr_msg_p varchar2,
plan_dtl_msg_p_1 varchar2, plan_dtl_msg_p_2 varchar2, plan_dtl_msg_p_3 varchar2, plan_dtl_msg_p_4 varchar2,
plan_dtl_msg_p_5 varchar2, plan_dtl_msg_p_6 varchar2, plan_dtl_msg_p_7 varchar2, plan_dtl_msg_p_8 varchar2,
plan_dtl_msg_p_9 varchar2, plan_dtl_msg_p_10 varchar2, plan_dtl_msg_p_11 varchar2, plan_dtl_msg_p_12 varchar2,
plan_dtl_msg_p_13 varchar2, plan_dtl_msg_p_14 varchar2, plan_dtl_msg_p_15 varchar2, summary_p varchar2,
cmplmntry_sign_msg_p varchar2, mailto_p varchar2 ) IS
mail_from varchar2(100);
     mailhost varchar2(30) := 'MAIL-SRVR';
     crlf varchar2(10) := CHR(13)||CHR(10);
     mess_bdy varchar2(10000);
     Port number := 25;
     conn UTL_SMTP.CONNECTION;
begin
     mail_from := 'IT-Department';
     mess_bdy := 'Date: ' ||TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' )|| crlf ||
     'From:' ||mail_from|| crlf ||
     'Subject:'||subject_p|| crlf ||
     'To: ' ||mailto_P|| crlf ||'' || crlf;
     conn:= utl_smtp.open_connection( mailhost, Port );
     utl_smtp.helo( conn, mailhost );
     utl_smtp.mail( conn, mail_from);
     utl_smtp.rcpt( conn, mailto_P );
     utl_smtp.data( conn, 'MIME-Version: 1.0' ||CHR(13)|| CHR(10)||
     'Content-type: text/html' || CHR(13)||CHR(10)||
     mess_bdy||salutation_p||plan_hdr_msg_p
     ||plan_dtl_msg_p_1||plan_dtl_msg_p_2||plan_dtl_msg_p_3||plan_dtl_msg_p_4||plan_dtl_msg_p_5
     ||plan_dtl_msg_p_6||plan_dtl_msg_p_7||plan_dtl_msg_p_8||plan_dtl_msg_p_9||plan_dtl_msg_p_10
     ||plan_dtl_msg_p_11||plan_dtl_msg_p_12||plan_dtl_msg_p_13||plan_dtl_msg_p_14||plan_dtl_msg_p_15
     ||summary_p||cmplmntry_sign_msg_p);
     utl_smtp.quit( conn );
exception
     when others then
     null;
END;

did u encounter any error?
Be more clear in ur saying. As i understood that - is when coming to 5th parameter u r not able to access it. Is it right?
Message was edited by:
USER_X

Similar Messages

  • Error when sending message(e-mail) from Process Chain ?

    Hello SDN s,
    How ya all ?
    I scheduled a Process Chain with Message option to send it to (U - INternet Address) email ID but it says some error in sending message. What could be the reason ?
    The following is the Job Log Entries....
    30.06.2006 18:05:53 Job started                                                                          00        516         S    
    30.06.2006 18:05:53 Step 001 started (program RSPROCESS, variant &0000000000261, user ID ALEREMOTE)     00        550         S    
    30.06.2006 18:05:54 Hierarchy/attribute change successfully carried out                                RSM        794         I    
    30.06.2006 18:06:00 Document <PV FOR GETTING MESSAGE THROUGH E-MAIL - SUCCE> could not be sent          SO        654         S    
    30.06.2006 18:06:00 Error when sending message                                                        RSRA2        11         S    
    30.06.2006 18:06:01 Job finished                                                                        00        517         S    
    Thanks !!!
    Best Regards....
    Sankar Kumar
    +91 98403 47141

    Hey yes, in that T.Code all the values are 0. What to do to activate that ????????????
                                                                         Duration   Duration 
                             Completed  Error      In transit Waiting    In transit Waiting  
                                                                             hh:mm      hh:mm                                                                               
    B08(100)                        0          0          0          0                                                                               
    FAX Telefax              0          0          0          0       0:00       0:00
         5  INT Internet             0          0          0          0       0:00       0:00                                                                               
    SMTP              0          0          0                  0:00       0:00                                                                               
    X40 X.400                0          0          0          0       0:00       0:00
            RML R/Mail or            0          0          0          0       0:00       0:00
            PAG                      0          0          0          0       0:00       0:00
            PRT                      0          0          0          0       0:00       0:00
    So, how to solve this issue ? how to send e-mails ? what configuration or settings to be done ?
    could u give the steps to do that ? as i am the only one BW guy here !?
    Thanks !!!
    Best Regards....
    Sankar

  • Encounter error when sending HTML format email

    please reference below codes, when the lt_html has more than one line, the email could not been displayed properly in my inbox.
    did you encounter this kind of problem? Pls help, thank you.
    document = cl_document_bcs=>create_document(
    i_type = 'HTM'
    i_text = lt_html
    i_length = conlengths
    i_subject = 'HTML format email' ).

    Hi,
    please show the 3-line html-code that does not work:
    in lt_html, also value and/or method to fill for conlengths
    Save email as text and show whats there.
    This is required for the answer.
    Regards,
    Clemens

  • How to send HTML Format Mail using Java Mail in oracle 9i Forms

    Dear All
    could you please tell me how to send HTML Format Mail using Java Mail in oracle 9i Forms and how to implement the java mail ?
    if it is possible, could you please send me the sample code? please very urgent
    Thanks
    P.Sivaraman

    Hello,
    <p>Here is a Form sample.</p>
    Francois

  • HTML format mail from UTL_SMTP

    Hi ,
    I am on Oracle 8.1.7 on Unix. I am using utl_smtp package to send emails from database and successfully sending plain text emails.
    I want to send HTML formatted mails. How can I do that ?
    Please suggest .
    Regards

    I have used the package bu I have not uset it to send
    e-mails with HTML Format. Check from the page 1807.
    UTL_SMTP
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96612.pdf
    Joel P�rez

  • HTML Formated Email From Oracle Database

    Hello,
    I am generating email alerts from oracle 11g,10g using utl_mail.send.
    I want to genrate/send email in HTML formated.
    How i can send HTML formated email form Oracle Database (11g,10g)
    Thanks In Advance

    hi,
    inside oracle apex 10g. i am using this.
    please try
    begin
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => '[email protected]',
    P_BODY => 'test',
    P_BODY_HTML => '<table><tr><td>data</td></tr></table>' || SYSDATE,
    P_SUBJ => 'Test Email working '
    wwv_flow_mail.push_queue(
    P_SMTP_HOSTNAME => 'localhost',
    P_SMTP_PORTNO => '25'
    end;
    Thanks
    LOGA
    www.go-websoft.com
    Apex Consulting & Development

  • How to specify "From" address when sending Outbound e-mail from Siebel

    Hi, when sending an e-mail to Outlook exchange server among all there are 2 fields: Sender and From, where Sender is an address of the profile from which e-mail will be sent and "From" address is the one that will be displayed to the receipient ("From" is not related to any profile and any e-mail address could be specified there).
    My question is how can we specify this "From" address in Siebel while using standard e-mail functionality (Communications Outbound Manager sends data based on created activity record). Client wants to specify any e-mail address regardless ofcommunication profile used (which is only one).

    Hi Mathan,
    Please check sap note
    SAP Note No. 1304146 Email Signatures feature note
    1163250 - How to Create an Email Signature on several rows
    I hope it will solve your issue.PLease mark thread as answerd.
    Best Regards,
    Atul

  • Contact conflict when sending an e-mail from Mac

    I would like to address an issue after sending an e-mail from my Mac computer. The contact changes to the previous name that I had given in the past and its being added to the new one. The result is to have a contact with many names.Is there any solution to this problem?
    Thank you in advance,
    Menelaos

    I hadn't realised it was more than one contact.
    The following article(s) may help you.
    Resolving duplicate contacts

  • Error message when sending an e-mail from my phone

    Recently, I have been un able to send e-mails from my phone. When I try to send them, almost immediately I get an e-mail from
    "RIM_bca28a-e9c0-11d1-87fe-00600811c6a2" 
    The contents of the e-mail say:
    This message is used to carry data between the BlackBerry handheld and an associated server. Please do not delete, move or respond to this message - it will be processed by the server.
    There is a .DAT attachment as well.
    Can anyone help me with this issue?

    See:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.org/kb/Firefox+crashes

  • How to SEND HTML formatted mail??

    How do I put HTML formatted text into an email I want to SEND? -- "Paste as HTML" in edit menu is dimmed, and I can't get it to un-dim... I want to paste formatted text from an HTML editor into an email... can I do this with Mail, or do I need some other app to do this?

    AHHHH
    What you can do to make HTML for Apple Mail is to make it in an HTML editor, open it with Safari use CMD+i - a new mail message will appear in a moment with the web page in the email body.
    You can't do any major editing in Mail, you'll have to go back to the HTML file. But it works.
    You can also use Copy (from a web page) and then (Edit) Paste as HTML (that what Paste as HTML is for, not for creating HTML email). You can also user Paste as HTML to copy/paste a HTML email you receive or part of a HTML email.

  • Error When sending an e-mail

    Hi,
    I have written a small Function module to send an e-mail. I have used the function module SO_NEW_DOCUMENT_ATT_SEND_API1 and the e-mails are being sent as expected most of the times.
    But some times e-mail transmission fails and I get the following error message( IN SOST  transaction ) ' STILL NO ENTRY IN QUEUE ' (Msg No : 672).
    Can any one of you help me out as to how to resolve this error.Do we need to call an explicit commit after the function call to avoid this.
    Can you please respond ASAP as I am left with only one day for my development.
    I thank you in advance for the support extended.
    Thanks & regards,
    Vamsi Krishna P.

    Hi Hongyan,
    I have gone through the note and tried to make the change to my function module but it did not work.
    Some time it still fails. I really do not understand the probelem in it. Enclosed below is a brief decription of the messsge ' STILL NO ENTRY IN QUEUE'..
    <u><b>Definition</b></u>
    A message was sent from the application. The current status of the message is 'Waiting'. However, no entry exist (yet) in the queue.
    <u><b>Use</b></u>
    This can be a normal interim status of a sent message. Preparations for entering the message in the queue for the SAPconnect send process are complete. As soon as the Persistence Service has put the message into the corresponding database table for the queue, the status changes to 'Waiting'.
    If this status stays the same for too long, an inconsistent state exists. In many cases, the cause of this lies with the sending application. The Persistence Service first writes the data to the database when the application has set an explicit Commit Work. If this is missing, then the message is not put into the queue and is not recorded by the SAPconnect send process. On the send request overview, you can put the message in the queue again using retry, but you must look for the cause of the problem in the sending application itself.
    Another cause of the problem may be that the corresponding entry in the queue was deleted manually before the send process recorded the message.
    I request you to go through this and suggest me for a possible solution.
    Thanks & regards,
    Vamsi Krishna P.

  • Error when sending group e-mail

    I have a group contact list set up on my iPad but when I send an e-mail I get a message back saying the first person on my list didn't receive the e-mail but when I checked with the person they actually did receive it.  Why am i getting this error?

    Hi Hongyan,
    I have gone through the note and tried to make the change to my function module but it did not work.
    Some time it still fails. I really do not understand the probelem in it. Enclosed below is a brief decription of the messsge ' STILL NO ENTRY IN QUEUE'..
    <u><b>Definition</b></u>
    A message was sent from the application. The current status of the message is 'Waiting'. However, no entry exist (yet) in the queue.
    <u><b>Use</b></u>
    This can be a normal interim status of a sent message. Preparations for entering the message in the queue for the SAPconnect send process are complete. As soon as the Persistence Service has put the message into the corresponding database table for the queue, the status changes to 'Waiting'.
    If this status stays the same for too long, an inconsistent state exists. In many cases, the cause of this lies with the sending application. The Persistence Service first writes the data to the database when the application has set an explicit Commit Work. If this is missing, then the message is not put into the queue and is not recorded by the SAPconnect send process. On the send request overview, you can put the message in the queue again using retry, but you must look for the cause of the problem in the sending application itself.
    Another cause of the problem may be that the corresponding entry in the queue was deleted manually before the send process recorded the message.
    I request you to go through this and suggest me for a possible solution.
    Thanks & regards,
    Vamsi Krishna P.

  • How to set Default text when sending a blank mail from SAP

    Hi all,
    How to add Signature with company logo in the mail body.
    User should see at least one default text (eg; Hi) in the mail body if the sender did not type any text in the mail body when sending a mail from SAP.
    Is it possible to set like this on Subject also.
    Kindly share your ideas.
    Regards,
    Mathan A

    Hi Mathan,
    Please check sap note
    SAP Note No. 1304146 Email Signatures feature note
    1163250 - How to Create an Email Signature on several rows
    I hope it will solve your issue.PLease mark thread as answerd.
    Best Regards,
    Atul

  • Run time error when calling a pro*c from oracle apps

    When I try to execute a pro*c program from ORACLE APPS it gives
    the following error
    < program was terminated by signal 11>
    But the same program I can able to run from unix
    Can Anyone help me out
    rgds
    -suku

    Thanks a lot,
    I also discovered that dragging the user control onto my user interface doesn't allow alternate activation.
    ( I actually tried stopping and then starting but the result was the same )
    Calling the routines as indicated in the header comments also gave some hiccups ( I had to remark some code to get the system working progrtammatically.
    public void Start()
    #region Update UI
    this.switch1.Caption = "On";
    this.switch1.Value = true;
    #endregion
    daqmxTask.Start();
    public void Stop()
    #region Update UI
    this.switch1.Caption = "Off";
    this.switch1.Value = false;
    #endregion
    daqmxTask.Stop();
    #region Methods

  • Trouble when sending pictures by mail from iPhoto

    Hello. Recently, while sending pictures with the mail function of iPhoto 9, some pictures have been transformed in tiff format (in this case the name of the picture is becoming PastedGraphic-1 (or2, 3 etc...).tiff.
    The size of these .tiff files being at least 3Mo (or more), in general my messages never arrived to their destination.
    This problem is not recurent: sometimes it happens, sometimes not, and you become aware of the problem when you receive an error messge of your internet provider regarding the size of the mail you sent and was not distributed because his size.
    So this is a little bit boring....
    Who got the same kind of problem? is there is a solution?

    Thanks for your comment.
    The original pictures are jpg. That's making this issue a little bit mysterious..
    One more thing: last time I got the problem, I was sending 7 pictures from iPhoto: two of them were compressed in jpeg, the 5 other ones in this PastedGraphic.tiff
    Total weight of the message: 21,9Mo instead of 1,8Mo. That's the difference!

Maybe you are looking for

  • Interaction between Excel and Word OLE

    I am using Office 2007 to write procedures but a problem is apparent only when run on Office 2013. A procedure in a workbook that records Sales information runs to transfer data to another workbook that stores Invoice information, and then opens Word

  • I can't open old Word documents or save new ones. Help!

    I'm not tech savvy at all and I really need Word for school. Please help if you can. Whenever I'm trying to open an old file I get: "File is locked for editing. Locked by: another user Filename: "insert name" You can open file in read only" When I cl

  • Help why won't photoshop let me edit my photos anymore?

    Why won't photoshop let me edit my photos I am a photographer and my photos need more editing but photoshop will open the tools but nothing happens with any of the tools!

  • How to set custmer master block for posting & how to set the status .....

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. Use an appropriate subject in your message thread. > Hi ... How to set custmer ma

  • Problems with SB Audigy 2 ZS...what a surprise(yeah rig

    Okay, I'm trying to configure my sound system for stereo sound WITHOUT any special effects (ie 3-D sound, environmental audio, etc.) After trying to just FIND OUT how to do that (through the help menu and Creative website), I formed a very low opinio