Skip to content

Overwrite sender's mail id which is set in application.conf #144

@suribabu39

Description

@suribabu39

Hi, I have set required configurations in application.conf as below:

play.mailer {
  host=smtp.gmail.com
  port=465
  ssl=true
  tls=false
  user="[email protected]"
  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 "[email protected]" rather than sending from "[email protected]".

mailerClient().send(Email("Simple email", "[email protected]",Seq("[email protected]")))

Is there any way to overwrite the default sender email id?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions