-
-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
Description
Hi, I have set required configurations in application.conf as below:
play.mailer {
host=smtp.gmail.com
port=465
ssl=true
tls=false
user="from@email.com"
password = "****"
debug=true
mock=false
}
While sending some emails I need to override default sender's mail id(which was set in application.conf), it is still sending email from "from@email.com" rather than sending from "diff_from@email.com".
mailerClient().send(Email("Simple email", "diff_from@email.com",Seq("to@email.com")))Is there any way to overwrite the default sender email id?