Send Email to APEX 4.2

Hi All,

     This could be general question would like to know what could be best way to send email to end users for below scenario

   - Assuming I have a Query as "select * from emp where empname is null"
  - It means we have empty values for column empname, if there are any empty values in that column I need to send mail to end users that "there are missing data for these columns" Please back fill those data manually.
- In this way it will help end users to they manual work to check query in back end daily, we will be sending mail to users when we found these problem.

Please help on this request to send mail.

Regards,
Sruthitamiri 

Sruthi Tamiri wrote:

  1. Hi all
  2. It could be general question would like to know what might be the best way to send them to end-users for scenario below
  3. -Assuming that I have a query such as "select * from emp where empname sucks."
  4. -It means that we have empty for empname column values, if there are empty values in this column, I need to send an e-mail to end users that "missing data for these columns" back fill these data manually.
  5. -In this way it will help end-users to they manual work to check the query in backend per day, we will send mail to users when we learned these problem.
  6. Please help on this application to send an e-mail.
  7. Kind regards
  8. Sruthitamiri

Why this message is formatted as code when it does not? Is it as an attempt to align the "chips" are manually created then it failed spectacularly. Note that there is a button in the editor of the forum for the formatting of the text and bulleted unordered lists.

Sending e-mail alerts based on the results of the query is obtained using scheduled tasks or continuous Query Notification, as advised in this previous thread: Re: request/design of the necessary Multiple INTERFACE.

Tags: Database

Similar Questions

  • Sending emails to APEX

    Hi friends,

    I am trying to create some procedures to send emails to users when specific situations occurs at the database, using APEX.

    In Apex Admin e-mail log, I still get access to the network error ORA-24247 denied by the access control list (ACL).

    I looked in the manuals and Foruns and got the procedure to allow http://download.oracle.com/docs/cd/E10513_01/doc/install.310/e10496/otn_install.htm#BEHGBHDF, but I couldn't make it work.

    It is said the table DBA_NETWORK_ACLS does not exist.

    How should I proceed?

    Thank you!

    You need to enable network services as explained in the link posted in your first post.

    Do you need s/n roles, if you do not have... ask your DBA ;)

  • ORA-20001 send Email of APEX

    Until anyone responds... I 'm affecting the security group ID. ;-)

    The inside APEX, I created a simple test application that allows the user to enter a phone number and the code attempts to use e-mail to send to the phone number, that is a message "text".

    The page was just an edit individual line and a button control. The button triggers a process called 'TextEmProc '.

    "TextEmProc" was just a few lines:

    < PRE >
    DECLARE

    ls_JustTheNums VARCHAR2 (32);

    BEGIN

    ls_JustTheNums: = RegExp_Replace (: P1_MOBILE_NUM, "[^ [: digit:]]'," ");

    wwv_flow_api.set_security_group_id;

    APEX_040000.APEX_MAIL. SEND (p_to = > ls_JustTheNums |) "@txt.att.net.
    P_FROM = > 'your Apex App friendly. "
    p_body = > "Someone's average margin");

    END;
    < / PRE >

    The appellant, translates the error message: "ORA-20001: this procedure must be called from an application session.»

    This never works and always gets this error. Anyone have an idea what is wrong?

    Thank you

    -Joe

    Hey Joe,

    If you use the package of mail in an APEX application so no need to set the security_group_id, because it is already defined.

    Try the following code:

    DECLARE
       ls_JustTheNums VARCHAR2(32);
    BEGIN
       ls_JustTheNums := RegExp_Replace( :P1_MOBILE_NUM, '[^[:digit:]]', '' );
       APEX_MAIL.SEND( p_to    => ls_JustTheNums || '@txt.att.net',
                               p_from  => 'Your Friendly Apex App',
                               p_body  => 'Someone is Way Out of Margin' );
    END;
    

    Note: That I also deleted APEX_040000 of your call APEX_MAIL scheme name. You should not use references to hard-coded patterns, because if you upgrade to 4.1 APEX your code will no longer work.

    BTW, at APEX 4.0, you can also use use the declarative process type 'Send E-Mail' and use & PX_XXXX. syntax to refer to dynamic values.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Problem of HTML tag when sending emails through APEX

    Hello
    Below is my code for sending mail:

    DECLARE
    l_body CLOB.
    l_body_html CLOB.

    cursor c2 is
    SELECT pn, pdt_name FROM lib_details WHERE a_date BETWEEN to_date(:P13_SDATE,'DD-MON_YYYY') AND to_date(:P13_EDATE,'DD-MON-YYYY').


    BEGIN
    for c_lib in c2
    loop
    l_body_html: = l_body_html |
    ' < html > < body >
    UL >
    li > ' | c_lib. PN||', ' || c_lib.pdt_name |' /li >
    /UL > '; p;
    l_body_html: = l_body_html | "< body / > < / html > ';

    () apex_mail. Send
    p_to = > "xxxx."
    P_FROM = > "xxxx."
    p_body = > l_body_html,
    p_subj = > "Test Mail");
    END;

    Give me the result in the format below:
    all the < HTML > < body > also comes with email, if I get the correct result, what is the problem here?
    I am not able to understand this. Can anyone help?

    OUTPUT
    ------------
    < html > < body >
    UL > li > a, b
    /UL > < html > < body >
    UL > li > c, and d
    /UL > < html > < body >
    ..........................................

    Please NOTE: I voluntarily removed the start tags (<) UL and li so that the post will not be shaped.

    Published by: Suzi on 9 February 2012 13:18

    >

    Give me the result in the format below:
    all theTags also comes with email, if I get the correct result, what is the problem here?
    I am not able to understand this. Can anyone help?

    For HTML output, you will need to send it using the parameter p_body_html , not p_body.

    Please NOTE: I voluntarily removed the start tags (<) UL and li so that the post will not be shaped.

    Display code encapsulated in .

    ...\
    

    Tags eliminates the need to resort to these weird paraphrases.

  • Apex.oraclecorp... I can send email from a procedure?

    I have an application that wants to send automatic reminders...

    I tried these but during the compilation of the procedure, it looks like they might not be available?

    APEX_MAIL. SEND, UTL_MAIL.send, UTL_SMTP. Looks like they are disabled in this environment or...


    What can I do with my privileges of the current user in apex.oraclecorp.com to send emails from a procedure?


    Thank you!!!

    Claudio

    I found my problem...

    The following procedure works fine... Thank you all!

    create or replace procedure 'TRACKER_EMAIL '.

    is

    BEGIN

    () apex_mail. Send

    p_to => ' [email protected]',

    P_FROM => ' [email protected]',

    p_body-online "it is a test."

    p_subj => "Recall!");

    END;

  • Send emails as a task without external SMTP server

    Hello

    I would like to send notifications by e-mail at set intervals, but ideally without needing an external SMTP server (if I could use an external SMTP server, it would be easy to do either with UTL_SMTP, UTL_TCP). It is possible to send mails from within applications using the APEX_MAIL package but I can not use this package in a task scheduler to a valid session. It should probably be possible to create a session of "false" (Giffy Martin on Oracle APEX D'Souza: how to create a Session of the APEX in PL/SQL) in a scheduled task, and then to send mails using APEX_MAIL but I hope there might be a simpler solution, so advice and guidance would be much appreciated.

    Kind regards

    Pavel

    If you do not want a 'Server SMTP external', which would be an "internal SMTP server" by your definition? APEX_MAIL is simply a wrapper around UTL_SMTP. You still need an SMTP server to send emails.

    See setting up Email to:

    http://docs.Oracle.com/CD/E59726_01/doc.50/e39151/adm_wrkspc002.htm#AEADM29163

  • APEX_SEND, PAAS and limit sending emails

    Hello world

    I intend to use APEX_MAIL. SEND_MAIL to send mails from 15 000-20 000 with PAAS.

    According to this http://docs.oracle.com/cloud/latest/dbcs_common/CSDBU/develop013.htm#CSDBU250 , we can send only 5000 emails per day...

    Is it possible to increase this limit to $ 15,000 or 20 000? I saw here that could send emails to 10 000 (https://community.oracle.com/message/2684697#2684697) so I'm quite confused, someone could help me on this please?

    Thank you

    Youssef

    1192074 wrote:

    Please update your forum profile with a real handle instead of '1192074 '.

    I intend to use APEX_MAIL. SEND_MAIL to send mails from 15 000-20 000 with PAAS.

    According to this http://docs.oracle.com/cloud/latest/dbcs_common/CSDBU/develop013.htm#CSDBU250 , we can send only 5000 emails per day...

    Is it possible to increase this limit to $ 15,000 or 20 000? I saw here that could send emails to 10 000 (https://community.oracle.com/message/2684697#2684697) so I'm quite confused, someone could help me on this please?

    The limit of 5000 applies to use the database Oracle Cloud Service. The post on the 2008 forum refers to the use of an installed instance locally the APEX, where no limit can be configured by the administrator of the instance using the instance Email Maximum per workspace setting.

    Ask questions specifically about the service Cloud DB on the Oracle database Service of Cloud forum. Note that since it is a parameter of the instance level, it will be not configurable for individual workspaces Cloud.

  • sending emails using APEX_MAIL. Send

    All,

    I use apex API to send emails and attachments but here on Lotus notes when e-mails are received this is this text by default "Please meet XXXXXX" at the head, how do I remove this default text to appear when Apex sends e-mails in Lotus notes?

    APEX_MAIL. SEND)

    P_TO = > xxxxx.

    P_FROM = > xxxx,.

    P_CC = > xxxx,.

    P_BCC = > xxx,

    P_BODY = > body text.

    P_SUBJ = > text object.

    P_BODY_HTML = > html text); .......

    using Apex 4.1.1/Oracle 11gx

    Thank you

    Jeff

    OK, consider this as a full page PLSQL level process I work with a single line below its good, runs, it runs at the click of a button.

    Start

    APEX_MAIL. SEND)

    P_TO => ' [email protected]',

    P_FROM =>' [email protected]',

    P_CC => ' [email protected]',

    P_BCC => ".

    P_BODY => the body of the text,

    P_SUBJ => 'it's my letter of text. "

    P_BODY_HTML-online 'Hello we test the body of the email here');

    exception

    When other then null;

    end;

    regrads,

  • Send email to multiple users

    I use Apex 4.1 and need to send e-mail based on some condition.

    I need to send an e-mail to two people A and B if APPUSER is based in APAC and otherwise to send email to anyone C

    I have the slider that gets this information, but do not know how to use it in the code for apex_mail.send

    How to apply the values returned by the cursor on the code below?

    ----------

    Open mailcursor (this slider returns A and B or C just)

    () apex_mail. Send
    p_to = > XXXXXXXXXX (it should send two people or based on the extracted value of the cursor).
    P_FROM = > '[email protected] ',.
    p_cc = > NULL,
    p_body = > ' * this is a system generated message, please do not respond to this *' |
    Chr (10) | UTL_TCP. CRLF. "Please check data ' |"
    Chr (10) | UTL_TCP. CRLF. 'Employee' | : P8_EMP_EMAIL |' raised demand on demand ' |
    Chr (10) | UTL_TCP. CRLF. "Thank you,.
    p_subj = > 'New demand Alert');

    LKSwetha wrote:
    I use Apex 4.1 and need to send e-mail based on some condition.

    I need to send an e-mail to two people A and B if APPUSER is based in APAC and otherwise to send email to anyone C

    I have the slider that gets this information, but do not know how to use it in the code for apex_mail.send

    How to apply the values returned by the cursor on the code below?

    ----------

    Open mailcursor (this slider returns A and B or C just)

    Please post code using .

    ...\
    

    Tags.

    apex_mail.send(
    p_to => XXXXXXXXXX ( it has to send to two people or one based on value fetched from cursor ) ,
    p_from => '[email protected]',
    p_cc => NULL,
    p_body => '***** This is a system generated message, please do not reply to this *****'||
    chr(10) || utl_tcp.crlf || 'Please check for the data '||
    chr(10) || utl_tcp.crlf || 'As Employee '||:P8_EMP_EMAIL||' has raised request on application '||
    chr(10) || utl_tcp.crlf ||'Thanks',
    p_subj => 'New Request Alert' );
    

    As stated in the documentation ofapex_mail.send of documentation for the p_to parameter:

    Valid e-mail address to which the e-mail will be sent (mandatory). To several email addresses, use a comma-separated list

  • Mail from Apple sending emails of my two accounts

    That's what my title says. Whenever I have email from my yahoo account, it also sends it to my outlook. I had to disable my vision of the app that I could at least send emails correctly. Two emails are the same if this is important btw (eg. ( [email protected] and [email protected]). Is it possible to fix this? I don't really like having to open my outlook on my browser every time. The app is much cleaner and simpler.

    Try mail/preferences/AccountType account information. Select an account, and then access the server of outgoing (SMTP) mail. In the menu drop-down select list server SMPT Edit. Then set up a server for each e-mail account that is associated with the e-mail address. Then go to each account and set this server as the Mail Server outgoing (SMTP). You can click on use only this server if you wish.

    Mail/preferences/writing/sending messages - set to the selected mailbox account.

  • send in the mail app icon is no longer available so I can't send emails

    After my last update of software, I lost my icon sent in my email application so I can't send email.

    How to install the icon 'Send' in the e-mail application?

    Hello nuiektore,

    Thank you for using communities Support from Apple!

    If I understand correctly, you cannot send mail because the send icon is no longer visible.  I know how important email is and I'm happy to help you!

    Very probably the send sort icon has been removed from the toolbar.  Here are the instructions on how to recover:

    1. In the Mail Viewer or in a new message, click on the toolbar, and then choose Customize toolbar. Or choose View > customize toolbar.

    2. Do one of the following:

      • Add item: drag an element from the palette to the toolbar until you see a green plus sign.

      • Remove an item: drag an item to the toolbar until you see or hear a "poof" effect

      • Rearrange items: drag an item around the toolbar until an open space to appear.

      • Change the way items appear: click on the view pop-up menu, and then choose an option.

    3. When you are ready, click done.

    Address postal (El Capitan): customize toolbars of e-mail

    Have a great day!

  • Cannot send email from a computer that is not on the same domain as the e-mail server

    We have just set up a mail server on Amazon. I can send email from the fine command line. I can send and receive e-mail from a PC connected to the Amazon with Thunderbird field. I can receive e-mail from a PC outside the realm of server (Amazon) with Thunderbird mail, but cannot send mail. I always get an error in time-out to a PC outside the field of Amazon. The SMTP settings are identical between computers connected to different areas. All necessary ports are also open. Any help would be greatly appreciated.

    It was a problem of incoming firewall after all. Problem solved.

  • I can't send email

    Hello, I can not send email. Please help me.

    Have you used the instructions If you cannot send or receive e-mails on your Mac - Apple Support?

    Also, when posting it helps a lot if you know the version of Mac OS X installed.

  • Cannot send emails with Hotmail today

    Since yesterday, I can't send emails or make the answers with Hotmail. Before that, everything was fine.

    I have the same problem on several Mac and all at the same time. (Mac have different OS_.

    I can however, send emails with Safari without any problem, so there must be something with Firefox.

    Perhaps Microsoft changed something on the Outlook site (I guess when you connect you are redirected to the new site of Outlook). The site behaves as if sitting them buttons are "dead" so that the message is just there, or do you have an error message?

    Have you noticed all the other strange behaviors on your Mac Firefoxes, such as errors in secure certificate?

    Here are a few general suggestions:

    When you have a problem with a particular site, a good "first thing to try" is clear your Firefox cache and delete your cookies for the site.

    (1) delete the Cache of Firefox

    Sometimes, these temporary files mingle with files in a way that breaks a fresh site.

    This article has the steps: How to clear the cache of Firefox

    If you have a large hard drive, this may take a few minutes.

    (2) remove your cookies from live.com (save all pending work first of all if you can). While displaying a page on the site, try either:

    • Right click and select View Page Info > Security > "View Cookies".
    • (menu bar) Tools > Page Info > Security > 'view the Cookies '.
    • Click on the globe or padlock icon in the address bar > additional information > "View Cookies".

    In the dialog box that opens, live.com or mail.live.com should already be filled up. You can delete cookies from the site individually.

    Then try to reload the page and sign in again. Who help me?

    Could test you mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the option key when starting Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    Any improvement?

  • Cannot send emails

    Is it possible to talk to someone. I have this problem since the weekend. I understand that there is a new update.
    I followed all the instructions, you have here a vain. Also, I deleted my accounts and reinstalled them? Can someone please?
    I managed to use my account via web-mail, but cannot send emails via thunderbird?
    Help is appreciated thanks.

    Problem solved by removing my accounts again and reinstall but was not first time he did second time working. So I hope that talking me to myself here in the hope of getting help has solved the problem. Hope it can help others too, little experience is required.
    Thank you fast enough for those who tried to help and do not here.

Maybe you are looking for