12件ヒット
[1-12件を表示]
(0.015秒)
検索結果
先頭1件
-
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 をサポ...