Multiple copies of email

I have a veou of people who need to receive a notification when a problem is reported. The email is set up and ready to go, but the problem is, every time it is sent, each person receives as many copies it's done has people in the email group. How can I fix?

2008 code:

FOR C1 IN (SELECT EMAIL FROM DTS_EMAIL) 

LOOP 

     IF C1.EMAIL IS NOT NULL THEN 

        --FOR C2 IN (SELECT * FROM DTS_EMAIL)

        --LOOP

              HTMLDB_MAIL.SEND( p_to => C2.EMAIL, 

                                p_from => v('APP_USER'),

                                p_cc => '[email protected]',

                                p_body => l_body_html,

                                p_body_html => l_body_html,

                                p_subj => 'DTS Review: Telecommuter '||:P31_FIRST_NAME||' '||:P31_LAST_NAME||'');

        --END LOOP;

     END IF;

END LOOP;

You can try this for your question now:

DECLARE

  TYPE a_recs IS TABLE OF NOTIFY_VW%ROWTYPE;

  v_recs a_recs;

  CURSOR c1 IS
    SELECT *
    FROM NOTIFY_VW;

BEGIN

  OPEN c1;

  LOOP
    EXIT WHEN c1%NOTFOUND;

    FETCH c1 BULK COLLECT INTO v_recs LIMIT 10;

    FOR i IN v_recs.FIRST..v_recs.LAST LOOP

      APEX_MAIL.SEND(
          P_TO => v_recs(i).EMAIL,
          P_FROM => v('APP_USER'),
          P_SUBJ => 'IQ Problem',
          P_BODY => 'The following problem has been reported by '||:P26_REPORTER||' for sequence number '||:P26_SEQ||':
            '||:P26_DESCRIPTION||'.'
      );
    END LOOP;
    apex_mail.push_queue();

  END LOOP;

END;

Thank you

Tony Miller
Webster, TX

Tags: Database

Similar Questions

  • Thunderbird will download multiple copies of email with large attachments; about half a Meg or more.

    Have uninstalled and re installed TB; still had the problem so deleted files popstate.dat; three old and I guess that the other two were for both accounts I have. Sometimes I go to the server/webmail and delete the large email to stop repeated downloads.
    Bill

    I tried a different e-mail program, and it did not download multiple copies. Tried to uninstall TB new and removed the front profile of re install and still had the same problem. One of the large files sent to my friend that I had installed TB on his computer for him and he doesn't have the problem. So I changed my email from POP3 to IMAP and now it seems that the multiple download problem disappeared. I would like to know well why I had a problem and my friend (and others) do not have.

  • I am getting error 0x800CCC90 answer ERR idle time-out. I get multiple copies of emails in my Inbox, and when deleting, they reappear when I connect then.

    My server is mail.btinternet.com

    Whenever I connect to receive e-mails my Inbox receives multiple copies of my new posts and also emails as soon as I read and often deleted.

    If you use Windows Mail in Vista, then try to compact and repair the database (see www.oehelp.com/WMUtil/) and also be aware of the risk of interference antivirus (see www.oehelp.com/OETips.aspx#3).  If this does not help, see if you can login via webmail and see if you have the same problems here.  It could be that there is a message that hangs the server and you can delete this message to get rid of it via webmail.  You can also contact btinternet.

    If you do not use Windows Mail in Vista, then you must specify what software you use to access your e-mail.

    Steve

  • The receiver receiving multiple copies of emails from the sender when one e-mail is sent

    Original title: several emails

    After receiving an email from a friend, I forwarded to others in the same group of interest. When they get them, some have asked why I send 9 copies of the same message, which I did of course. Then, when some tried to open them, they get gibberish or a error message "file too large". Thus,.

    • 1. What is past they get multiples?
    • 2. Why do they get errors to the file too big?
    • How can I fix it, because I send them weekly.

    You are the very welcome. Try it for a few days to be sure.

  • Outlook express sending multiple copies of email

    When send or send an email with an attachment OE will send anywhere from 4 to 92 copies of the email and in the receiving computer virus protection program will show as emails containing a virus. The issuing machine shows no virus when checked with anti-virus AVG and any malware program when checked with Windows Defender or Spybot S & D.

    Hi Phxjack,

    Thanks for posting. This can happen from time to time if you have a scanner email or anti-virus analyzes e-mails. For testing can you please disable and anti-virus and e-mail scanning or utility and see if the problem is resolved.

    I hope this helps! Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • multiple copies of emails in the Inbox

    I use the default mail on my surface app to check my mails sky.com.  While I look to send and receive messages fine, when I click on an email in my Inbox, it shows me several copies of the same message, but in different folders such as Inbox, sent, Outbox etc.  This means that I have 999 + mails in my Inbox when I know that I do not have this number.  It makes it very confusing to keep track of my mails and I use to connect my laptop and using outlook.

    Can anyone help?

    Hello again sianrixon,

    The important thing is that it is not generate all these messages now, I'm happy that has been resolved. To answer your questions:

    1. it looks like someone tried to put your email to sky in a sense, when it does not work they tried in a different way.

    2. If you want to see what the sky account has been set up as, in the sweep of Mail app in a bit of hand right edge of the screen to bring up the charms. Select settings, then accounts. This will show that you send accounts configured in Mail and Mail think they (Hotmail, Outlook, Gmail, other, etc.).

  • I get multiple copies of an e-mail sent 5 / 2 09:26, and it does not block receipt of all subsequent emails. How can I fix it?

    I get multiple copies of an e-mail sent 5 / 2 09:26, and it does not block receipt of all subsequent emails. How can I fix it?

    Use the webmail and sign in to your account and delete this mail

  • When I send an email to Trash on my MacBook Pro, why this email appears in multiple copies?

    Product: Mac Book Pro, OS X Yosemite

    Question: When I send an email to trash, why multiple copies of this email appear in the trash?

    From the Mail menu bar, you select

    ▹ mail preferences... ▹ Accounts

    Select one of your accounts, IMAP in the list on the left, and then open the behaviors of the box tab, uncheck the box marked

    Store the deleted messages on the server

    Do the same thing in your other accounts IMAP. Save changes when prompted.

  • When I tried to save copies of some e-mails on a disc, multiple copies of each email appeared on my desk

    original title: dozens and dozens of copies on my desk!

    When I tried to save copies of some e-mails on a disc, multiple copies of each email appeared on my desktop running Windows XP.  When I try to delete them, more appear.  Similarly when I drag and drop into the trash.  In addition, there are more icons that I can see on the edge of the screen that I can't even.  All these icons are concealing my common icons on the desktop.  What is happening and how to fix this?

    You reply to the message of the month:

    What you were doing was to occupy the office with the files.  Right-click on the Start button and select Explorer.  Then in Explorer navigate to the office on the left in the list of folders.  Then to the right, go to view | Details and you should see then the entire list of files on the desktop and you can prune from there.

    Steve

  • sending email with attachment, recipient recives .jpg multiple copies that cannot be opened or saved

    Windows 7 using windows live mail after sending e-mail with an attachment .jpg, the recipient receives multiple copies that cannot be read, opened or saved.

    Right click on the name of the account above the Inbox. Properties | Advanced tab and uncheck the box: "Break apart messages...". ».

  • Multiple copies of the same mail and "unresponsive".

    I have fought with Thunderbird for about a week now and have had no chance to solve my problems. Any help would be greatly appreciated! I tried all the suggestions on the FAQ page.

    Here are my symptoms:
    -Make multiple copies of the same email with the same time stamp.
    -Not pulling new e-mail messages.
    -Whenever I try to navigate upwards or downwards in the Inbox or open an email TB will does not.
    -J' got warnings from the following script:
    Script: resource://gre/modules/XPCOMUtils.jsm:323
    Script: chrome://messenger/content/mailWindow.js:179

    Here is what I tried:
    -J' completely removed and reinstalled TB (and recovered my profile).
    -J' have compressed files.
    -J' rebuilt the database world.
    -From TB in safe mode does not seem to make a big difference.

    Fortunately, I have access to webmail via my ISP and it works fine.

    Thank you!

    McAfee has released a faulty update, please contact them for support on changing the setting to something that actually works.

    I saw a poster here today who used their support chat and they 'fixed a few adjustment' and now all is good.

    Not good was not what I wanted to say

  • Mail in Outlook Express 6 does not leave the box shipping and beneficiaries say they receive multiple copies of the same message.

    original title: Outlook Express 6.0

    Recently, when I send an e-mail message by using Outlook Express 6.0 three things happen:

    (1) he does not leave the Outbox, unless I have to go in and manually remove it.

    (2) my report of recipients receiving multiple copies of the same message (for example, received the same email 6 times)

    (3) my sent folder is not updated with the emails I sent.

    I'd appreciate any help that could be offered.

    Thank you!

    Glenside Guy

    Your sent items folder is corrupted.  Move or copy messages from the folder that you want to keep.  Then close OE and delete the file sent items.dbx and outbox.dbx (hidden).  OE will then create new ones, and that should solve the problem.

    Because your files has been corrupted, you might consider backup before they get completely corrupt and in addition, you could go to file | Identities and setup a new identity.  This will give you a base of new messages, not corrupted, and you then go to file | Import | Messages and import them from the old identity.

    Steve

  • Multiple copies, and then reinstall WITHOUT Inbox after. (NOTE: multiple copy is a known issue with Norton Anti virus)

    Kept Thunderbird download multiple copies (up to 25 each) on several occasions.
    So I uninstalled later did install a new download and there is NO Inbox... Ouch?

    Did you remove your profile? (if you did you know it is not automatic)

    What do you see when you open Thunderbird? Please provide us with a screenshot. If you need help to create a screenshot, please see How to make a screenshot of my problem?

    Once you have done so, attach the file to screen shot saved to your post on the forum by clicking on the button Browse... under the box to post your reply . This will help us to visualize the problem.

  • my iPhoto will not print multiple copies of a photo.

    I'm under o/s10.7.5 and iPhoto 8.1.2 version.  I've selected my photo and chose to print on the file menu.  I select the contact Board on the menu of the icon to the left of my picture. A small picture of my photo appears on the preview.  Layout page or column options had no effect and when I print only one tiny copy of my photo is displayed.  Of course, I'm in the middle of a project to date limit for which I need this feature!

    I have not use iPhoto 8 for a very long time, so do not know, is that it is valid.  With the current iPhoto 9.6.1 duplicate a photo as many times that the copies are required on the printed sheet.

    Select the copies, and use the Contact sheet available:

    Or use the custom layout and set the size to get the number of photos per page you want:

    NOTE: The key is to duplicate the image as many times as you need to get the number of images per page you want.

    This is how works the latest version of iPhoto.  I don't remember how iPhoto 8.1.2 manages multiple copies of a picture on a page.

  • WHY MAKE TWO COPIES OF EMAILS THAT I SEND IN MY OUTBOX

    SAME AS MOST HIGH: WHY MAKE TWO COPIES OF EMAILS THAT I SEND IN MY OUTBOX

    I guess that your account is Outlook.com or Gmail. These two put mail in your Outbox and Thunderbird does.

    If it's an of these, go to menu (alt + T) tools > account settings > copies and folders and change your sent does not save a copy in.

Maybe you are looking for

  • Windows unsuccessfully

    Automatic update of Windows install not the update of silverlight don't know what to do now.  keep trying to update.

  • AProblems printing with HP Officejet 6500 a Plus

    I have a new HP Officejet 6500 has more, and have had the following problems, since it was installed. I'm on an iMac computer using Mac OS 10.6.6. The power adapter is plugged into a wall outlet as suggested. I turn my computer off every night. When

  • I get the 0x80072ee2 error code when I try to download apps from store Windows.

    Original title: can not download on windows store. My Windows Mail app stopped working, so I deleted and tried to download a new one. Then, after a while, I get a message: can't install, error 0x80072ee2 Had the same Message on other applications too

  • GREP style make Giardia italic does not

    I haven't used before grep, but trying to solve another problem, I found something that would allow me to save a lot of time by changing specific words in italics. I added the style GREP for Cryptosporidium and e. coli and it works fine, but when I a

  • To delete the characters only at the beginning of a string using regexp_replace

    I want to be able to delete the characters in a string only until the first numeric value.  If it takes place after the digital, I want to keep them."for example"AB1234' becomes '1234', 'AB1234C' becomes ' 1234 C.It might be also spaces and other typ