I've learnt so much after subscribing to read your exclusive articles! "私はあなたの排他的な記事を読むために購読した後、そんなに学んだ!"
ニック

RocksEmailクラス

説明

これは、電子メールを表します。

これは、添付ファイル、CCやメールの他のすべての部品を追加して処理します。

  • array $to: an array of recipients that the email is being sent to プロパティの読み取り:配列$へ:メールが送信されている受信者の配列
  • array $cc: the carbon copy addresses of the email プロパティを読み取ります。array $ CC:メールのカーボンコピーのアドレス
  • array $bcc: the blind carbon copy addresses of the email プロパティを読み取ります。array $ BCC:メールのブラインドカーボンコピーのアドレス
  • array $attachments: the attachments of the email プロパティを読み取ります。array $添付ファイル:Eメールの添付ファイル
  • string $subject: the subject of the email プロパティ:$対象文字列:メールの件名
  • string $from: the from address of the email プロパティ:文字列から$:電子メールのアドレスから
  • string $body: the body of the email プロパティ:文字列の$ bodyメールの本文
  • string $includeHtml: include a html version in the email プロパティ:文字列$ includeHtml:電子メール内のHTMLバージョンが含まれてい
  • Dominic Skinner 著者:ドミニクスキナー
  • 0.2.1 バージョン:0.2.1

) / RocksEmail.php(21行)に配置

メソッドの概要
AddAttachement ( string $filename , [ string $fileType = null ], [ string $data = null ]) ボイド AddAttachement文字列 $ファイル名 、[ 文字列 $ fileTypeを = NULL]、[ 文字列 $データ = NULL])
AddBCC ( string $address ) ボイド AddBCC文字列 $アドレス
AddCC ( string $address ) ボイド AddCC文字列 $アドレス
AddTemplatedBody ( string $templateFilename ) ボイド AddTemplatedBody文字列 $ templateFilename)
AddTo ( string $address ) ボイド AddTo文字列 $アドレス
Send () 無効に 送信 ()
__get ( ボイド __get ) $ var)
__set ( ボイド __set , $ varは ) $ varValue)
__toString () ボイド __toString ()
メソッド
(line 122 ) AddAttachement(ライン122)

これは、電子メールの添付ファイルを追加します。

  • public アクセス:公共
AddAttachement ( string $filename , [ string $fileType = null ], [ string $data = null ]) ボイド AddAttachement( 文字列 $ファイル名 、[ 文字列 $ fileTypeを = NULL]、[ 文字列 $データ = NULL])
  • $filename : the filename of the attachment 文字列 $ファイル名 :添付ファイルの名前
  • $fileType : the file type of the attachment 文字列 $ファイルタイプ :添付ファイルのファイルタイプ
  • $data : of the attachment this is not needed as it can be retrieved from the filename. 文字列 $データ :それはファイル名から取得することができるように添付ファイルで、これは必要ありません。
(line 69 ) AddBCC(ライン69)

これは、ブラインドカーボンコピーの電子メールアドレスのリストにメールアドレスを追加します。

  • public アクセス:公共
AddBCC ( string $address ) ボイド AddBCC( 文字列 $アドレス
  • $address : the email address to add 文字列 $アドレス :追加するメールアドレス
(line 60 ) AddCC(ライン60)

これはカーボンコピーの電子メールアドレスのリストにメールアドレスを追加します。

  • public アクセス:公共
AddCC ( string $address ) ボイド AddCC( 文字列 $アドレス
  • $address : the email address to add 文字列 $アドレス :追加するメールアドレス
(line 81 ) AddTemplatedBody(ライン81)

これは、はるかに簡単な電子メールでの作業になりますメールアドレスにテンプレート化されたボディが追加されます。

$ templatedFilename後のすべてのパラメータは、テンプレートで使用されています。 このメソッドに渡された少なくとも二つのパラメータが存在する必要があります。

  • public アクセス:公共
AddTemplatedBody ( string $templateFilename ) ボイド AddTemplatedBody( 文字列 $ templateFilename)
  • $templateFilename : the filename of the templated body 文字列 $ templateFilename:template宣言された本体のファイル名
(line 51 ) AddTo(ライン51)

これは、電子メールアドレスのリストにメールアドレスを追加します

  • public アクセス:公共
AddTo ( string $address ) ボイド AddTo( 文字列 $アドレス
  • $address : the email address to add 文字列 $アドレス :追加するメールアドレス
(line 130 ) 送信 (ライン130)

これは、電子メールを送信します。

  • public アクセス:公共
Send () Send()無効
(line 42 ) __get(ライン42)
  • public アクセス:公共
__get ( ボイド __取得 ) $ var)
  • $ varの
(line 33 ) __set(33行目)
  • public アクセス:公共
__set ( ボイド _セット , $ varは ) $ varValue)
  • $ varの
  • $ varValue
(line 177 ) __toString(ライン177)
  • public アクセス:公共
__toString () ボイド の__toString()

コメントが提供されていません。
セキュリティイメージ

ドミニクスキナーによって書かれた
最終更新日:2011年10月25日午前16時○○分38秒を