Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void sendNewUserEmailWelcome(@Valid AccountRegistrationForm accountRegistrationForm) {
- String to = accountRegistrationForm.getEmail();
- String from = "OnlineBookstore.com <auto-confirm@onlinebookstore.com>";
- String subject = accountRegistrationForm.getFirstName() + ", welcome to OnlineBookstore!";
- String body = accountRegistrationForm.getFirstName() + ", welcome to OnlineBookstore!\r\n" + "\r\n"
- + "Browse your favorite books, our editorial picks, bestsellers, or customer favorites.\r\n" + "\r\n";
- emailService.sendSimpleMessage(to, from, subject, body);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement