VaporSMTPKit
VaporSMTPKit copied to clipboard
SMTPClient has no member flatmap
Joannis,
when I now update the package I get the following errors
- SMTPClient has no member flatMap
- Generic parameter T could not be inferred in sent = mails.
in:
return SMTPClient.connect( hostname: credentials.hostname, port: credentials.port, ssl: credentials.ssl, eventLoop: self.eventLoopGroup.next() ).flatMap { client in client.login( user: credentials.email, password: credentials.password ).flatMap { let sent = mails.map(client.sendMail) return EventLoopFuture.andAllSucceed(sent, on: self.eventLoopGroup.next()) } }
same problem here. Has anyone figured this out?