title: Spring mail MimeMessage has an incorrect "From " set
body: <p>I am using spring mail to send an email via google's smptp server. I am setting my email templates "From" header but for some reason when I do receive the mail as a sender I get the owner of the smtp account. (which happens to be me again). </p>
  
  <pre><code>MimeMessage message = mailSender.createMimeMessage();
  MimeMessageHelper helper = new MimeMessageHelper(message);
  helper.setText(forgottenPassowrdMailTemplate.getText()
                     .replace("%firstName%", token.getUser().getFirstName())
                     .replace("%lastName%", token.getUser().getLastName())
                     .replace("%link%", url + token.getToken()), true);
          helper.setTo(token.getUser().getEmail());
          helper.setFrom(forgottenPassowrdMailTemplate.getFrom());
          helper.setSubject(forgottenPassowrdMailTemplate.getSubject());
  </code></pre>
  
  <p>am I forgetting something ? I a am explicitly setting the "From" header</p>