39件ヒット
[1-39件を表示]
(0.155秒)
別のキーワード
検索結果
先頭5件
- Net
:: SMTP # send _ message(mailsrc , from _ addr , *to _ addrs) -> () - Net
:: SMTP # send _ mail(mailsrc , from _ addr , *to _ addrs) -> () - Net
:: SMTP # sendmail(mailsrc , from _ addr , *to _ addrs) -> () - 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 - 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
-
Net
:: SMTP # send _ message(mailsrc , from _ addr , *to _ addrs) -> () (21407.0) -
メールを送信します。
...メールを送信します。
mailsrc をメールとして送信します。
mailsrc は each イテレータを持つ
オブジェクトならなんでも構いません(たとえば String や File)。
from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs に......で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@par......とも1個)
@raise IOError すでにセッションが終了している場合に発生します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラ... -
Net
:: SMTP # send _ mail(mailsrc , from _ addr , *to _ addrs) -> () (6307.0) -
メールを送信します。
...メールを送信します。
mailsrc をメールとして送信します。
mailsrc は each イテレータを持つ
オブジェクトならなんでも構いません(たとえば String や File)。
from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs に......で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@par......とも1個)
@raise IOError すでにセッションが終了している場合に発生します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラ... -
Net
:: SMTP # sendmail(mailsrc , from _ addr , *to _ addrs) -> () (6307.0) -
メールを送信します。
...メールを送信します。
mailsrc をメールとして送信します。
mailsrc は each イテレータを持つ
オブジェクトならなんでも構いません(たとえば String や File)。
from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs に......で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@par......とも1個)
@raise IOError すでにセッションが終了している場合に発生します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラ... -
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 (3406.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそ......く作られた Net::SMTP オブジェクトが
返されます。この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
user と password の両方が与えられた場合、
SMTP AUTH コマンドによって認証を行います。
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@example.jp'
}
@param address 接続するサーバをホスト名もしくはIPアドレス... -
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 (3406.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそ......く作られた Net::SMTP オブジェクトが
返されます。この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
user と password の両方が与えられた場合、
SMTP AUTH コマンドによって認証を行います。
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@example.jp'
}
@param address 接続するサーバをホスト名もしくはIPアドレス...