Htmldb_mail sending

Hi All,
I want one solution,Actually i need to know how can i send an email from my apex application on date on which user enters in tab,i have procedure htmldb_mail.send() but i need to send email on the day on which user enters by selecting in calender.
Thanks

Hi There.
Well, I am using Oracle 10g.
They have a new, slightly more user friendly, utility which I forgot to mention. I think this is a replacement for DBMS_JOB. It's called DBMS_SCHEDULER.
The following is from http://tahiti.oracle.com
BEGIN
DBMS_SCHEDULER.CREATE_JOB(
   job_name          =>  'job1',
   job_type          =>  'PLSQL_BLOCK',
   job_action        =>  'INSERT INTO employees VALUES (7935, ''SALLY'',
     ''DOGAN'', ''[email protected]'', NULL, SYSDATE,''AD_PRES'', NULL,
      NULL, NULL, NULL);');
   start_date        =>  SYSDATE,
   repeat_interval   =>  'FREQ = DAILY; INTERVAL = 1');
END;
/If you take a look at the following url you should find all the information you need but if you struggle, please reply with your code and we can take a look.
http://tinyurl.com/5dvvlm
Kind regards
Simon Gadd

Similar Messages

  • 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_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

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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;

  • 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.

  • 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

  • HTMLDB_MAIL.SEND smtp username/password setting

    I use HTMLDB_MAIL.SEND to send email from apex interface.
    But how i can define userneme, password and smtp server ??
    thank's a lot.
    Bye

    In Apex Instance Administration page (login to Internal workspace as admin),
    Under Home>Manage InstanceInstance>Settings menu, there is an Email section.
    You can specify the following items:
    SMTP Host Address      
    SMTP Host Port      
    SMTP Authentication Username      
    SMTP Authentication Password      
    Administration Email Address      
    Notification Email Address      
    Maximum Emails per Workspace
    If you do not have right to acces it, ask your DBA for help.

  • Reference app_image from htmldb_mail.send

    Hi all,
    I'm using html_db to send the users a confirmation email.
    I was wondering if it is possible to reference the uploaded images when sending the mail.
    I would like to avoid making clobs, by just referencing the image directly thru app_image in htmldb_mail.send procedure.
    Is this possible? If yes, what's the syntax?
    Thanx,
    Pim

    Hi,
    This might help
    http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/apex_mail.htm#CHDDAAJE
    In email HTML body use img tag like
    <img src="http://myserver:port/i/my_image.gif" alt ="" />Br,Jari

  • '!' while using the HTMLDB_MAIL.SEND package

    Hi,
    Someone please help me,
    I have this link that I send in my mail through htmldb.
    Now I call the mail package in the procedure as follows :
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => '[email protected]',
    P_BODY => v_adm_html||l_body_html,
    P_BODY_HTML => v_adm_html||l_body_html,
    P_SUBJ => 'Request Number: '||v_req_id||' created ');
    but there is this exclamation mark that gets added in the link....
    I dont know how it got generated....
    Can someone help me here
    Thanks,
    DJ

    A similar 'effect' I experience is that somewhere in the html_bodytext, not regular, not always, now and then, also '!' do pop up.
    I have no idea why: resending the same body-text: either no '!' at all or... on different place(s) in the mail.
    Mail is send from Oracle-XE with APEX 2.1 (standard version supplied by Oracle) running on a Windows-XP machine.
    Any help is welcome.
    Jan.

  • Send mails to 3 id's at a time

    Hi All:
    I have a probem with sending mails to 3 different persons at a time
    i have table called sudhir which has 3 email id's in it i am using these names to send mails
    this is the query what i am using
    DECLARE
    l_body CLOB;
    l_body_html CLOB;
    BEGIN
    l_body := 'To view the content of this message, please use an HTML enabled mail client.'||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 || '<p> <Strong>Hi:</strong></p>'
    ||'<p>Thank you for your interest in the <strong>Dashboard Tool</strong> package.</p>'|| '<strong>Project Name:</strong>' || '    ' ||:P15_MAIL_PROJECT ||'  ' || '<br>Has crossed the org.limit PVA to be done </br>' || '<br>This is an automated mail. Please do not reply</br>'||utl_tcp.crlf;
    l_body_html := l_body_html ||' <br> Sincerely,</br>'||utl_tcp.crlf;
    l_body_html := l_body_html ||' <span class="sig">Sudhir</span>
    '||utl_tcp.crlf;
    for c1 in (select name from sudhir) loop
    if c1.name is not null then
    htmldb_mail.send(
    p_to => c1.name || 'xxx.com,
    p_from => '[email protected]',
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => 'Web Dashboard Tool E-Mail Test');
    end if;
    END;
    another question in the table i have 3 mail ids can i send 1 for to-address and another 2-cc as cc to them
    please suggest my earlier post had no replies
    thanks
    sudhir
    Message was edited by:
    Sudhir_N

    Check whether the mail server has been made blocked to send external mail id's

  • Email Not Sending from App

    Hello,
    I am using Application Express 2.1.0.00.39 installed by Oracle 10g XE.
    I am unable to send email using the following code:
    Declare
    P7_STATUS Varchar2(8);
    Begin
    HTMLDB_MAIL.SEND(
    p_to => '[email protected]',
    p_cc => '',
    p_from => 'UHR Issue Request System',
    p_body => 'The assistance request: '||:P7_ISSUE_SUMMARY||', has been received and will be addressed shortly.',
    p_subj => 'IM&T Assistance Request');
    end;
    My email configuration is set to the proper smtp address and port address. I checked the mail queue and the email is still there. When I manually attempt to send the email, I receive a confirmation message 'Successfully sent mail.' but the email is still visible in the queue.
    I had someone check the email logs on the smtp server and they do not show any email being sent from my IP address.
    I've looked at all of the posts on the forum and tried them to no avail. Any help is appreciated.

    This is what I get from the sql command option:
    Pushing email 28246014874767726
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 555 5.5.4 Unsupported option: Issue
    Pushing email 28259028324547729
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 555 5.5.4 Unsupported option: Issue
    Pushing email 28262110756017570
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 555 5.5.4 Unsupported option: Issue
    Pushing email 28265016699113957
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 555 5.5.4 Unsupported option: Issue
    Pushing email 28267124345692737
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 555 5.5.4 Unsupported option: Issue
    Pushing email 28269402669700750
    ORA-29277: invalid SMTP operation
    ORA-06512: at "FLOWS_020100.WWV_FLOW_MAIL", line 345
    ORA-29279: SMTP permanent error: 501 5.1.7 Bad sender address syntax
    Statement processed.
    0.15 secondsDBMS Output
    Does any of tha make sense to you?

  • Need to send a link in mail using apex

    Hi,
    I need to send a mail using apex which will contain a link for a specific page. For sending mail , I used the following query:
    for c1 in (select EMAIL_ADDRESS
                 from USER_DETAILS
                where USER_NAME= :P4_USER_NAME and EMAIL_ADDRESS=:P4_EMAIL_ADDRESS) loop
      if c1.EMAIL_ADDRESS is not null then
        HTMLDB_MAIL.SEND(
          P_TO       =>  c1.EMAIL_ADDRESS,
          P_FROM     => '[email protected]',
          P_BODY     => 'Your new password is '|| 'xyzxyz',
          P_SUBJ     => 'Password detail' );
      end if;
    end loop;
    But how i will send the required link.
    Pls give some idea.
    Thanks,
    Chandra Bhanu

    Hi Chandra,
    Try this version of your code, you will alter the url to map to your apex server.
    DECLARE
       l_body   VARCHAR2 (4000);
    BEGIN
       FOR c1
          IN (SELECT email_address
                FROM user_details
               WHERE     user_name = :p4_user_name
                     AND email_address = :p4_email_address)
       LOOP
          IF c1.email_address IS NOT NULL
          THEN
             -- Include link to login page
             l_body :=
                   '<p>Your new password is '
                || 'xyzxyz'
                || '  To access the application and change your password, follow the '
                || 'link below.</p><p><a href="http://'
                || '</p><p><a href="http://edwprd:7777/pls/oitp/f?p=&APP_ID.:LOGIN</a></p>';
             apex_mail.send (p_to     => c1.email_address,
                             p_from   => '[email protected]',
                             p_body   => l_body,
                             p_subj   => 'Password detail');
          END IF;
       END LOOP;
    END;
    Jeff

  • How to send an email with file attchment

    hi,
    I have develop one application using HTML DB.In that sending an e-mail facility is also there. I am able to send an email using an the HTMLDB_MAIL.send() procedure. But using this procedure i am unable to attach a file to the mail.Is there any way to send an email with file attachment.
    Thanks in Advance.

    hi,
    I have develop one application using HTML DB.In that sending an e-mail facility is also there. I am able to send an email using an the HTMLDB_MAIL.send() procedure. But using this procedure i am unable to attach a file to the mail.Is there any way to send an email with file attachment.
    Thanks in Advance.

  • Sending Emails in APEX

    Hi,
    I am trying to send an email from my application using apex.oraclecorp.com
    Below is the process defined.
    DECLARE
    l_body CLOB;
    l_body_html CLOB;
    v_name varchar2(900);
    r_name varchar2(900);
    st_date date;
    ed_date date;
    BEGIN
    FOR C1 IN (select "USERNAME" name
    from IT_PEOPLE where PERSON_ROLE =2) LOOP
    l_body := 'To view the content of this message, please use an HTML Enabled mail client.'||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 || '<p> Hi'|| '&nbsp' || Replace(Initcap(C1.name),'.',' ') ||',</p>' || 'Please note that you have to enter the Status for your relevant projects.'||'&nbsp '|| 'Kindly ensure that it is done by Friday.' || '&nbsp&nbsp&nbsp' || '<br>&nbsp&nbsp' ||
    '<br>&nbsp ****** This is an auto-generated email. Please do not reply to this email. ******</br>'||utl_tcp.crlf;
    l_body_html := l_body_html ||' <br>Thank You</br>'||utl_tcp.crlf;
    l_body_html := l_body_html ||'<br>OMS Project Management Team</br>'||utl_tcp.crlf;
    htmldb_mail.send(
    p_to => c1.name || '@oracle.com',
    p_from => '[email protected]',
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => '*** Enter Project Status ***'
    HTMLDB_MAIL.PUSH_QUEUE('smtp01.oracle.com','25');
    End Loop;
    END;
    Below is the condition.
    CONDITION : PL/SQL Function body returns Boolean
    DECLARE
    V_Date varchar2(12);
    BEGIN
    select to_char(sysdate,'DAY') into V_Date from DUAL;
    IF V_Date = 'THURSDAY' THEN
    RETURN true;
    END IF ;
    END;
    It does not seem to be working. I have currently put it on the home page. Would it fire when anyone goes to the home and it's Thursday. What page would be the best place to put this?
    This is the first time I am working on APEX.
    Could someone please help with this.
    Thanks,
    Shiju

    Hi user,
    Please edit your profile and choose a nickname ...
    1-Did you read the docs about sending email using APEX_MAIL.SEND
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_mail.htm#AEAPI341
    2- Did you notice that you can create a page process to send an email...
    In your case, the Process Point should be: On load After header
    Best Regards,
    Fateh
    If you believe that my answer was helpful or correct, the please mark the answer as helpful or correct.

Maybe you are looking for

  • Down Payment u2013 New functionality in PO - Limit the Planned Amount of DPR

    Hi, everybody I need an assistance with the new transactions for DownPayment Request based on PO (ME2DP and FPDP_CREATE). We created a PO, in the item detail, tab "Invoice" we planned a Voluntary DP with DownPayment % = 20 %. In ME2DP it is possible

  • MacBook Pro crashes when closing lid while in windows 8.1

    I use a late-2011 MacBook Pro with Mavericks for work and run Windows 8.1 as my daily driver via Boot Camp. I've been running this setup for about a month without incident, but within the past week whenever I close the laptop it starts acting really

  • Buttons on winxp are not displayed correctly

    Hi, I was just testing around with AWT and SWT and noticed that the Button component is not displayed in xp style but in the old win2k style. why? and Is it possible to change this behavior? thanks

  • MBP 13 to two monitors

    Hi guys, is it possible to connect one MBP 13" to two external displays simultaneously? I don't mean mirrored either, I mean for the desktop to be split over the two external monitors. Thanks

  • IPod Touch now seems to be real sensitive.

    Hello, I've had my IPod Touch since March of last year, I got it for my birthday. About a week ago I was on the bus listening to music on it on my way home, and all of a sudden the music paused; I thought I accidently pulled my headphones out, but th