Send e-mail when a user connects

Hello
Please help me to send emails to s/n, when a specific user logs on to the database.

Best regards
allahmorad

Hello

create a trigger that call a procedure to send mail

Check below trigger

create or replace trigger connection
AFTER LOGON
WE DATABASE
Start
PROCEDURE_NAME;
end;

to send mail from oracle

create or replace
procedure testing_mail
IS
mailhost VARCHAR2 (30): = 10. ?. 5.?';
mail_conn utl_smtp.connection;
CRLF VARCHAR2 (2): = CHR (13) | CHR (10);
mesg VARCHAR2 (1000);
BEGIN
mail_conn: = utl_smtp.open_connection (? 10.) (5?', 25);
Mesg: = ' Date: ' | To_char (SYSDATE, "dd my hh24:mi:ss yy"). CRLF.
« De : <'postmaster@mysmtpdomain'||'>' || CRLF.
"Subject: ' |' mail test' |" CRLF.
' From: ' |' [email protected]' | CRLF.
'' || CRLF. "How to test mail";
UTL_SMTP. HELO (mail_conn,? 10.) (100?') ;
UTL_SMTP.mail (mail_conn, 'postmaster@mysmtpdomain');
UTL_SMTP. RCPT (mail_conn, '[email protected]');
UTL_SMTP. Data (mail_conn, "Mail test Procedure");
UTL_SMTP. Quit (mail_conn);
END;
/

Tags: Database

Similar Questions

  • display the text in the navigation bar when the user connects

    Hi all

    I'm (still ) on Apex 4.2.6.

    Currently, I have in my page templates, the following code snippet:

          <div class="logoBar">

              <img src="#IMAGE_PREFIX#themes/theme_125/images/logo_.png" />

              <h1><a href="#HOME_LINK#" id="uLogo">#LOGO#</a></h1>

            <div class="userBlock">

              <span>Username: &APP_USER.</span>

              #NAVIGATION_BAR#

            </div>

          </div>

    I have an obligation to display the user name (APP_USER) and of the company the user works for point Application AI_COMPANY, only when the user is connected. When the user is not connected; instead of these elements, I must show a connection link. Well, I know how to display a link to the login page, only when the user is not authenticated, using the navigation bar. Currently, when a user is not authenticated; the page shows: username: person. It's because he's in my page template. How can I show only the user name when the user connects? And then only display the name of the company?

    My first thought was to add an item in the navigation bar. But these elements comes in the form of links. Is it possible to add a navigation bar element and let it display as text? Of course, I could write a dynamic action on page 0 to remove the link, but I'm looking for a nicer sollution or better.

    I have apreciate your help!

    I take it, you use the same model of your home page and login page.

    You could use 2 different models or get out your elements in your model and put them in page 0.

    You can then make them conditional based on the number of page

    Gus

  • Run a process when a user connects

    Hello

    I use SSO connection.
    As soon as a user connects, I want a process to run that is to capture the variable frequently used for Application-level items.

    Currently, I use this work around-
    I create a process of loading on PAGE 1 page. For example, when a user connects by default loading of page 1 and the execution process.
    But users are bug report. Many users load the page from the cache, so when they loggin via SSO, insead of page 1 page 3 opens and the application behave abnormally, since page 3 uses the value of the element of application level assigned to them by on load process of page 1.

    So I was walking around, is there a way I can achieve.

    Is there any process as ON LOGIN just as we have processes of LOADING the PAGE ON.

    Any help appreciated event.

    Manish - that is not the right answer.

    Shijesh-

    Creating application process, I get a drop-down list - check the required amount (Application level, session level user survey).
    Which I have to choose.

    There are no options for the process like that.

    Scott

  • Problem with sending a message when you're connected via Wi - Fi

    Hello. Still getting used to my Dext (owned it for about 4 days). I noticed this morning that I can't send the mail from the POP3 account, I set up on my Dext when I am connected via Wi - Fi - when I try I get an "authentication failure". When I disable Wi - Fi email sends end. There is no problem with webmail - send although I am connected to the Wi - Fi or 3 G network.

    Anyone know how to send the mail while POP3 on the Wi - Fi network? Thanks in advance...

    Understand the problem - port incorrect settin for mail server outgoing. Changed to 587 according to some messages that I saw during a search - that did the trick!

  • Send e-mail when someone takes the quiz

    I have my quiz put in place so that the results are displayed in my internal server so I can use quiz monitor to access the results. Is there any way I can receive an e-mail when someone passes the test so I can't check the Analyzer quiz to see who did the test?

    Captivate allows you to trigger an email via advanced Actions.  However, this best open a new email in the email client of the user with some default of the text of the object and your e-mail address.  You are still reliant on the user manually send this e-mail.  This makes it unreliable itself.

    To get an automated e-mail, you must have access to the web programming skills to create a page server who sent an e-mail when it is called.  The Captivate course participant would then no conscience of enamel.

  • * Excel-send a mail when reach a certain value

    Hello

    I need help to learn how to get Excel to email me when it reaches a certain value.

    Example:<20 days="" it="" will="" send="" a="" mail="" to="">

    Is this possible? :)

    You could do this:

    1. Create a macro that scans all of the cells of interest.
    2. Assign a hotkey (for example, Alt + S) to the macro.
    3. Download the macro to call a script console when it detects any cell suddenly value 20.
    4. Create a console script to send an e-mail message.

    Whenever you press Alt + S, the macro analysis all cells and generate the e-mail message if necessary.

  • Prevent sending e-mail when the new user of the IOM is created

    Hello

    I installed OIM11.1.1.5.2. Whenever a new user is created using the delegated Administration console an email with the following content is sent to the corresponding user:

    "Congratulations!" Your account has been created successfully! Your user name is < USER NAME >"

    How can I stop this email sent?

    Thanks in advance.

    Naviagte to IOM--> Advanced webconle--> export file Deployment Manager--> select model Notification & search click-->, select the model and click Export... it will be saved as an XML.

    Since it's OOTb, u also get any otheer environment later

    Regards
    user12841694

  • Why not send e-mails when you use updated firefox 13?

    I recently updated my Firefox 13 with an update of security provided and suggested. Since the upgrade I was able to send outgoing messages from my yahoo account. When I click on the new button in the e-mail, or if I want to answer an e-mail received. A yellow field telling me that a plug-in is required to operate in 32-bit mode. When I click on the restart button in the yellow field the e-mail system crashes and I can't compose an email or response. Before the update of firefox, I received the same message and when I clicked on the button restart email program restarted in 32-bit mode without problem.

    You may need to start Firefox in 32-bit mode if need a plugin (Silverlight?) runs only in 32-bit mode.

    You can use these steps to start Firefox in 32-bit mode:

    1. Closing of Firefox
    2. Launch the Finder and open the Applications folder
    3. Make a right click or Ctrl-click the icon of Firefox.app
    4. Select "Get Info."
    5. Select or deselect the option "open in 32-bit mode".
    6. Close window "Firefox Info"
    7. Restart Firefox
  • Why I can't receive contacts or sending e-mails, when I mail it gets returned by post master?

    When I post, my mail is returned? and get in facebook I go only through star? All my contacts before were 110better why this now?

    I could do something wrong, but can help you... ??

    Hi Antonius,

    1. who is your provider of mail service?
    2. using any e-mail client?
    3. what operating system is installed on the computer?
    4. the problem occurs with any particular contact or all contacts?
    5. you made any hardware or software comes to the computer before the show?
    6. you use Internet Explorer to send and receive emails? If so what version of IE are you using?

    The information is not sufficient to answer your question. Answer us with more information by answering the above questions.

  • Run the script inside the virtual machine the user when the user connects or reconnects

    Hello

    is it possible to detect the user that the user has connected or reconnected to his office inside the virtual machine and run a script?

    It is also possible within the VM user to determine if the user is connected and how long?

    One way to do this is via the following powershell command, but this only works if the user is connected through PCoIP Protocol.

    Get-WmiObject-class Win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics - SessionDurationSeconds property

    Best regards

    > it is possible to detect the user that the user has connected either reconnected to his office inside the virtual machine and run a script?

    You can run scripts as user on login and reconnect, this has been a feature since 3.0. See running commands on the desktop view.

    > It is possible inside the VM user to determine if the user is connected and how long?

    I don't think that we expose, but you should be able to query Windows for the connection time, or you could write the last time to connect with a script (maybe that is the reason for your first question?).

    Mike

  • Send e-mail to the user after the form submission

    Hi all. so, I made a record of visitors using PHP page and everything works, but I want to send an email to visitors after they submit the registration form. the post only I could find here with the same question here. but the answer is to use a form handler, and I do not think that my form uses a Manager, because I did it with PHP and server behaviors. of course, it comes to my first PHP page, and I'm not all that experienced with shapes, so I don't quite know what I'm talking about.

    so, nobody knows how to do this using PHP and server behaviors? Looks like it should be easy enough, but nothing I've tried works!

    Thanks in advance for the help!

    Having the server behavior to send the form on the page to another page that sends the
    Messaging. This page move to the thank you page, or even to the
    form page when done.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    'c h n' wrote in message
    News:em73eg$juu$1@forums. Macromedia.com...
    > Hi all. so, I made a record of visitors the page using PHP and all
    > works.
    > but I would like to send an email to visitors after they submit the
    > registration
    > form. the only post I could find here with the same question is<>
    ' > href = ' http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&am
    > p ; CATID = 189 & threadid = 1125827 & highlight_key = y & keyword1 = send
    > Email "> here." but the answer is to use a form handler, and I have no
    > think my form uses a Manager, because I did it with PHP and server
    > behaviors. of course, this is my first PHP page, and I'm not all that
    > experienced with shape either, so I don't quite know what I'm talking about
    > on.
    >
    > so, does anyone know how to do this using PHP and server behaviors? seems
    > as
    > It should be easy enough, but nothing I tried works!
    >
    > Thank you in advance for the help!
    >

  • Send e-mail when a click on

    I just try to have a send email button in a button CLICK event, that's what I tried, but obviously wrong. Any help would be appreciated:

    btn_conHit.addEventListener (MouseEvent.CLICK, conClick);

    function conClick (e:MouseEvent): void {}
    on (release) getURL ("mailto:[email protected]");
    }

    Try:

    btn_conHit.addEventListener (MouseEvent.CLICK, conClick);

    function conClick (e:MouseEvent): void {}
    navigateToURL (new URLRequest ("mailto:[email protected]"));

    }

  • Task Scheduler error 2147944309 when I change the task ' Run only when the user connects ' to 'use execute is connected or not' _

    I have a simple task (cmd batch file). Whenever I try to change the settings, I get a dialog box that reads as follows:

    "An error has occurred for task RemoteBk. Error message: the following error is reported: 2147944309 ".

    My computer is on a domain.

    Someone in another forum explained the error:

    0n2147944309 = 0 x 80070775

    Installation: 8007 = Win32 (it's a status code "Win32")

    Status: 0 x 775 = 0n1909

    Q:\>net helpmsg 1909
    The referenced account is currently locked and cannot be logged on to.

    Hope, it may be useful to others.

  • Send a message electronic alert message when user connections

    Does anyone know how to set up an alert for a notification e-mail when a user connects to the VMWare cluster?  We have specific users who have a specific role, but my management would like to keep under lock and key in the event where all admins to get hit by a bus, a plane crash, drown in a boating accident, etc. at the same time a user of emergency.  In order to ensure that this user is only used during the terrible events listed, I'd like to as notification out when this user logs on.  All those put up something like this?

    In vSphere, you can create a custom alert data center with a triggen on the user login.

    With old Server vCenter, you must find the table DB was connection (and other events) are stored and develop a DB trigger.

    André

  • Select the application element when the user is not authenticated.

    Hi, quick explanation just what I would do:

    I would like to allow the user to connect to the system and open the page that he or she has been redirected in edit mode.

    My application sends e-mail notifications to users. When user click on the link of the page opens (application allows anonymous access in the playback mode).

    The problem is that when users try to connect to the application, they are redirected to the home page.

    My intention is to create button Edit on the page. This button will be variable application with the "page url" value and redirect users to the login page.

    After login, the login process looks like this:

    (wwv_flow_custom_auth_std). Login
    P_UNAME = >: P101_USERNAME,.
    P_PASSWORD = >: P101_PASSWORD,.
    P_SESSION_ID = > v ('APP_SESSION').
    P_FLOW_PAGE = >: APP_ID | : F101_INITIAL_PAGE_NO

    );

    Where: F101_INITIAL_PAGE_NO is my point of application.

    I also created processes to define: F101_INITIAL_PAGE_NO if its value is null, so there is always the page to be redirected to.

    The problem I have is that I can not put point of application to the value I want to when I'm not authenticated. When I am authenticated everything works fine (I can request value set).

    The way I put the value of the element is:

    function setItemValue (item, value)
    {
    Alert (Item);
    Alert (value);
    get var = new htmldb_Get (null, & APP_ID., 'APPLICAITON_PROCESS = dummy', 0);
    Get.Add (Item, value)
    gReturn = get.get ();
    get = null;

    }

    My point of application is also unrestricted.

    All of the suggestions.

    Thanks in advance.

    get var = new htmldb_Get(null,&APP_ID.,'APPLICAITON_PROCESS=dummy',0);

    call page 0. This page is in your case probably fixed to "authentication: Page requires authentication. This is why it does not work.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • NB200 - option to display 4:3?

    I am a new user of a NB200 - 11L, running windows XP. I have a (dated) piece of CAD software, which can not handle 16:9 / 16:10 aspect ratio of the screen of the NB200. On my old laptop, I was able to adjust the display settings, in order to provide

  • Satellite M70: Question on registration after using the restore CD?

    I have reinstalled the OS on my 70 M satellite using the restore CD and now system even once asked me to register with Microsoft and Toshiba. I've already done, so I jumped it. I just want to ask if I use the recovery CD, I have to register again wit

  • Satellite 1410 - power on problem

    Hallo,I have some problems with my Satellite 1410 303.After the stop, without disconnecting the power supply, if I try to put the laptop by pressing the button start the laptop does not start and the orange green power led indicator lights up, indica

  • Satellite L650D-111 - reserved equipment of 64-bit Windows

    First of all I want to say that so far Toshiba online support was pathetic, all the pages that might have lead me to a useful address refused to load (and no it wasn't my internet), the site was confusing and it took me over an hour to get here. I ca

  • TS2013 reference manual?

    Hello I have just what to refer to something in the Handbook on TS 2013 but I do not found on my default installation. Not there at - it no Manual.pdf reference on TS2013? Concerning Jürgen