Send emails based on the dev/test/production environment

Hi Experts,

I have this requirement where

If xyz process is complete

  1. in production send e-mail to different users of the company
  2. in dev and test send emails to only the development team.

So I intend to modify the code to get information from database "Select sys_context('userenv','instance_name') from double;" and send emails to recipients, based on the name of the instance returned.

If I'm heading in the right direction? Please let me know if there is a risk that in the future prod and dev can return the same name!

I'm on "Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production"

Thanks in advance.

Lydiea

We have a table of configuration and put an entry here as recipient of email. You can store different settings for different environments.

hard coding your logic, relying on instance_name is not a good idea.

Tags: Database

Similar Questions

Maybe you are looking for

  • There is no Desktop bookmarks folder in my bookmarks Android.

    I used the screen great to open my favorite Android. There is no record of bookmarks from office upstairs, or anywhere else. I have put sync in place. I checked and saw he had a sync today. What should I do to get the bookmarks Desktop on the Droid?

  • [SSD] Add an mSATA on a Pavillion DV6

    Hi all,I found that there is a gap under the touchpad. My laptop is:HP Pavilion DV6-2140EL http://h10025.www1.HP.com/ewfrf/wc/product?CC=it&LC=it&DLC=it&product=4123884I'm looking on the forums about adding mSATA on this laptop, but without help. My

  • While the loop does not stop within a structure of business

    Hi all I have a business structure that works an engine to a certain PWM when my metal detector does not give an amount greater than the threshold that is ' false '. The motor is controlled by a PI controller so a while loop is used inside the false

  • Not changed map of video on HP m8400f desktop; Cannot install the Driver

    Card video NVIDIA GeForce 8500 GT to my HP Pavilion m8400f Desktop computer has failed. replace the defective video card with an NVIDIA GeForce GT 610 video card.  Display is back, but now the computer is SUPER SLOW.  I can't get access to enough RAM

  • Why my registered 1080i stream see tv on my HD TV at 720 x 480?

    I'm using a quad core with 8 GB of ram with a 2250 hvr tuner and win 7 64 bit library.  When I try to listen to the files directly to my Samsung lcd or flow via the ps3 it downgrades the show taped at 720 x 480.