16件ヒット
[1-16件を表示]
(0.040秒)
別のキーワード
検索結果
-
Net
:: SMTP # disable _ starttls -> () (18201.0) -
その Net::SMTP オブジェクトがSTARTTLSを常に使わないよう設定します。
その Net::SMTP オブジェクトがSTARTTLSを常に使わないよう設定します。
@see Net::SMTP#starttls?, Net::SMTP#enable_starttls, Net::SMTP#enable_starttls_auto -
net
/ smtp (30.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
...om@example.com', 'to@example.net')
From: Your Name <from@example.com>
To: Dest Address <to@example.net>
Subject: test mail
Date: Sat, 23 Jun 2001 16:26:43 +0900
Message-Id: <unique.message.id.string@yourhost.example.com>
This is a test mail.
EndOfMail
}
==== セッションを......るのに STARTTLS を使用したくない場合は Net::SMTP#disable_starttls を使用します。
require 'net/smtp'
# STARTTLSを使用したくない例
smtp = Net::SMTP.new('smtp.example.com', 25)
smtp.disable_starttls
smtp.start do
# send messages ...
end
デフォルトで...