るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.015秒)
トップページ > クエリ:enable_tls[x] > 種類:ライブラリ[x]

別のキーワード

  1. _builtin enable
  2. mkmf enable_config
  3. pop enable_ssl
  4. pop3 enable_ssl
  5. kernel enable_config

検索結果

net/smtp (13.0)

メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。

...
smtp.enable_starttls(context)
smtp.start() do
# send messages ...
end

TLS を使用したい場合は enable_tls を使用します。

require 'net/smtp'
# TLSの例
smtp = Net::SMTP.new('smtp.example.com', 465)
smtp.enable_tls
smtp.start do
# send messages ...
end...
...方法を考える必要があるでしょう。


TLS を使用したい場合は enable_tls を使用します。

require 'net/smtp'
# TLSの例
smtp = Net::SMTP.new('smtp.example.com', 465)
smtp.enable_tls
smtp.start do
# send messages ...
end

サーバーが STARTTLS をサポ...