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

function :socket.connect/5 is undefined or private #118

Closed
tineo opened this issue May 27, 2019 · 3 comments
Closed

function :socket.connect/5 is undefined or private #118

tineo opened this issue May 27, 2019 · 3 comments

Comments

@tineo
Copy link

tineo commented May 27, 2019

Hi guys, I got this error with gen_smtp :(
** (exit) an exception was raised: ** (UndefinedFunctionError) function :socket.connect/5 is undefined or private (gen_smtp) :socket.connect(:tcp, 'email-smtp.us-east-1.amazonaws.com', 587, [:binary, {:packet, :line}, {:keepalive, true}, {:active, false}], 5000) (gen_smtp) /.../deps/gen_smtp/src/gen_smtp_client.erl:533: :gen_smtp_client.connect/2 (gen_smtp) /.../deps/gen_smtp/src/gen_smtp_client.erl:198: :gen_smtp_client.do_smtp_session/3 (gen_smtp) /.../deps/gen_smtp/src/gen_smtp_client.erl:143: :gen_smtp_client.try_smtp_sessions/4 (bamboo_smtp) lib/bamboo/adapters/smtp_adapter.ex:77: Bamboo.SMTPAdapter.deliver/2 (bamboo) lib/bamboo/mailer.ex:123: Bamboo.Mailer.deliver_now/3

@kdisneur
Copy link
Contributor

Hi.

If you use OTP 22, you error might be related to #114

We updated our dependencies and we plan to publish the next version today. In the meantime you can try to use master. It's the same version as the one we will publish on hex.

If the problem is different, could you tell us which versions of these languages/libraries you use?

  • OTP
  • Elixir
  • bamboo_smtp
  • gen_smtp

Thanks

@tineo
Copy link
Author

tineo commented May 28, 2019

Erlang/OTP 22 [erts-10.4] [source] [64-bit]
Elixir 1.8.2 (compiled with Erlang/OTP 20)
bamboo 1.2.0
bamboo_smtp 1.6.0
gen_smtp 0.12.0

I'll use master. Thanks

@tineo tineo closed this as completed May 28, 2019
@julien-leclercq
Copy link
Contributor

@tineo you can use 1.7.0 in your mix.exs. I just published it

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

3 participants