Skip to content

Commit

Permalink
refactor: remove dotenv dependency and update email list configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoMeireles55 committed Jan 24, 2025
1 parent 3d368e1 commit 7fc5748
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
<java.version>21</java.version>
</properties>
<dependencies>
<dependency>
<groupId>io.github.cdimascio</groupId>
<artifactId>dotenv-java</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package leonardo.labutilities.qualitylabpro.services.email;

import io.github.cdimascio.dotenv.Dotenv;
import jakarta.annotation.PostConstruct;
import jakarta.mail.MessagingException;
import jakarta.mail.internet.AddressException;
Expand Down Expand Up @@ -30,12 +29,11 @@
@Service
public class EmailService {
private final JavaMailSender javaMailSender;
Dotenv dotenv = Dotenv.load();

@Value("${spring.mail.username}")
String emailFrom;

@Value("${email.to.send.list:}")
@Value("${email.to.send.list}")
String emailListString;


Expand Down

0 comments on commit 7fc5748

Please sign in to comment.