Send email when user logs in

Hi,
please help me to send email to dba when a specific user logs in to database.
Best regards
allahmorad

Hi,
create a trigger that call a procedure to send mail
check below trigger
create or replace trigger logon
AFTER LOGON
ON DATABASE
begin
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 Mon yy hh24:mi:ss' ) || crlf ||
'From: <'postmaster@mysmtpdomain'||'>' || crlf ||
'Subject: '||'testing mail' || crlf ||
'To: '||'[email protected]'|| crlf ||
'' || crlf || 'Testing mail procedure';
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, 'Testing mail procedure');
utl_smtp.quit(mail_conn);
END;
/

Similar Messages

  • Send Email when user account is created

    Hi,
    I have a GTC which is run as a scheduled task to create a user in OIM. I want to send am email to the user once the new account is created from the scheduled task, the email needs to contain the user account and password. For developing such a process should the email definition be of Type Provisioned( so that I map it to Scheduled task) or do I need to make it as a General type. Can some one please explain this process in detail

    Hi, I followed the following process for sending an email when the Scheduled task is completed :
    a. Create a Resource Object RO1 and a Provisioning Process definition for RO1.
    Add a task say, Email, to process definition.
    b. Open the email task and click the Notifications tab.
    c. Click Assign to bring up the list of Email Definitions.
    d. Select the Email Definition defined in step 2 above and assign it to the task.
    e. Check for - Requester, User and User Manager and map the status to 'C'.
    f. In the RESPONSE tab, Set the response as 'C' and set Status field as complete.
    g. In the TASK TO OBJECT STATUS MAPPING, make the object status to provisioned.
    h. In the Integration tab, add System adapter 'tcCompleteTask' and save.
    But even after this the email does not go to the user whose account has been created. Kindly advice

  • Failed to send Email to user root. (90017)Invalid protocol: null

    Dear All ,
    After having configure the notification i goto the following error when a notification is enable.
    Failed to send Email to user root. (90017)Invalid protocol: null
    How to fix it
    Regards

    Thanks for the prompt return
    The link you send to me refer to notification with Grid control and there is no feature to perform a test to send an email . Or may me from cli .
    How can i check if EC can send an email . On Os level we use sedmail and it work
    Tx

  • How to trigger a custom code when user log in?

    Hi my friends,
    We are using multiple sharepoint sites at work. Users log in with AD accounts, so they dont see any login page.
    I need to run a custom code when user login to website. Event receivers do not help at this point. Any suggestions?
    thanks in advance

    Hi Ahmet,
    From your description, my understanding is that you want to trigger some custom code when users log in SharePoint.
    As a solution, you could customize a login page for your SharePoint, then you could trigger your code.
    You could also use httpmodule to monitor user login. Please refer to this article about how to use httpmodule:
    http://sharepoint.stackexchange.com/questions/100976/get-the-current-logged-in-user-in-sharepoint-added-httpmodule
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Send email when ownership is assigned' is not working

    Send email when ownership is assigned'
    is not working
    even though this option is disabled designer workflow task creation sends an email to the user when task is assigned to the user.
    We have october CU updates 2013.
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    Per my knowledge, if the task is created from a workflow, then you may use the task actions in the workflow.
    And some task actions will send an email to the user who the task is assigned to, so the email is sent from the workflow and it is not sent from the option “Send email when ownership is assigned”.
    If you are using 2013 workflow, the send email action cannot be prevented from the workflow.
    If you are using 2010 workflow, you can go into the task process to delete the Send an Email action.
    https://support.office.com/en-nz/article/Use-the-task-process-editor-for-approval-workflows-8680b4a4-36b1-441c-b070-e515976078aa#__toc264538566
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Send Email when built in approval workflow status column changes to approved

    I Implemented the built in approval work flow in a document library,I want to send an email when the column indicating the status of the workflows changes from in progress to approved.

    Hi ,
    According to your description, my understanding is that you want to send email when the built-in approval workflow status was approved.
    For the default built-in approval workflow, per my knowledge, there is not a way to modify it. As a workaround, you can create a Reusable Workflow with SharePoint Designer 2010, and publish it to your SharePoint, then you can use it like the built-in approval
    workflow.
    You can do as the followings:
    Install SharePoint Designer 2010.
    Open your site with SharePoint Designer 2010.
    Click Workflow under Navigation.
    Click Reusable Workflow, and type a name.
    Add “Start Approval Process” action, in the ‘these user’ , type the approvers.
    Click ‘Approval’ field, and under Customization, click “Change the behavior of a single task”.
    On the “When a Task Completes”, add “Send an Email” action in the approved condition,like the screenshot below.
    Then save and publish the workflow, then you can use the workflow in your SharePoint site .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Unable to capture trace, when user logs in throuigh Web Interface

    The Trace shows 'No Records Found', when user logs in through Web Interface of CRM. But there is Trace found, when the same user logs in through logon pad and carries out normal actvities.
    sufficient auth. is provided.
    Is there any setting in ST01, through which i can get trace , when user logs in through Web Interface
    Regards

    ST10 traces 1 instance only.
    Your CRM web interface could use another instance than your backend. Go to transaction SM21, choose the appropriate server and run ST10 again.
    Succes!
    Kind regards,
    Lodewijk Borsboom

  • Cannot send email when clicking lonk on web page

    I cannot send email when clicking link on web page. 
    When I would click the link to send via email I was being directed to hotmail to open new account.
    Today the tech tried to assist me and completely messed up my email capabilities by setting up
    windows live account.
    I am thoroughly disgusted with FIOS internet services..Every time I've called them in the past month problem has been with someone else whose portal services they are using.
    I cannot send emails because all my contact information cannot be moved.
    I'm paying for FIOS internet service that is almost non existent.
    THe VZ in home agent doesn't work nor does the FIOS information site.
    My next move is to get rid of FIOS.
    They create more problems then they solve with me.

    If I understand your problem correctly, you are having trouble when clicking on a MailTo link on any webpage? What loads when you click this type of link is a setting in your browser. If you tell us what browser you are using, we can try to direct you to the setting.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • HT4979 why can I not send email when away from my home wifi? Am able to receive messages OK, and outgoing mailserver is correct?

    Why am I unable to send email when away from my home wifi ? I am able to receive mail OK, and have double- checked the outgoing server which is correct. This problem is consistent with my Macbook Pro, iPhone, and iPad2.
    Attempts to send messages results in them sitting in the Outbox and never- ending 'sending message' displayed.
    I am able to send using my   me.com  server.
    Home service provider is Cogeco.
    Any help would be appreciated.

    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/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try a Reset - iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    Or this - Delete the account in Mail and then set it up again.
     Cheers, Tom

  • Function Module to send emails to users

    Hi,
    Please help me in finding a FM that will allow me to send emails to users if a field in the internal table is blank.
    Please suggest.
    Thanks.

    Hi
    Use this
          call function 'SO_NEW_DOCUMENT_SEND_API1'
            EXPORTING
              document_data              = doc_data " Subject
              document_type              = 'RAW'
              put_in_outbox              = 'X'
              commit_work                = 'X'
            TABLES
              object_header              = obj_head " Header
              object_content             = obj_con[] " Body of mail
              receivers                  = rec " reciver
            EXCEPTIONS
              too_many_receivers         = 1
              document_not_sent          = 2
              document_type_not_exist    = 3
              operation_no_authorization = 4
              parameter_error            = 5
              x_error                    = 6
              enqueue_error              = 7
              others                     = 8.
    rgds
    Arun

  • Sending email to user using the notification template in OIM 11g

    Hi all
    I have created a Notification Template using web console in OIM 11g.
    Iam able to access the contents from notification template in my java code.
    But iam not able to find the correct api's to send email to user using the notification template
    (like tcEmailNotificationUtil using this class we can connect to email template created in design console and creating IT resourse we can send email to user using the method sendEmail).
    Waiting for your help and pointers
    Thanks and Regards
    Bipin patil

    Thanks GP!.
    But i have the same doubt here.
    "The Notification Event is defined through a XML file that must be loaded into MDS database." - in which path and in what name it should be.
    Because under /metadata/iam-features-notification, i couldnt see any event Xml present. I thought atleast we could see the existing OOB notification template's event xml files.
    Please let me know if you are aware.
    Thanks,
    Amudha

  • Issue where the cart is empty when user logs back in

    Having issue where the cart is empty when user logs back in
    Steps:
    1. User logs into the site
    2. User selects items and the cart is updated
    3. User logs out of their account
    4. User exits/closes the browsers
    5. User then reopens the browser, navigates to the site, logs in and the cart is empty
    My understanding is that the cart should be populated with the previous items since the user did not complete the order.
    I have the following settings:
    in shoppingcart.properties
    persistOrdersForAnonymousUsers=true
    persistOrders=true
    in cookieManager.properties
    sendProfileCookies=true
    in /atg/userprofiling/ProfileRequestServlet.properties
    verifyBasicAuthentication=true
    in /atg/dynamo/servlet/dafpipeline/ProfileRequestServlet.properties
    persistAfterLogout=true
    persistentAnonymousProfiles=true
    Anything else that needs to be set?
    Edited by: boyd4715 on Feb 6, 2013 11:07 AM

    I reset the properties back to their orignal state
    in shoppingcart.properties
    persistOrdersForAnonymousUsers=false
    persistOrders=true
    in cookieManager.properties
    sendProfileCookies=true
    in /atg/userprofiling/ProfileRequestServlet.properties
    verifyBasicAuthentication=false
    in /atg/dynamo/servlet/dafpipeline/ProfileRequestServlet.properties
    persistAfterLogout=false
    persistentAnonymousProfiles=false
    in /atg/userprofiling/ProfileTools.properties
    mergeOrder=false;
    Observateion:
    If an anonymous user comes to the site, adds items to the cart, leaves the site and comes back - the cart is empty - the order repository is not updated
    If a user logs into the site, adds items to the cart and then exits the browser (does not log out), comes back to the site, the selected items are in the cart
    If a usr logs into the site, adds items to the cart, logs out of the site, exits the browser, comes back to the site, the selected items are not in the cart
    An order does not get presisted to the repository until the order is confirmed.
    Based on the last item that explains why the user is not seeing any anything in their cart when they log out. If they do not log out, I assume then that the content of their cart is stored in the cookie.
    So, now the question is - why is this happening - I am not the original author of the site - just trying to get some things fixed on it.

  • I am having problems sending emails when using apps. I dont receive any emails when I try to send documents such as pdf or pictures. I tried sending it to my other email account but I don't get any email. What is wrong?

    I am having problems sending emails when using apps. I dont receive any emails when I try to send documents such as pdf or pictures. I tried sending it to my other email account but I don't get any email. What is wrong?

    System Preferences > Network > your-connection-medium > (Assist me) > ( Diagnostics )
    This sometimes provides additional helpful information, sometimes not so much.

  • TS2621 why may I send email when wi-fi is enabled, but not when it is disabled?

    iphone 4s with verizon will send email via wi-fi but not 3G. Are there any ideas why?

    Depends on the email account.  If it is from your Internet provider they may only allow use of their SMTP server for sending emails when on their network.  To send emails when not on their network (i.e. when using Cellular data) it would require using a different SMTP server.

  • My iPhone will not send emails when away from my home wifi

    my iphone will not send emails when away from home wifi any advice

    Hey craggee,
    Thanks for the question. This is usually do to a limitation by your ISP/email provider:
    If you are only able to use your email account while connected to your home network, this may be a limitation put in place by your email service provider. For further support, please contact your email service provider directly.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/TS3899
    Thanks,
    Matt M.

Maybe you are looking for