title: Reading contents from property file
body: <p>I'm having issues in reading values from property file. In my project, there is a folder called "env". Inside that there are three folders named "default", "dev" and "staging". Those three folders contain three property files named "default.properties", "dev.properties" and "staging.properties". Inside all of those three property files, I have the below content:</p>
  
  <pre><code># Emailing configurations
  sender_email_address = osanda.nimalarathna@maxsoft.com
  sender_email_password = 1qaz2wsx@
  recipients_email_addresses = eranga.heshan@maxsoft.com
  email_subject = MaxSoft IntelliAPI Email Test
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/DlWF8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DlWF8.png" alt="enter image description here"></a></p>
  
  <p>Now what I am doing is reading them using java.</p>
  
  <pre><code>package com.maxsoft.ata.util;
  
  import java.util.Properties;
  import javax.mail.Message;
  import javax.mail.MessagingException;
  import javax.mail.PasswordAuthentication;
  import javax.mail.Session;
  import javax.mail.Transport;
  import javax.mail.internet.InternetAddress;
  import javax.mail.internet.MimeMessage;
  
  public class Email {
  
      private static final String SENDER_EMAIL_ADDRESS = System.getenv("sender_email_address");
      private static final String SENDER_EMAIL_PASSWORD = System.getenv("sender_email_password");
      private static final String RECIPIENTS_EMAIL_ADDRESSES = System.getenv("recipients_email_addresses");
      private static final String EMAIL_SUBJECT = System.getenv("email_subject");
  
      public static void send(String messageBody) {
  
          System.out.println(SENDER_EMAIL_ADDRESS);
  
          /**
           * Email sending codes
           */
  
          }
  
      public static void main(String[] args) {
          send("test message");
      }
  }
  </code></pre>
  
  <p>In the console, I am getting the output as <code>null</code></p>