Lambda-component
[ class tree: Lambda-component ] [ index: Lambda-component ] [ all elements ]

Class: Mail

Source Location: /components/Mail.php

Class Overview


メール Class


Author(s):

  • rooth

Version:

  • 0.0.1

    PHP version 5

     usage:
      Mail::setTemplateDir(string template_dir);
      Mail::setTemplate(string filename); // filename: strip `.php' extension.
      Mail::setParams(array(
          'param1' => $param1,
          'param2' => $param2,
          'param3' => $param3,
      ));
      Mail::send(string to_addr, string from_addr[, string encoding, string header, string bounce_addr]);

Variables

Methods



Class Details

[line 26]
メール Class



Tags:

author:  rooth
version:  

0.0.1

PHP version 5

 usage:
  Mail::setTemplateDir(string template_dir);
  Mail::setTemplate(string filename); // filename: strip `.php' extension.
  Mail::setParams(array(
      'param1' => $param1,
      'param2' => $param2,
      'param3' => $param3,
  ));
  Mail::send(string to_addr, string from_addr[, string encoding, string header, string bounce_addr]);



[ Top ]


Class Variables

static $params = array()

[line 30]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $template =

[line 29]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $templatedir =

[line 28]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


static method getTemplate [line 160]

static str getTemplate( )

テンプレートを返却する



Tags:

return:  テンプレート
access:  protected


[ Top ]

static method getTemplateDir [line 147]

static str getTemplateDir( )

テンプレートディレクトリを返却する



Tags:

return:  テンプレートディレクトリ
access:  protected


[ Top ]

static method isEmail [line 126]

static void isEmail( str $mail)

メールアドレス書式の妥当性検証



Tags:

access:  public


Parameters:

str   $mail   メールアドレス

[ Top ]

static method send [line 86]

static void send( str $to, str $from, [str $encoding = 'UTF-8'], [str $header = ''], [str $bounceto = ''], [ $sbj_body = array()])

送信する



Tags:

access:  public


Parameters:

str   $to   送信先メールアドレス
str   $from   送信元メールアドレス
str   $encoding   テンプレートファイルの文字エンコーディング
str   $header  

追加メールヘッダー(末尾は「\r\n」で終わらせます。ただし、最終行の末尾に「\r\n」は不要)

ex) $header = 'X-Mailer: Hoge Fuga Mailer'."\r\n"; $header .= 'X-Priority: 3'."\r\n"; $header .= 'X-Status: 250 OK';

str   $bounceto   バウンスメール送信先メールアドレス
array   $sbj_body   array('sbj' => '件名', 'body' => 'メッセージ') この引数が指定されるとテンプレートを無視します。

[ Top ]

static method setParams [line 63]

static void setParams( $params)

パラメーターをセットする



Tags:

access:  public


Parameters:

arary   $params   パラメーター

[ Top ]

static method setTemplate [line 51]

static void setTemplate( str $template)

テンプレートをセットする



Tags:

access:  public


Parameters:

str   $template   テンプレートファイル(.php は省略する)

[ Top ]

static method setTemplateDir [line 39]

static void setTemplateDir( str $dir)

テンプレートディレクトリをセットする



Tags:

access:  public


Parameters:

str   $dir   テンプレートディレクトリ

[ Top ]


Documentation generated on Sat, 21 May 2011 18:34:07 +0900 by phpDocumentor 1.4.1