Skip to content

Commit

Permalink
Update README and samples for commons-mail2 Jakarta libs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesname authored and mkurz committed Oct 8, 2024
1 parent 0847d15 commit df2c7de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Use the `@Inject` annotation on the constructor, service of your component or co
```scala
import play.api.libs.mailer._
import java.io.File
import org.apache.commons.mail.EmailAttachment
import org.apache.commons.mail2.jakarta.EmailAttachment
import javax.inject.Inject

class MailerService @Inject() (mailerClient: MailerClient) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package controllers
import java.io.File

import play.api.Environment
import org.apache.commons.mail.EmailAttachment
import org.apache.commons.mail2.jakarta.EmailAttachment
import play.api.libs.mailer._
import play.api.mvc._

Expand Down
2 changes: 1 addition & 1 deletion samples/runtimeDI/app/controllers/ApplicationJava.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package controllers;

import org.apache.commons.mail.EmailAttachment;
import org.apache.commons.mail2.jakarta.EmailAttachment;
import play.api.libs.mailer.MailerClient;
import play.libs.mailer.Email;
import play.mvc.Controller;
Expand Down
2 changes: 1 addition & 1 deletion samples/runtimeDI/app/controllers/ApplicationScala.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package controllers
import java.io.File
import javax.inject.Inject

import org.apache.commons.mail.EmailAttachment
import org.apache.commons.mail2.jakarta.EmailAttachment
import play.api.Environment
import play.api.libs.mailer._
import play.api.mvc._
Expand Down

0 comments on commit df2c7de

Please sign in to comment.