Email to users in database

We have a jobs database and we have the email address of the
person that listed the job. We also have a field that has the date
the job was listed. Is there a way to automatically have an email
sent to all jobs that are 30 days old telling them the jobs are no
longer acitve. Can this be done without adminstrator interaction?
Thanks

Ken Pollard wrote:
> We have a jobs database and we have the email address of
the person that listed
> the job. We also have a field that has the date the job
was listed. Is there a
> way to automatically have an email sent to all jobs that
are 30 days old
> telling them the jobs are no longer acitve. Can this be
done without
> adminstrator interaction? Thanks
Yes, it involves writing a script that queries the database
to find job
dates that are exactly 30 days old. The script would then
send an email.
Run the script once every 24 hours using a cron job on a
Linux server or
a scheduled task on a Windows server.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/

Similar Messages

  • [Forum FAQ] How do I send an email to users when the data in the report have been changed in Reporting Services?

    Introduction
    There is a scenario that the data in the report changes infrequently, so the users want to be informed and get the most updated data once the data changes. By default, report server always run the report with the most recent data. Is there a way that we
    can subscribe the report, so that we can send an email to users when the data in the report has been changed?
    Solution
    To achieve this requirement, we can create a subscription for the report, then create a trigger in the table which including the report data. When this table has data insert, update or delete, it will be triggered and execute the subscription to send email
    to users.
    In the Report Manager, create a subscription for the report and make it only execute one time.
    When we create a subscription, a corresponding SQL Agent job will be created. Then we can use the query below to find out the job based on ScheduleId:
    -- List all SSRS subscriptions
    USE [ReportServer];  -- You may change the database name.
    GO 
    SELECT USR.UserName AS SubscriptionOwner
          ,SUB.ModifiedDate
          ,SUB.[Description]
          ,SUB.EventType
          ,SUB.DeliveryExtension
          ,SUB.LastStatus
          ,SUB.LastRunTime
          ,SCH.NextRunTime
          ,SCH.Name AS ScheduleName   
              ,RS.ScheduleId
          ,CAT.[Path] AS ReportPath
          ,CAT.[Description] AS ReportDescription
    FROM dbo.Subscriptions AS SUB
         INNER JOIN dbo.Users AS USR
             ON SUB.OwnerID = USR.UserID
         INNER JOIN dbo.[Catalog] AS CAT
             ON SUB.Report_OID = CAT.ItemID
         INNER JOIN dbo.ReportSchedule AS RS
             ON SUB.Report_OID = RS.ReportID
                AND SUB.SubscriptionID = RS.SubscriptionID
         INNER JOIN dbo.Schedule AS SCH
             ON RS.ScheduleID = SCH.ScheduleID
    ORDER BY USR.UserName
             ,SUB.ModifiedDate ;
    Create a trigger in the table which including the report data.
    CREATE TRIGGER reminder
    ON test.dbo.users
    AFTER INSERT, UPDATE, DELETE
    AS
    exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    Please note that the command ‘exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'’ is coming from the job properties. We can go to SQL Server Agent Jobs, right-click the corresponding job to open
    the Steps, copy the step command, and then paste it to the query.
    Then when the user table has data insert, update or delete, the trigger will be triggered and execute the subscription to send email to users.
    References:
    Subscriptions and Delivery (Reporting Services)
    Internal Working of SSRS Subscriptions
    SQL Server Agent
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • 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

  • Error in "APPROVE EMAIL" of Users in CRM 2013.

    Hi, 
    I have created users in my OOTB On-premise organization of MS CRM 2013. Getting below error while approving email of Users:
    There are encrypted fields in the organization database, but the data encryption feature isn't activated. Contact your Microsoft Dynamics CRM system administrator to activate data encryption. To activate, go to Systems Settings > Data Management > Data
    Encryption. For more information, see http://go.microsoft.com/fwlink/?LinkId=316366
    I tried to activate Data Encryption from Data Management(as mentioned in this error), then getting below error:
    Error
    The HTTPS protocol is required for this type of request. Enable the HTTPS protocol and try again. For more information, see the Post-Installation and Configuration instructions.
    Please help.
    Thanks.
    Regards, Devendra V.

    Please refer to this post from Magnetism,
    http://www.magnetismsolutions.com/blog/paulnieuwelaar/2014/10/08/data-encryption-errors-after-restoring-microsoft-dynamics-crm-database
    It definitely resolves the issue.

  • How to check SSO user from database?

    Hi:
    I've posted this topic in Forms forum:
    How to check SSO user from database?
    then as I've been told, it's better to post it here, so ...... here is the question:
    I'm writing a "before delete trigger" to insert into log table before delete. Is there a way that I know from database the current SSO user when SSO users share one database user?
    Just like in Oracle Application Express there is v('APP_USER') to know the current user.
    Saad,

    End users are manipulating data through Oracle Forms(and SSO through portal) and the thing I need is to trace the SSO username from database without modifying forms, I mean purely from database taking into consideration that SSO users are sharing one database user. Is it possible?
    Saad,

  • Can we start more than one user created database at the same time

    Hi.,
    Can we start/work more than one user created database at the same time ??
    --Shyam                                                                                                                                                                                       

    Hi Shyam,
    I really dont understand what you have asked?
    If your question is can we start more than one database at the same time then the answer to that is yes but provided to have enough resources on your server to support running of two or more different databases on the same machine.
    Ex Senior DBA

  • Emailing external user using a workflow in Sharepoint 2013

    I am currently trying to create a list where the user can upload a document, input an email address (external) and an expiration date. I then have a workflow that will send an email on the expiration date. The problem I am getting is that Sharepoint 2013
    doesn't like emailling externally.
    22/01/14: I have since found that this isn't a problem with exchange, as Sharepoint is trimming the addresses out of the original workflow. Does anyone know how to stop this.
    Please help.
    Evil Genius at Work. DO NOT DISTURB!!!

    you need to allow their IP address to relay anonymously in Exchange.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c55a6a68-c6e3-4f4d-b5ed-d4e2892fe490/sharepoint-2010-email-external-users-in-a-workflow?forum=sharepointcustomizationprevious
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Need Help in sending Private Email when user clicks Oracle Password Reset

    How to send an email to user marked as PRIVATE and Confidential when they hit the Oracle Password Reset Link.

    user11986391 wrote:
    How to send an email to user marked as PRIVATE and Confidential when they hit the Oracle Password Reset Link.What do you mean by private and confidential?
    Reset Password Functionality FAQ [ID 399766.1]
    How to Modify The Password Reset Statement for the UMXUPWD.wft Workflow [ID 420236.1]
    How to Change the Text of Instructions in the "Reset Password" Screen? [ID 762798.1]
    How to open customized page when click on "Forgot Password" URL ? [ID 556454.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Password+AND+Forgot&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to send a confirmation email to users in dw cs6?

    Hi all,
    I am very new to dreamweaver cs6.
    I would like to ask how do i send a confirmation email to users when they have finished inputting their details in the registration page. (is it using php scripting?)
    In layman terms, the users have keyed in all their information for registration, how do I send a confirmation email to the emails they keyed? Thank you!

    You build an auto-reply message so when the information is submitted to your email address via the website form the  sender receives a confirmation.
    // build your auto reply
        $reply = $_POST['email'];
        $replysubject = "Auto-Reply: Your Website Name";
        $replyfrom = "From: [email protected]\r\n";
        $replymessage .= "Your enquiry has been successfully sent. Thank you.\r\n\r\n";
        $replymessage .= "Yours Sincerely,\r\n";
        $replymessage .= "Your Name - Position in Company\r\n";
        $replymessage .= "[email protected]\r\n";
        $replymessage .= "http://www.yourDomainName.co.uk\r\n\r\n";
        $replymessage .= "This e-mail is automated, so please DO NOT reply.\r\n";
    Then add the line below after the 'mail' funtion in the php form processing script
    mail($reply, $replysubject, $replymessage, $replyfrom);

  • 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

  • How to create User and Database in different Table spaces

    How to create User and Database in different Table spaces using oracle 10g
    Regards
    daya

    I am sorry but your question does not seem to make much sense.
    Can you please rephrase your question?

  • Need to generate a script which will sends an email to users reg cube statu

    Hi All,
    Once the cube gets loaded successfully an email has to sent out automatically thru maxl to users saying that cubes has loaded as off today's date. Could you please help me is their any script available which will automatically sends an email to users that would be helpfull for me.
    Thanks in Advance,
    Raj.

    Raj,
    Here's a good start:
    http://www.network54.com/Forum/58296/thread/1196781565/Maxl+Scripts+to+send+out+email+notifications
    http://www.network54.com/Forum/58296/thread/1106766086/Essbase+Script+Box+-TellingUser+when+the+previous+script+was+run
    http://www.network54.com/Forum/58296/thread/1167815846/Email+notification+through+MaxL
    http://www.network54.com/Forum/58296/thread/1193233965/Automate+the+Email+Notification
    Regards,
    Cameron Lackpour

  • Error in Database Studio: Connect to user management database not possible

    Hello,
    Everytime I start the Database Studio 7.9 (the latest version 7.9.08.18) it show me the following error:
    Could not access to user management
    See Window -> Show View -> Event Log Viewer for more details
    In Event Log Viewer I see the following information/errors/warnings:
    Connect to user management database not possible. Try to use/create local default user management
    Undefined result row
    This error always appears in anything I do in the Database Studio application!
    How can I correct this error? Can you help me please?
    Any tips?
    Kind regards,
    samid raif

    Hi Samid,
    Delete the folder document & settings -> all users -> sdb
    Post this check the results.
    Regards,
    Deepak Kori

  • BPEL Workflow email not stored in database!

    Hi,
    I'm using SOA Suite 10.1.3.4. I have a worklist application where notifications are sent to Assignees, Approvers when the action is Assign or Approve. The mails are delivered as expected. But there is not trace of emails sent. I checked WFNOTIFICATION in ORABPEL Schema. The tables are empty.
    Could anyone help me in fixing this issue.
    1. Why email notification sent are not stored in database?
    2. Is there any other means that we can track the email sent?
    3. Do we need to configure in SOA server to store the email notifications in the database.
    Thanks in advance.
    Regards,
    Pradeep

    Hi Pradeep,
    i am also facing the same proublem. let me know the update if you get anythnig regarding to this.
    thanks,
    Hari

  • Add users to databases in Availability Groups

    Hello,
    I created a database.
    On instance level I selected Security | Logins and added some users.
    I granted the users a number of roles on the database I created.
    I added the database to an Availability group. Now two replicas of the database are on two servers.
    When I look on the server that is running the secondary replica the users have not been added to the users on instance level. Is that going to work fine after a failover?
    Should I add the users to the Instance(s) of other cluster members before I restore the database? That would make sense.
    I cannot find any documents that tell me about creating users in databases that have been added to an availability group.
    Best regards,
    Erik

    Thanks for you answer.
    I used sp_help_revlogin to script out the logins the applications and users need to connect to the database, including their SIDs, and executed it on the secondary replicas servers
    so that it is available.
    I have done that before I restored the database on the secondary replica servers.
    I guess I have to run sp_help_revlogin every time I add a user on the primary server.
    Best regards,
    Erik
    If it is a windows login, it will have the same SID across the domain so no need to run sp_help_rev_login, you can directly create the login in the secondary and the mapping is taken care itself with the database user. If you are creating SQL Logins
    you need to script it out using sp_help_rev_login for the secondary server.
    If you are willing to automate this activity, Please explore " ssis package to transfer logins" and try to customize it to your need and schedule it as a job.
    http://technet.microsoft.com/en-us/library/ms137870.aspx
    Thanks

Maybe you are looking for

  • Setting apache as a front end host-proxy web server for weblogic 10.3.3

    Hi , i have installed apache 2.2.21 in the red hat linux 6 environment.Now i am trying to set that apache web server as a front end host ,proxy web server for my weblogic 10.3 application server cluster. My apache is listening to the port 8080. What

  • Scroll option with fixed column

    Dear Friends,                         Here i have a table which contains more than 37 column to display the employee attendance and shift details in MSS application , Im facing a problem with Scrollable  option . first four column of the table is bas

  • Two panel in a split pane - one gets obscured

    My application uses a vertical splitframe with 2 Jpanel objects. The top panel has a grid bag layout. The bottom panel has a boxframe layout. The application displays a list with an enter field and several buttons in the top panel. The bottom panel h

  • Dropped in water, ringer problem...

    I accidently dropped my iphone in the water today when I was feeding my neighbour's dogs (he's overseas). I quickly grabbed it out of the water and dried it off with a kitchen towel. Everything seemed to work fine my apps, camera, etc. Until I went o

  • REMOVE_STREAMS_CONFIGURATION

    hi when i want to remove my stream configuration on destination database by the folllowing command EXECUTE DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION; i got these error: ERROR st line1: ORA-00911: invalid character ORA-06512: at "SYS.DBMS_UTILITY"