826件ヒット
[1-100件を表示]
(0.063秒)
ライブラリ
-
net
/ smtp (804)
クラス
-
Net
:: SMTP (694)
キーワード
-
DEFAULT
_ AUTH _ TYPE (11) -
NEWS for Ruby 2
. 1 . 0 (11) - Response (11)
- Revision (11)
- SMTP (11)
- SMTPAuthenticationError (11)
- SMTPError (11)
- SMTPFatalError (11)
- SMTPServerBusy (11)
- SMTPSession (11)
- SMTPSyntaxError (11)
- SMTPUnknownError (11)
- SMTPUnsupportedCommand (11)
- address (11)
-
auth
_ cram _ md5 (11) -
auth
_ login (11) -
auth
_ plain (11) - authenticate (11)
-
capable
_ auth _ types (11) -
capable
_ cram _ md5 _ auth? (11) -
capable
_ login _ auth? (11) -
capable
_ plain _ auth? (11) -
capable
_ starttls? (11) - data (22)
-
debug
_ output= (11) -
default
_ port (11) -
default
_ ssl _ context (11) -
default
_ ssl _ port (11) -
default
_ submission _ port (11) -
default
_ tls _ port (11) -
disable
_ ssl (11) -
disable
_ starttls (11) -
disable
_ tls (11) - ehlo (11)
-
enable
_ ssl (11) -
enable
_ starttls (11) -
enable
_ starttls _ auto (11) -
enable
_ tls (11) - esmtp (11)
- esmtp= (11)
- esmtp? (11)
- finish (11)
- helo (11)
- inspect (11)
- mailfrom (11)
- new (11)
-
open
_ timeout (11) -
open
_ timeout= (11) - port (11)
- quit (11)
- rcptto (11)
-
rcptto
_ list (11) -
read
_ timeout (11) -
read
_ timeout= (11) - ready (11)
- rset (11)
-
send
_ mail (11) - sendmail (11)
-
set
_ debug _ output (11) - ssl? (11)
- start (56)
- started? (11)
- starttls (11)
- starttls? (11)
-
starttls
_ always? (11) -
starttls
_ auto? (11) - tls? (11)
検索結果
先頭5件
-
net
/ smtp (44526.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
... SMTP (Simple Mail Transfer Protocol)
を扱うライブラリです。
ヘッダなどメールのデータを扱うことはできません。
SMTP の実装は 2821 に基いています。
=== 使用例
==== とにかくメールを送る
SMTP を使ってメールを送るにはまず SMTP.......す。
require 'net/smtp'
Net::SMTP.start( 'smtp.example.com', 25 ) {|smtp|
# use smtp object only in this block
}
smtp-server.example.com は適切な SMTP サーバのアドレスに読みかえてください。
通常は LAN の管理者やプロバイダが SMTP サーバを用意......くれているはずです。
セッションが開いたらあとは Net::SMTP#send_message
でメールを流しこむだけです。
require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.send_message(<<-EndOfMail, 'from@example.com', 'to@example.net')
From: Your... -
Net
:: SMTP # esmtp=(bool) (17140.0) -
その Net::SMTP オブジェクトが ESMTP を使うかどうかを指定します。
...その Net::SMTP オブジェクトが ESMTP を使うかどうかを指定します。
この指定は Net::SMTP#start を呼ぶ前にする必要があります。
ESMTPモードで Net::SMTP#start を呼び、うまくいかなかった
場合には 普通の SMTP モードに切り替えてや......りなおします
(逆はしません)。
@see Net::SMTP#esmtp?... -
Net
:: SMTP # esmtp -> bool (17122.0) -
その Net::SMTP オブジェクトが ESMTP を使う場合に真を返します。 デフォルトは真です。
...その Net::SMTP オブジェクトが ESMTP を使う場合に真を返します。
デフォルトは真です。
@see Net::SMTP#esmtp=... -
Net
:: SMTP # esmtp? -> bool (17122.0) -
その Net::SMTP オブジェクトが ESMTP を使う場合に真を返します。 デフォルトは真です。
...その Net::SMTP オブジェクトが ESMTP を使う場合に真を返します。
デフォルトは真です。
@see Net::SMTP#esmtp=... -
Net
:: SMTPServerBusy (14032.0) -
SMTP 一時エラーに対応する例外クラスです。 SMTP エラーコード 420, 450 に対応します。
...SMTP 一時エラーに対応する例外クラスです。
SMTP エラーコード 420, 450 に対応します。... -
Net
:: SMTP (14016.0) -
SMTP のセッションを表現したクラスです。
...SMTP のセッションを表現したクラスです。... -
Net
:: SMTPAuthenticationError (14016.0) -
SMTP 認証エラー(エラーコード 530)に対応する例外クラスです。
...SMTP 認証エラー(エラーコード 530)に対応する例外クラスです。... -
Net
:: SMTPError (14016.0) -
SMTP 関連の例外に include されるモジュールです。
...SMTP 関連の例外に include されるモジュールです。... -
Net
:: SMTPFatalError (14016.0) -
SMTP 致命的エラー(エラーコード 5xx、 ただし500除く)に対応する 例外クラスです。
...SMTP 致命的エラー(エラーコード 5xx、 ただし500除く)に対応する
例外クラスです。... -
Net
:: SMTPSession (14016.0) -
Alias of Net::SMTP
...Alias of Net::SMTP...