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

SMTPClient has no member flatmap #10

Open
felswa opened this issue Jun 2, 2023 · 1 comment
Open

SMTPClient has no member flatmap #10

felswa opened this issue Jun 2, 2023 · 1 comment

Comments

@felswa
Copy link

felswa commented Jun 2, 2023

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())
}
}

@Pilot-Marc
Copy link

same problem here. Has anyone figured this out?

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

No branches or pull requests

2 participants