Comments (3)
Hi @loicdescotte,
With this pull request, you will be able to manually create a mailer client:
val email = Email("Simple email", "Mister FROM <[email protected]>")
new SMTPMailer(SMTPConfiguration("typesafe.org", 1234)).send(email)
AFAIK NingWS
also use @Inject
, for example in the NingWSAPI
constructor (i.e. the dependency on Guice is provided by Play!). So basically we just need to create a trait ?
trait MailerComponents {
def configuration: Configuration
lazy val mailerClient = new SMTPMailer(new SMTPConfigurationProvider(configuration).get())
}
Having said that, we still need to sort out how to let user provide their own SMTPConfiguration
and how to provide multiple mailer clients (for other email service providers as requested in #10)
from play-mailer.
@Mogztter great, I hope it will be merged :)
Indeed I guess we just need to create a trait like this one.
from play-mailer.
Resolved by #70
from play-mailer.
Related Issues (20)
- Compilation error when used with Play 2.6.18 and compile time injection HOT 2
- Unable to disable TLS v1.0 with play-mailer 5.0 (using Play 2.5.x) HOT 12
- Authentication Failure With Gmail in Play-Mailer 6.0.1 HOT 1
- Email sent goes to spam HOT 3
- New release or using the last dev version HOT 8
- office365 smtp session HOT 2
- Cross build for Scala 2.13.0
- No logs in mock mode (play 2.7) HOT 1
- .addTo() needs to be properly escaped or UTF-8 encoded HOT 1
- Unresolved dependencies path for 8.0.0 HOT 2
- NTLM authentication HOT 2
- Get a nullpointerexception when trying to send mail HOT 1
- SBT assembly HOT 3
- Not establishing StartTLS connection HOT 1
- Streaming attachments HOT 3
- [2.x] How to send a mail using TLSv1.2 or TLSv1.3 HOT 4
- Error - no object DCH for MIME type multipart/mixed HOT 1
- Add support for DKIM signing
- Switch to Jakarta Mail
- publish 9.0.0-M2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-mailer.