title: java.lang.IllegalArgumentException: The 'original' message argument cannot be null
body: <p>I'm trying to send email using Spring. Look at my code:</p>
  
  <pre><code>public class Provider {
  
      private MailSender mailSender;
      private SimpleMailMessage message;
  
      public void setMailSender(MailSender mailSender) {
          this.mailSender = mailSender;
      }
  
      public void setMessage(SimpleMailMessage message) {
          this.message = message;
      }
  
      public static String getTemplateName() {
          return "mainLayout/layout.jsp";
      }
  
  
      public void placeOrder() {
  
          // ... * Do the business calculations....
          // ... * Call the collaborators to persist the order
  
          // Create a thread safe "sandbox" of the message
          SimpleMailMessage msg = new SimpleMailMessage(this.message);
          msg.setTo("babobka@bk.ru");
          msg.setText("Hello");
          try {
              mailSender.send(msg);
          } catch (MailException ex) {
              // log it and go on
              System.err.println(ex.getMessage());
          }
      }
  
  }
  </code></pre>
  
  <p>Don't know why it's not working. I have no idea what's wrong. I added all depencies like mail.</p>