Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we add multiple play mailer configuration in application.conf ? #110

Open
maltiyadav opened this issue Dec 27, 2016 · 5 comments
Open

Comments

@maltiyadav
Copy link

No description provided.

@ggrossetie
Copy link
Member

Currently the only way to achieve this is to manually instantiate an instance: https://github.com/playframework/play-mailer/blob/master/user-manual.adoc#new-instances

But I agree that would be nice to be able to configure multiple instances in application.conf

@maltiyadav
Copy link
Author

We have done by manually instantiate an instance.

Thanks @Mogztter

@ajkamath
Copy link

ajkamath commented Aug 2, 2017

The link by @Mogztter is no longer valid. Can someone re-direct me to correct one.
I am using Play-Java and want to check how to manually instantiate

@ggrossetie
Copy link
Member

The user manual has moved to the README.
@ajkamath Here's the link: https://github.com/playframework/play-mailer/blob/master/README.md#multiple-smtpmailer-instances

@ajkamath
Copy link

ajkamath commented Aug 2, 2017

@Mogztter : thanks for the link. But I went through this before and since i'm using PlayJava, I am getting errors.
First of all not able to use scala.Option for username and password and also IDE throws error saying method call expected(Doc says to use constructor of SMTPConfiguration but it should actually be SMTPConfiguration.apply(...). Else the said error).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants