gen-smtp / gen_smtp

The extensible Erlang SMTP client and server library.
Other
684 stars 265 forks source link

add tls_options to smtp:socket:connect/5 (erlang 26 fix) #340

Open sedinin opened 5 months ago

sedinin commented 5 months ago

One can provide e.g. {tls_options, [{verify, verify_none}]} to configuration to avoid problem introduced in erlang 26 (default verify is verify_peer now).

Vagabond commented 5 months ago

Can you not just add the tls options to sockoptions manually?

sedinin commented 5 months ago

What do you mean by "manually"? I do it almost the same way its done in do_STARTTLS/2, by retrieving from configuration.