るりまサーチ

最速Rubyリファレンスマニュアル検索!
136件ヒット [1-100件を表示] (0.029秒)
トップページ > クエリ:plain[x] > クエリ:net/smtp[x]

別のキーワード

  1. net/smtp start
  2. net/http get
  3. net/imap name
  4. net/imap param
  5. net/pop pop

ライブラリ

クラス

検索結果

<< 1 2 > >>

net/smtp (38072.0)

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

...す。
ブロックを使うと File.open と同じように終端処理を自動的にやってくれる
のでおすすめです。

require 'net/smtp'
Net::SMTP.start( 'smtp.example.com', 25 ) {|smtp|
# use smtp object only in this block
}

smtp-server.example.com は適切な 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 Name <...
...require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25, 'yourdomain.example.com')

よくあるダイヤルアップホストの場合、HELO ドメインには ISP のメール
サーバのドメインを使っておけばたいてい通ります。

=== SMTP認証

Net::SMTP は PLAIN, LOGIN,...
...uire 'net/smtp'
Net::SMTP.start('smtp.example.com', 25, helo: 'yourdomain.example.com')

よくあるダイヤルアップホストの場合、HELO ドメインには ISP のメール
サーバのドメインを使っておけばたいてい通ります。

=== SMTP認証

Net::SMTP は PLAIN, LOG...

Net::SMTP#auth_plain(user, secret) -> () (14117.0)

PLAIN 認証を行います。

...PLAIN 認証を行います。

このメソッドはセッション開始(Net::SMTP#start)後、
メールを送る前に呼びだしてください。

通常は Net::SMTP.start や Net::SMTP#start で認証を
行うためこれを利用する必要はないはずです。

@param user 認証で...

Net::SMTP#capable_plain_auth? -> bool (14117.0)

サーバが AUTH PLAIN を広告してきた場合に真を返します。

...サーバが AUTH PLAIN を広告してきた場合に真を返します。

このメソッドは Net::SMTP#start などでセッションを開始
した以降にしか正しい値を返しません。...

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = &#39;localhost&#39;, user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) -> Net::SMTP (8024.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo, user, password, authtype)

このメソッドにブロックを与えた場合には、新しく作ら...
...マンドによって認証を行います。
authtype は使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。

Example:

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@exam...
...ドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype 認証の種類(:plain, :login, :cram_md5 のいずれか)

@raise TimeoutError 接続時にタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedC...
...しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)

このメソッドにブロックを与え...

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = &#39;localhost&#39;, user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) {|smtp| .... } -> object (8024.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo, user, password, authtype)

このメソッドにブロックを与えた場合には、新しく作ら...
...マンドによって認証を行います。
authtype は使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。

Example:

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@exam...
...ドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype 認証の種類(:plain, :login, :cram_md5 のいずれか)

@raise TimeoutError 接続時にタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedC...
...しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)

このメソッドにブロックを与え...

絞り込み条件を変える

Net::SMTP.start(address, port = Net::SMTP.default_port, tls_verify: true, tls_hostname: nil, helo: &#39;localhost&#39;, user: nil, password: nil, authtype: DEFAULT_AUTH_TYPE) -> Net::SMTP (8024.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)

このメソッドにブロックを与え...
...マンドによって認証を行います。
authtype は使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。

Example:

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@exam...
...ドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype 認証の種類(:plain, :login, :cram_md5 のいずれか)

@raise TimeoutError 接続時にタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedC...

Net::SMTP.start(address, port = Net::SMTP.default_port, tls_verify: true, tls_hostname: nil, helo: &#39;localhost&#39;, user: nil, password: nil, authtype: DEFAULT_AUTH_TYPE) {|smtp| ... } -> object (8024.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)

このメソッドにブロックを与え...
...マンドによって認証を行います。
authtype は使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。

Example:

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@exam...
...ドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype 認証の種類(:plain, :login, :cram_md5 のいずれか)

@raise TimeoutError 接続時にタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedC...

Net::SMTP::DEFAULT_AUTH_TYPE -> Symbol (8016.0)

デフォルトの認証スキーム(:plain)です。

...デフォルトの認証スキーム(:plain)です。...

Net::SMTP#authenticate(user, secret, authtype) -> () (8012.0)

認証を行います。

...ないはずです。

@param user 認証で使うアカウント名
@param secret 認証で使うパスワード
@param authtype 認証の種類(:plain, :login, :cram_md5 のいずれか)

@see Net::SMTP.start, Net::SMTP#start, Net::SMTP#auth_plain, Net::SMTP#auth_login, Net::SMTP#auth_cram_md5...

Net::SMTP#start(helo = &#39;localhost&#39;, user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) -> Net::SMTP (8012.0)

サーバにコネクションを張り、同時に SMTP セッションを開始します。

...えられた場合、
SMTP AUTH コマンドによって認証を行います。
authtype は使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。

このメソッドにブロックを与えた場合には、そのオブジェクト
を引数として...
...ドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype 認証の種類(:plain, :login, :cram_md5 のいずれか)

@raise IOError すでにセッションを開始している場合に発生します
@raise TimeoutError 接...

絞り込み条件を変える

<< 1 2 > >>