16件ヒット
[1-16件を表示]
(0.041秒)
別のキーワード
検索結果
-
Net
:: SMTP # disable _ starttls -> () (18107.0) -
その Net::SMTP オブジェクトがSTARTTLSを常に使わないよう設定します。
...その Net::SMTP オブジェクトがSTARTTLSを常に使わないよう設定します。
@see Net::SMTP#starttls?, Net::SMTP#enable_starttls, Net::SMTP#enable_starttls_auto... -
net
/ smtp (78.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
...smtp|
smtp.send_message(<<-EndOfMail, 'from@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......せん。
# using SMTP#finish
require 'net/smtp'
smtp = Net::SMTP.start('smtp.example.com', 25)
smtp.send_message mail_string, 'from@example.com', 'to@example.net'
smtp.finish
またブロック付きの Net::SMTP.start, Net::SMTP#start
を使うと finish を呼んでくれるので便......るのに 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
デフォルトで...