title: a bean of type 'org.springframework.mail.javamail.JavaMailSender' that could not be found
body: <p>I am using <code>spring boot 2.0.7 Release</code> and <code>spring-boot-starter-mail-2.0.7.Release.</code></p>
  
  <p>I am autowiring <code>javaMailsender</code> inside the class  working ok on windows while trying to deploy on <code>Unix</code> getting belwo issue </p>
  
  <hr>
  
  <pre><code>APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  Field javaMailSender in com.fti.di.capstock.tran.pub.email.SendEmail required a bean of type 'org.springframework.mail.javamail.JavaMailSender' that could not be found.
  
  The injection point has the following annotations:
          - @org.springframework.beans.factory.annotation.Autowired(required=true)
  
  
  Action:
  
  Consider defining a bean of type 'org.springframework.mail.javamail.JavaMailSender' in your configuration.
  </code></pre>
  
  <hr>
  
  <pre><code>    import org.springframework.mail.javamail.JavaMailSender;
      import org.springframework.mail.javamail.MimeMessageHelper;
      import org.springframework.messaging.Message;
      import org.springframework.messaging.MessagingException;
      import org.springframework.stereotype.Component;
  
      import com.fti.di.capstock.tran.pub.constants.ApplicationFlowConstants;
      import com.fti.di.integration.constants.IntegrationConstants;
      import com.fti.di.integration.util.StringUtil;
  
      @Component("sendEmail")
      public class SendEmail {
  
          @Autowired
          private JavaMailSender javaMailSender;
  
          @Autowired
          Environment env;
  
          @ServiceActivator
  </code></pre>