VaporSMTPKit icon indicating copy to clipboard operation
VaporSMTPKit copied to clipboard

SMTPClient has no member flatmap

Open felswa opened this issue 1 year ago • 1 comments

Joannis,

when I now update the package I get the following errors

  1. SMTPClient has no member flatMap
  2. 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()) } }

felswa avatar Jun 02 '23 16:06 felswa

same problem here. Has anyone figured this out?

Pilot-Marc avatar Mar 31 '24 23:03 Pilot-Marc