|
|
@ -30,10 +30,10 @@ public class MailService {
|
|
|
|
MimeMessage message = emailSender.createMimeMessage();
|
|
|
|
MimeMessage message = emailSender.createMimeMessage();
|
|
|
|
MimeMessageHelper helper = new MimeMessageHelper(message);
|
|
|
|
MimeMessageHelper helper = new MimeMessageHelper(message);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
helper.setTo(email);
|
|
|
|
helper.setTo("victorsash96@gmail.com");
|
|
|
|
helper.setText(textMessage, true);
|
|
|
|
helper.setText(textMessage, true);
|
|
|
|
helper.setSubject(subject);
|
|
|
|
helper.setSubject(subject);
|
|
|
|
helper.setCc(cc);
|
|
|
|
//helper.setCc(cc);
|
|
|
|
emailSender.send(message);
|
|
|
|
emailSender.send(message);
|
|
|
|
send = true;
|
|
|
|
send = true;
|
|
|
|
LOGGER.info("Mail sent!");
|
|
|
|
LOGGER.info("Mail sent!");
|
|
|
|