Htmldb_mail.send problem

For some reason some of our customers have been receiving multiple copies of a same message. We are sending notifications to our clients and sometimes we can send out 4000 emails at a time.
Here is a trimed down example of the code that will allow to reproduce.
declare   
    I INTEGER := 1;
begin
  --Sending message to customer
  WHILE I < 1500 LOOP
    htmldb_mail.send(
      p_to   => 'email_from', -- Change this to something valid
      p_from => 'email_to',    --  Used my inbox to tes
      p_body => 'TEST' || I,
      p_subj => 'TEST' || I );
    I := I + 1;
  END LOOP;
end;What I get in my inbox when testing is 3000 + messages. Is there a limit on how many emails can be managed at a time in the queue?
I do not push the queue, I let it manage itself. We are using HTMLDB 2.0 and yes I know we should upgrade but it's not going to happen anytime soon.
P.S. When doing the same exercise with under 1000 loops, it works properly.
Thanks in advance for any help.

I did some more testing and it would seem that it's the HTMLDB_MAIL.PUSH_QUEUE that is to blame. I do not push the queue but we have other applications that call it.
If I have messages in the queue that are waiting and two other applications call the push queue I will receive multiple copies of the messages that are waiting to be sent.

Similar Messages

  • HTMLDB_MAIL.SEND problem when sending HTML

    We had a test application running off of the Oracle hosted site. We used HTMLDB_MAIL.SEND and P_BODY_HTML successfully. However, now we are running on our own hosted site of the production release of 1.6 (no code changes whatsoever, just an export/import). When we send the P_BODY_HTML it is not converted to html, it is sent as text with the html tags embedded.
    In the meantime we have written our own mail procedure, but we were hoping the version of 1.6 that is available was the same as the hosted version.
    Is there something else we should be aware of?
    Thanks!

    Joel,
    I have the following with P_EMAIL_BODY my text body:
    create or replace PROCEDURE "MR_SEND_MAIL"
    ( P_TO_EMAIL IN VARCHAR2,
    P_EMAIL_BODY IN VARCHAR2,
    P_EMAIL_SUBJ IN VARCHAR2 ) is
    L_ERRMSG VARCHAR2(200);
    L_BODY VARCHAR2(4000):='';
    begin
    l_ERRMSG := 'HTMLDB_MAIL.SEND()';
    L_BODY:= L_BODY||'<HTML><HEAD><META http-equiv=Content-Type content="text/html; charset=iso-8859-1">'||chr(10);
    L_BODY:= L_BODY||'<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>'||chr(10);
    L_BODY:= L_BODY||'<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">'||chr(10);
    L_BODY:= L_BODY||replace(P_EMAIL_BODY,chr(10),'<BR>')||'</BODY></HTML>'||chr(10);
    HTMLDB_MAIL.SEND(
    P_TO => P_TO_EMAIL,
    P_FROM => '[email protected]',
    P_BODY => 'this must be viewed by an html enabled client',
    P_BODY_HTML => L_BODY,
    P_SUBJ => P_EMAIL_SUBJ);
    l_ERRMSG := 'PUSH_QUEUE.';
    BEGIN
    wwv_flow_mail.push_queue(
    P_SMTP_HOSTNAME => 'gilbert.esc.net',
                   P_SMTP_PORTNO => '25');
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20080,'MR_SEND_MAIL: '||l_ERRMSG);
    END;
    end;
    It does not work properly. I'm using Groupwise and have my client set for HTML.
    Should I have mult-part somewhere?
    Any help be appreciated, Bill
    Message was edited by:
    Bill Carlisle

  • Apex 3.1 - checkbox for selecting email addr - problem w/ HTMLDB_MAIL.SEND

    So prior to the upgrade to 3.1 I had working where I use a multi-select checkbox to show email addresses with a comma behind each email address it to send via:
    HTMLDB_MAIL.SEND(
         p_to => :P24_EMAIL_LIST,
    p_cc => :P24_CC_EMAIL_LIST,
    And basically the list looked like this and was stored like this [email protected],:[email protected],:[email protected]
    The way checkbox selection are stored in the database it has the colon separation. Prior to 3.1 it would send with colon : preceeding the email address, but now it doesn't. Any thoughts? I've tried using Trim(':' xxx) but not solved it yet
    Message was edited by:
    user604228

    Hi Frank,
    Can you show me the code you used to create the multi-select checkbox to show email addresses with a comma behind each email address it to send via:
    HTMLDB_MAIL.SEND(
    p_to => :P24_EMAIL_LIST,
    p_cc => :P24_CC_EMAIL_LIST,
    I'm trying to do the same or something similar to this [http://cloudisfuture.blogspot.com/2012/05/sendemail-to-multiple-contacts in apex-oracle.
    I'm using Apex 4.0 on oracle express edition 11g.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • HTMLDB_MAIL.SEND does not work with 11g

    Hi Guys,
    I have a simple application that uses HTMLDB_MAIL.SEND. I am running APEX 3.0 against an 11g database. When run against a 10g DB all is good. But with 11g I get
    ORA-24247: network access denied by access control list (ACL)
    I looked up the error which recommends altering ACL stuff, which I know nothing about. Is there a simple way to get rid of this error.
    O.

    Hi,
    I have the same problem as you.
    Colud you please explain me how did you resolve it.
    Thanks
    HTMLDB_MAIL.SEND does not work with 11g

  • HTMLDB_Mai.send() problemas para enviar, quedan en cola

    Hola,
    Tengo problemas a la hora de enviar un mail con HTMLDB_Mai.send(), los mail me quedan en cola en el MAIL QUEUE, si despues le digo enviar, lo envia correctamente. la s direcciones son validas
    Alguien me podria orientar
    la sintaxis que usó es: HTMLDB_MAIL.SEND(
    P_TO => 'mail_destino@mail_destino.com.ar',
    P_FROM => 'mail_salida@mail_salida.ar',
    P_BODY => l_variable,
    P_SUBJ => 'Asunto')
    Muchas gracias
    Juan Pablo

    Pablo,
    Con el send se pasan a la cola los correos, si quieres enviarlo de forma inmediata usa :
    Apex --> APEX_MAIL.PUSH_QUEUE;
    Htmldb --> HTMLDB_MAIL.PUSH_QUEUE('SERVER', 'PUERTO');
    Saludos

  • HTMLDB_MAIL.SEND to AOL addresses

    Many of my apps engage the HTMLDB_MAIL.SEND procedure to send automated e-mail notifications. I've found that e-mails sent via this procedure do not reach aol.com addresses. I looked on AOL's web site and found the following policy:
    America Online, Inc. ("AOL") does not authorize the use of its proprietary computers and computer network (the AOL Network") to accept, transmit or distribute unsolicited bulk e-mail sent from the Internet to AOL members. In addition, Internet e-mail sent, or caused to be sent, to or through the AOL Network that makes use of or contains invalid or forged headers, invalid or non-existent domain names or other means of deceptive addressing will be deemed to be counterfeit.
    I am guessing that the headers coming out of HTML DB are invalid. Any one have any ideas as to how I can change the header and pass muster with AOL? I'm thinking if I change the "from" line it could solve the problem.
    Thanks.
    Bill

    By the way, this is a header from an HTML DB email. Anyone know what the phrase "misconfigured sender" means?
    Received: from rhdev10g.mycompany.com (unknown[209.234.83.168](misconfigured sender))
    by rwcrmxc22.comcast.net (rwcrmxc22) with ESMTP
    id <20050816170645r22001eft3e>; Tue, 16 Aug 2005 17:06:55 +0000
    X-Originating-IP: [209.234.83.168]
    Received: from localhost (localhost.localdomain [127.0.0.1])
         by rhdev10g.mycompany.com (8.12.11/8.12.11) with SMTP id j7GHPiCr019616;
         Tue, 16 Aug 2005 12:25:44 -0500
    Date: Tue, 16 Aug 2005 12:25:44 -0500
    Message-Id: <[email protected]>
    MIME-Version: 1.0
    To: [email protected]
    From: [email protected]
    Subject: AOL Test
    Reply-To: [email protected]
    Content-Type: text/plain; charset=utf-8

  • I need help with an email WiFi sending problem on my iPad 2

    I’m having an email WiFi sending problem on my iPad 2     Model:  MC774C/A;  IOS VERSION: 6.1.3 (10B329). 
    While I use 4 email accounts on the iPad -- Hotmail, Gmail, iCloud and ns.sympatico.ca ( a division of BellAliant) – the sending difficulty only relates to the ns.sympatico.ca.  The settings for this account are:         pop.bellaliant.net            and      smtp.bellaliant.net
    I first noticed the problem about 3 weeks ago while travelling across the country (Canada).  (I do recall about that time there was an update of my IOS and I also for my wife purchased from the Bell store an iPhone which shares my Apple account.)  Prior to that everything worked well for a couple of years.
    I noticed earlier this month that the iPad received mail fine but would not send at night using the motels’ WiFi.  During the day, using my 3G account, all worked fine.  I phoned Bell but was told that my experience was normal so I thought no more about it until I returned home and found the same problem at the house.  I called Bell again and worked for 2 hours with 3 Bell technicians who succeeded in getting the iPad to neither send nor receive and gave up advising me to take the iPad into a Bell store to have it looked at.  I did that and the young technician got the iPad sending and receiving by changing the        smtp.bellaliant.net      to         mail.1xbell.ca
    However, when I returned home again, I realized that it was working on my 3G and still doesn’t send on my WiFi
    I’m looking for any suggestions that might solve this annoying problem?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Rfc sender problem(sap r/3 -se37) 'alternativeServiceIdentifier: party/serv

    Rfc sender problem: While executing the rfc in sap r/3 system
    It is showing abap run time errors are
    'alternativeServiceIdentifier: party/service from channel
    configuration are not       
    (i have taken hint from this weblog /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step)
    These are the configuration at sap xi and sap r/3 system
    1) SAP XI (ID)
    I have created rfc sender commuication channel in I.D.
          Rfc server Parameters->
                A.S.(Gateway)-> server    {sap r/3 server name}
                A.S.S.(Gateway) -> sapgw00 
                program id         -> PDPT
         AND RFC Metadata repository parameter
    2)SAP R/3 (SM59)
        Rfc destination ->  PPPP
        Connection type -> T
        Technical Settings->
             (*)  Registered Server Program
          Program ID  ->    PDPT
    Gate way options
          Gateway host -> server
          gateway service -> sapgw00
    Testconnection-> connected
    3) testing rfc at sap r/3(se37)
    But when i am executing a rfc in sap system
    Rfc target system -> PPPP
    and some import parameters
    and it is showing the error message as
    'alternativeServiceIdentifier: party/service from channel
    configuration are not  '
    4)SAP R/3( SMGW)
    CONNECTION TO CLIENT FOR PDPT(TP NAME) REGISTER STATUS IS WAITING
    Please help me how to solve this problem

    Hi,
    SAP Note 730870 FAQ: XI 3.0 RfcAdapter Q.no 15
    <i>Q 15: Whats wrong when the error message "lookup of alternativeServiceIdentifier via CPA-cache failed" shows up while sending a RFC call to the RfcAdapter?
    A: A RFC sender channel is located beneath a service within the Integration Directory. Within this service choose "Service" -> "Adapter-Specific Identifiers". The values in the fields "R/3 System ID" and "Client" has to be maintained with the correct values of the system, that sends the RFC call to the RfcAdapter. It normaly only makes sense to have these values filled for services of type "Business System". If maintained in SLD, this fields will be filled automaticaly for services of type "Business System" and can be updated with the button "Compare with System Landscape Directory".</i>
    - Give correct appserver and gateway service details in XI.
    - Open the service holding the RFC adapter you are trying to use. On the top menu, goto Service -> Adapter Specific Identifiers..
    Regards,
    Prateek

  • A new clue to the Apple Mail sending problems?

    In my continuing efforts to fix the SMTP/POP mail failures with Apple mail, I've noticed a glitch that some of you more advanced readers might be able to decipher.
    After lots of fruitless messing around with port numbers, preferences, and keychain fix attempts, what did work for me (temporarily) was a cleaning out of all the servers listed on the mail account options window, and then putting the original names and other info back in. Somehow, the mail app is spontaneously generating multiple combinations of server names, usually the original server name, plus a user name, the server name again, or some other redundant combination.
    As I use mail to manage two separate POP accounts, sometimes it also creates hybrid server names by combining the server/user name pieces across both accounts.
    This appears to happen entirely on its own; I had mail working for about 90 minutes, then it fell into this problem again. I'll probably have to keep cleaning it out, like a boat owner scraping barnacles off the hull, until Apple offers some kind of a patch.
    Has anyone else who has the nagging "can't send SMTP mail" problem seen this phenomenon in their server/account preferences specs? If so, any ideas on how to stop this madness?

    You haven’t said what the problem was in your case, i.e. what error message did you get when sending, if any, whether the mail account and the associated outgoing (SMTP) server were provided by your ISP or by someone else, etc.
    Mail doesn’t spontaneoulsy generate outgoing server entries, but it keeps information about outgoing (SMTP) servers in a separate list independently of the mail accounts themselves. The account settings just associate one of the available outgoing servers with each account. Deleting an account doesn’t remove from the list the outgoing server that was associated with it. Orphaned or dangling outgoing server entries (i.e. not associated with any account) sometimes cause weird sending problems, and could very well have been the problem in your case as well.
    As you appear to have already found out, you may go to Mail > Preferences > Accounts > Account Information > Outgoing Mail Server (SMTP), choose Edit Server List from the popup menu, and delete any servers that shouldn’t be there — the Edit Server List panel shows the account each outgoing server is associated with.

  • Parallels xp unable to send problem report?

    Parallels desktop 7
    I have old version of XP, parallels does not detect (virtual machine is  not available) when I locate, set up.exe is grey
    I am unable to send problem report? please check network settings and try again, my network settings are working, I'm sendint this thread?? emails sending and recieving, any help would be really appreciated
    Tks
    Gary

    You ain't gonna believe this but:
    In 2006 I tried half heartedly to set up parallels and just took a look at a response I got, it suggested.
    There's a bug in the Apple firmware in the Mac Pro that prevents the hardware virtualization support that's built into the processor from being used. Since you will be running a VM (Virtual Machine) to install your guest OS, hardware virtualization support will let your VM run directly on the processor hardware. Without Vt-X support, software emulation is required, which is many times slower.
    Sometimes, putting your Mac to sleep and waking it up will allow getting around the Apple bug and allow Vt-X to work, speeding up your VM.
    Well I just put mine to sleep and the bloody thing downloaded perfectly, go figure.
    Shootist, you were perfectly correct, I was just frustrated and was trying anything.
    Actually Tempelton, I put it here and parallels because I think it's a combo problem, but, thanks for your help anyway mate. Also, I do like a little Robert Johnson matter of fact the Blues Bros were real good at sweet home chicago too
    Thanks all

  • Mail locked up because of sending problem.  How do I stop the send function?

    Mail locked up because of sending problem.  How do I stop the send function?

    Didn't help.  Wound up talking to A Support & deleting the cache in my Library Mail file then restarting.  Thanks anyway.

  • Adobe Send - Problem with uploading files. When is this going to get fixed?

    When is the Adobe Send problem with uploading files going to get fixed. Similar to others - I have tried and tried to make Adobe Send work and get an error. I have tried to upload the file and it looks like it uploads and then - it is nowhere to be found.
    I then go to Adobe Send Now and it works fine.

    The problem is the same as described in other similar threads.
    I have a 57 MB PowerPoint file I am trying to send using Adobe Send. I go through the normal steps to identify the file and select recipients and then send the file. After the file completes the upload - an error saying there was a problem comes up and the file is not uploaded.
    I have tried to upload the file to the site with similar results - error and the file doesn't go.
    I can go to the old SendNow site and it works flawlessly.
    If I need to get screenshots - let me know. There are several other threads describing this same problem. It isn't something new or not heard of before.
    Sent from my iPod

  • Yahoo! Mail send problem

    Hello all, anyone know when we will see a fix for the Yahoo! Mail sending problem? (This is when the iphone appears to have sent an email by playing the "swoosh" sent mail sound, but the message was not sent, the way users have been getting Yahoo! Mail to send again is by turning their iphone off then back on).
    Cheers

    For what it's worth I also had this problem with Yahoo mail on my iPhone. After getting tired of waiting for Yahoo to do something about it, I decided to cancel my Premium Yahoo account and switch to Gmail. I have to tell you Gmail has been amazing and I haven't looked back since. IMAP Gmail on my iPhone has made my email experience a pure joy.
    BTW - I had my Yahoo account for over 7 years. And did you know that Yahoo is an acronym for You Always Have Other Options? Well I took them up on their advice since I wasn't too impressed with their service! My 2 cents.

  • "Send" Problem with Mail

    When I reply to an email in Mail, the "send" button in the reply message windeow is greyed out and will not function. This has occured since the machine was updated to OS X Tiger. What is the fix?

    In case you're missing something, instructions for setting up an AOL account in Mail can be found here:
    http://members.aol.com/adamkb/aol/mailfaq/imap/applemail.html
    The instructions are for Mail 1.3, but they can be used for Mail 2.x as well, noting that the Special Mailboxes preference pane is called Mailbox Behaviors in Mail 2.x.
    You may also want to read the more general guide the above article is part of:
    Accessing the AOL Mail System using IMAP - An Unofficial Guide
    Also, Mail Help has some articles devoted to sending problems, e.g. I can't send email or I can't send email because the connection to the server on port 25 timed out. You may want to take a look at them in case there is something there that applies to you. Something that usually works is changing the outgoing server port to 587 instead of 25.

  • Using htmldb_mail.send from a job

    Hi , I'm trying to use the htmldb_mail.send from sqldeveloper, but I dont see it in APEX mail queue and I dont get the mails . I tried from all users (flows_020000,htmldb_public_user) without sucesses, what am I doing wrong ?
    p.s.
    i'm trying to create a job that will send email regulary .
    regards,
    sagsag

    declare
    tomail varchar2(30):='[email protected]';
    frommail varchar2(20):='[email protected]';
    text varchar2(30) :='mail from htmldb_public_user';
    begin
    htmldb_mail.send(
    p_to => tomail,
    p_from => frommail ,
    p_body => text,
    p_subj => text);
    end;

Maybe you are looking for