Error notification e-mail...

Hi all

I created the new e-mail notification procedure. When I run the enamel of procedure is triggered, but in the body of the email, it returns an error message that is mentioned below. Actually this isn't Error exporting the code.
CREATE OR REPLACE Procedure PROC_STATUS_MAIL_TEST
IS
  
      l_ana_report  VARCHAR2(32767); --empty_clob; --clob :=
      l_header VARCHAR2(1000);
      l_footer VARCHAR2(200); 
      cnxn UTL_SMTP.connection;

BEGIN
     
           l_ana_report := '<style type="text/css">
    <!--.style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-style: normal; color: #FF0000}-->
    <!--.sidebar1 { font-family: Arial, Helvetica, sans-serif; font-size: 10px}-->
    <!--.text { font-family: Arial, Helvetica, sans-serif; font-size: 12px}-->
    </style>
    <center><b><font face="Arial">Ana Run Summary Report '
                || TO_CHAR(SYSDATE, 'DD-MON-YYYY HH:MI AM') || '<br><br></font></b></center>'
                || ' <div align="center"><table width="95%" border="1" cellspacing="0" cellpadding="1" </div>'
                || '<span style="font-size: 10pt; font-family: Arial"> </span> '
                || '<tr bgcolor=b4b4b4><td align="center"> <font size="3"> <b>'
                || 'Ana</b></td><td align="center"><font size="3"> <b>'
                || 'Start Time</b></td><td align="center"><font size="3"> <b>'
                || 'End Time</b></td><td align="center"><font size="3"> <b>'
                || 'Run Duration (mins)</b></td><td align="center"><font size="3"> <b>'         
                || 'Status</b></font></td></tr> ' || UTL_TCP.CRLF;

                FOR curr_refresh IN (SELECT AN.ANA_ID,AN.NAME ANA_NAME,ARH.RUN_START_TIME START_TIME,ARH.RUN_END_TIME END_TIME,
                                     ROUND(((ARH.RUN_END_TIME-ARH.RUN_START_TIME)*24*60),2) RUN_TIME_SECS,ARH.JOB_STATUS STATUS
                                     FROM 
                                     RUN_HISTORY ARH,ANA AN,
                                          (SELECT ANA_ID FROM ANA_SELECTED_DATA_TYPES 
                                           WHERE DATA_TYPE_ID IN (SELECT DATA_TYPE_ID FROM DATA_TYPE_LU 
                                           WHERE IND IN ('P','L'))) ADT
                                      WHERE 
                                     ARH.ANA_ID=ADT.ANA_ID
                                     AND AN.ANA_ID=ARH.ANA_ID
                                     AND ARH.RUN_START_TIME>TO_DATE(SYSDATE-20)
                                     ORDER BY ARH.RUN_START_TIME DESC)  LOOP   
                                                 
           l_ana_report  := l_ana_report || 
           '<tr><td align="center">'|| curr_refresh.ana_name                  
              || '</td><td align="center">' || curr_refresh.start_time || '</td><td align="center">'
              || curr_refresh.end_time || '</td><td align="center">'|| curr_refresh.RUN_TIME_SECS ||
              '</td><td align="center">'|| curr_refresh.STATUS ||
              '</td> </tr>' || UTL_TCP.CRLF;
               exit when length (l_ana_report) > 32500;   
      END LOOP;
      
       l_ana_report := l_ana_report || '</table><br><br>';
  
    --   l_body := UTL_TCP.CRLF || 
    --   UTL_TCP.CRLF || l_ana_report;
    --   l_footer := UTL_TCP.CRLF || '--' || K_BOUNDARY || '--' || UTL_TCP.CRLF;
 
     l_footer := UTL_TCP.CRLF ||
     '<b> Note: This is an auto generated email. Please do not reply to it. Contact the IT team for any further information.</b>'||  UTL_TCP.CRLF;
      
            FOR curr_email IN (SELECT global_name instance_name,
            REU.EMAIL_USER_LAST_NAME last_name, 
            REU.EMAIL_USER_FIRST_NAME first_name,
            REU.EMAIL_USER_EMAIL_ID,
            '[email protected]' mail_from
                             FROM EMAIL_USER REU,EMAIL_GROUP REG,GLOBAL_NAME
                                         WHERE REU.EMAIL_GROUP_ID = REG.EMAIL_GROUP_ID
                                               AND REG.EMAIL_GROUP_NAME = 'Business'                                            
                              ) LOOP
            
            cnxn := UTL_SMTP.open_connection('smtprelay.aceins.com', 25);
            UTL_SMTP.helo(cnxn, 'smtprelay.aceins.com');
            UTL_SMTP.mail(cnxn, '[email protected]');
            UTL_SMTP.rcpt(cnxn, curr_email.EMAIL_USER_EMAIL_ID);
            
        l_header := 'MIME-Version: 1.0'||'
        To: ' || curr_email.last_name || ' <' || curr_email.EMAIL_USER_EMAIL_ID || '>
        From: ' || curr_email.mail_from || '
        Subject: Ana Run Status Report for ' || curr_email.instance_name || ' on ' || to_char(sysdate, 'DD-MON-YYYY') || '
        Reply-To: [email protected]
        Content-Type: text/html;' || UTL_TCP.CRLF || UTL_TCP.CRLF;

      -- l_email := UTL_TCP.CRLF || l_header || l_ana_report || l_footer;
            
            UTL_SMTP.data(cnxn, l_header || l_ana_report || l_footer);                    
            UTL_SMTP.quit(cnxn);
            
            DBMS_OUTPUT.put_line('mail sent to ' || curr_email.EMAIL_USER_EMAIL_ID);
      END LOOP;

END PROC_STATUS_MAIL_TEST;
Email body: -.

< style type = "text/css" >
<!-.style1 {-font family: Verdana, Arial, Helvetica, without serif; do-size: 10pt; make-style: normal; color: #FF0000}->
<!-.sidebar1 {do-family: Arial, Helvetica, without serif; do-size: 10px}->
<!-.text {do-family: Arial, Helvetica, without serif; do-size: 12px}->
< / style >
< Center > < b > < of police = "Arial" > Ana Run Summary Report July 29, 2011 13:22 < br > < br > < / police > < / b > < / center > < div align = "center" > < table width = "95%" border = "1" cellspacing = "0" cellpadding = "1" < / div > < span style = "font size: 10pt;" font family: Arial "> < / span > < tr bgcolor = b4b4b4 > < td align ="center"> < size ="3"> < b > analysis < /b > < table > < td align ="center"> < size ="3"> < b > Start Time < /b > < table > < td align ="center"> < size ="3"> < b > end time < /b > < table > <" TD align = "center" > < fonts Size = "3" > < b > duration of execution (mins) < /b > < table > < td align = "center" > < font size = "3" > < b > status < /b > < / font > < table > < /tr > < tr > < td align = "center" > PCSUM CE we < table > < td align = "center" > 28 July 11 < table > < td align = "cente... and so of. Suite



Can someone please guide me if something wrong with the syntax or code. I checked on google, but could not get out, always Googling.

Kind regards
Sunny

Published by: k_17 on August 1, 2011 14:41

k_17 wrote:

I created the new e-mail notification procedure. When I run the enamel of procedure is triggered, but in the body of the email, it returns an error message that is mentioned below. Actually this isn't Error exporting the code.

We need to see the actual error message for an accurate diagnosis.

Looking at the code - looks like your code is violating the SMTP specifications (see RFC5321 for more details).

The standard it seems to violate is the maximum size of a line of text send via the DATA command. The specification reads as follows:

4.5.3.1.6.  Text Line

   The maximum total length of a text line including the  is 1000
   octets (not counting the leading dot duplicated for transparency).
   This number may be increased by the use of SMTP Service Extensions.

Use several calls after the command DATA to deliver your MIME body and ensure that each call does not exceed a 1000 per line of text bytes.

I suggest reading/analysis the RFC set to become familiar with the language of Protocol to request your code uses to communicate with the SMTP server.

Tags: Database

Similar Questions

  • AIA error notifications

    Hello

    I use AIA 3.0 on a 11.1.1.5.0 SOA suite cluster.

    WebLogic Server Version: 10.3.5.0
    This is related to our system of Active Directory for users and passwords.

    I'm working on how works the AIA error notification.

    I can connect to https://devsoa.imperial.ac.uk/AIA as the weblogic user and navigate to the installer. On the display error Notification is a column called 'Role '. As I understand it, this is where type us the name of the role.

    I can connect to https://devsoa.imperial.ac.uk/sdpmessaging/userprefs-ui using my AD user name and password. I can confirm that my company Email is there and that it is set as default.

    I can also connect to https://devsoa.imperial.ac.uk/integration/worklistapp/ using my AD user name and password.

    So what I need to do, is to associate the 'roles' in the application of the AIA to my user name.

    The documentation is not clear on how to proceed (or I have yet to find the right point in the docs)

    I can get the weblogic console here https://devsoa.imperial.ac.uk/console/ and connect with the weblogic user.

    I need to know how to do the following:
    + Setting to find a list of valid values, I can't get into the roles in the application
    + Add a new role
    + Associate my Active Directory user with this role.

    Does anyone know how these tasks can be performed?
    Thank you
    Robert

    In 11g workaround is to create a group e-mail id and then use it in the configuration. i.e. [email protected] (this will be the list of users who will receive the emails).

  • Error while sending mail after the 38.1.0

    There is no change in the settings of the e-mail server.

    After the update to thunderbird 38.1.0 I get the following error when sending mails.

    The message send failed.
    The message could not be sent to the help of Outgoing server (SMTP) mail.hclinsys.com for an unknown reason. Check that your outgoing (SMTP) server settings are correct and try again.

    Please the devil error cons = ole with V38 for error messages I discuss here.
    http://thunderbirdtweaks.blogspot.com.au/2015/07/logjam-and-Thunderbird.html

  • Thunderbird on Windows 8.1 sends a message without error, but the mail is not delivered.

    New laptop Toshiba current A6 running Windows 8.1. Installed Thunderbird 31.6.0. Configuration completed successfully. Am able to receive the mail, but cannot send. When I send mail, I see the message "connecting to Server" and "mail sent successfully." I DON'T GET ANY KIND OF ERROR MESSAGE. Mail is never with the server.

    The automatic configuration of Thunderbird sets out to "SMTP.lakeland.ws" port 587 server. After several failed attempts to send a mail to "[email protected]" myself, I've reconfigured the SMTP outgoing, based on the configuration of my Windows 7 Windows Live Mail on another laptop: "mail.airstreamcomm.net" Port 25.

    When I sent mail with this setup I was prompted for the password for my mail server. I gave the password and mail appeared to send. NO ERROR MESSAGE and mail went to the sent queue. Subsequent attempts seem to send the email with the MESSAGE of NO ERROR but never gets the mail on the server Lakeland.ws .

    I then remove the account from Thunderbird and launched the automatic sequence of configuration to set the settings back to the original configuration. Still have the problem

    Help, please!

    Try to send a mail to [email protected]. I will answer you if I understand, and I think I'll

  • Bug in notification e-mail

    I can't delete my notification e-mail, even if I already opened my mail apps mail

    I dealt with this bug since the 9.1 update last year

    The only way to remove the notification had to restart the phone

    Hello!

    It seems that your Notification Center is not working properly and you need to restart the phone to be able to withdraw a notification by e-mail. For me, which indicates that there is something to do with the software. I would like to start by leaving the Mail app and settings applications:

    Force an app to close the iOS

    1. press the Home button twice quickly. You will see small glimpses of your applications recently used.
    2. slide to the left to find the application you want to close.
    3. push upward on the overview of the application to close.

    When you have finished that force the phone redemarrer restart with the sleep/wake and home buttons and test the question again:

    iOS: switch off and on (restart) and reset

    If the problem persists, save your device in iTunes, then restore it like new and verify that it works.

    How to clear your iOS device and then set up as a new device or restore from backups

    If this is the case, restore your backup either check it still works and just reinstalled software or circumvent the problem in the backup file itself. This should help to solve this problem, if it is a fundamental problem with the iOS itself. Could thank you for using communities of Apple Support, you update let us to us know what stage worked for you?

  • After installing IOS 9.3 for Ipad3. I can't activate iPad by Apple ID display error meassage «e-mail cannot be used to unlock the iPad»

    After installing IOS 9.3 for Ipad3. I can't activate iPad by Apple ID display error meassage «e-mail cannot be used to unlock the iPad»

    If you see the lock of Activation screen after update your iOS device, you want to try the following:

    -Restart your iOS device and try to connect again.

    -Visit appleid.apple.com and log in to ensure that your password is correct.  If you change something here, only to change your password.  Try to connect again on the iPhone.

    -Connect on iTunes on a computer and put your Apple ID and password when it prompts you (as it did on your iOS device).

    -ICloud.com check in the settings.  If you see your iOS device listed, remove account (do not erase or hit lost mode). Restart your device and try to reconfigure.

    -These measures should solve most of the problems.  For someone else, you will need to contact Apple (1-800-MY-APPLE or getsupport.apple.com).

    I hope that helps!

  • When I open Windows mail, I start to get the mail and I get it about 474 243. And then an error saying Windows mail will be closed because of an error.

    Windows mail - error and the same letter over and over again.

    When I open Windows mail, I start to get the mail and I get it about 474 243. And then an error saying Windows mail will be closed because of an error. And I start it again and I get the SAME email AGAIN, and again, it stops somewhere and closes.

    Anyone know what could be the problem?

    You can try to set up a new e-mail account and use the exact settings of the account that you have now.  This way, you will have a copy of the same account.  Then see if it has the same problem.  If it works and is not old, and then see if the old man works after this and remove one of them, if you do not receive the messages in doubles.

    If the new copy of account has the same problem, then it's a stuck message and your courier company should fix this.

    Steve

  • Cannot send and received the error windows live mail 3219

    Cannot send and received the message of error windows live mail 3219 how remedy

    You use a hosted Microsoft e-mail address.

    Microsoft doesn't want you using a program like WLM.  I know, they created it, but they changed their minds.  They want to be able to use their webmail system so that they can put ads in your face and you profile by reading your emails.  They try to get you migrated to Windows 10 and the e-mail program integrated here.

    Most of my clients with addresses hosted Microsoft migrated far by pulling on the other non-Microsoft like Gmail or Yahoo mail addresses.

    WLM will work perfectly with these addresses.  Well more than half of my computer 150 customer use WLM 2011 version and it works very well.

  • Send a Notification E-mail to the program manager?

    Can Eloqua send me (or others) a notification e-mail when someone enters a stage of the action to the program? Or when someone is following a certain path on a decision stage? And it could contain information about the user?

    Thank you.

    Hi Rob,

    Inside the program Builder, you can configure an action step to send a notification, but not in addition to any other action.  You might therefore be able to implement so that (using your example of decision rule) to hit the 'yes' the first step is the notification then the next step is the true 'yes' action, or a similar to the 'no' set according to what you're trying to get information from.  You can do either by configuring a normal e-mail message to hold the info you want, and then Quicksend email to a specific user and use domain merges to get information about the person who is going through step.  Or you could use the 'send members report to the owner of the process"and configure it to contain what you need.

    Thank you

    Lauren

  • How can I add the name of the customer to the Workflow Notification e-mail subject line?

    How can I add the name of the customer to the Workflow Notification e-mail subject line?

    I think I need to add a tag, but I'm not sure what would be the appropriate label, I tried a little bit, but he simply writes the tag I inserted and not the name of the customer.

    Thank you

    It's something that you can't add right now. You can change the layout a little notification of workflow of the system, but you cannot change the topics at this time to render a system like that tag.

  • 1009 error in Yahoo Mail.

    1009 error in Yahoo Mail.

    I don't understand the forum answers I've read related to this error message.  Most of them implies that the person with the error is the design of a project.  I'm NOT on a project using Adobe Flash or something like that.

    The error message only when I click on an e-mail message in Yahoo email.  What can I do to fix this error?

    Adobe Flash Player.jpg

    Thank you.

    Bill

    If you do not create the file that generates this message, there is nothing you can do about it.  There is an error in a Flash file that must be corrected by the person who designed the file.

  • Application did not get approved the notification E-mail

    Dear all,

    Please note that in the envelope for notification of workflow,

    If a request is created and managed with the workflow for approval of the application, a notification e-mail to the mailbox of the immediate supervisor.

    But when the contractor approved by mail itself, its not getting approved

    (But his approval of the summary of the Notification - application level)

    Why he don't had not approved when the approval made by the post itself...

    How can I fix this... Please update... My request is 11.5.10.2 and the SUN SOLARIS operating system

    Note: even though I have the same thing to a username before obtaining not transmitted...

    Thanks in advance...

    Salvation;

    Please check:
    Unable to connect to the mail store in the Workflow Notification Mailer newspapers [ID 741352.1]
    E-mail Notifications sitting The Inbox, Workflow Mailer not picking up their for treatment [390811.1 ID]

    It may be useful

    Respect of
    HELIOS

  • for the process error notification

    Hello

    I have a pl sql process and catch an exception in the code.

    If the process of loan and is one exception I get a success - instead of an error notification.
    How can I activate the error notification after the interception of exception?

    Thanks for any help

    Markus

    Markus - the error text you define for the process appears only if the process fails. If you manage the errors it contains, the process succeeds and you get the success message.

    I'd be interested to hear what others are doing, but we did this sort of thing:

    Create a hidden page element, for example P1_MESSAGE.

    Set the value of this element of in your PL/SQL process, for example:

    ...
    exception
      when others then
        :P1_MESSAGE := 'Error text here';
    end;
    

    The entire text of success to & P1_MESSAGE. (with the trailing full stop).

    Who do you want?

    John.

  • BlackBerry Smartphones deleted e-mail message error notification

    Message notification by e-mail on the top bar of my BB shows 1Message after it has been deleted and the icon also shows a message.  Any ideas on how to clean?

    You did what I told you?

    If you do this and you have the message, reset the unit, remove the battery for 30 seconds.

  • Debug Notifications by mail electronic vCAC

    I've enabled e-mail notifications and a server abroad I know set up works. In the var/log/vmware/vcac/catalina.out log, I see an error containing 'Exception during the message to add to the queue'. Screen turned newspaper attached. Did someone had problems with notifications by e-mail to vCAC? Is anyway to debug email settings?  Thank you.

    email log.png

    This problem was caused by the the field users email account not being is not a valid e-mail address. Example, I was logged in as [email protected] but my email is [email protected]. If you go to Administration > users and search for my username, the email field is empty. I added my actual email account in AD and the issue has been resolved.

    TL; DR - check user names, emails and other properties using the Administration > users to ensure that vCAC has the right information.

Maybe you are looking for