title: Using AWS SES SMTP- error 554 Message rejected: Email address is not verified. The following identities failed the check in region
body: <p>Getting this error on the email address I am trying to send an email to!</p>
  
  <p>Not sure why I need to verify an email I am sending to which doesn't belong to me?</p>
  
  <p>DEBUG SMTP: MessagingException while sending, THROW: 
  com.sun.mail.smtp.SMTPSendFailedException: 554 Message rejected: Email address is not verified. The following identities failed the check in region EU-WEST-1: danielhaughton@outlook.com</p>
  
  <pre><code>@Configuration
  @PropertySource("app.properties")
  @EnableTransactionManagement
  public class AppConfig {
  @Autowired
  private Environment env;
  @Bean
  public JavaMailSender getJavaMailSender() {
      JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
      mailSender.setHost("email-smtp.eu-west-1.amazonaws.com");
      mailSender.setPort(25);
      mailSender.setUsername("removedcreds");
      mailSender.setPassword("removed creds");
      Properties props = mailSender.getJavaMailProperties();
      props.put("mail.transport.protocol", "smtp");
      props.put("mail.smtp.auth", "true");
      props.put("mail.smtp.starttls.enable", "true");
      props.put("mail.smtp.starttls.required", "true");
  
      props.put("mail.debug", "true");
      return mailSender;
  }
  </code></pre>
  
  <p>EmailService
      @Component
      public class EmailServiceImpl  {</p>
  
  <pre><code>@Autowired
  public JavaMailSender emailSender;
  
  public void sendSimpleMessage(String toAddress, String subject, String text) 
  {
      SimpleMailMessage message = new SimpleMailMessage();
      message.setTo(toAddress);
      message.setFrom("noreply@mydomain.com");
      message.setSubject(subject);
      message.setText(text);
      emailSender.send(message);
  }
  }
  </code></pre>
  
  <p>My emailserviceimpl is autowird into a web controller that I send the email from</p>