Your Developer Exam showed me just how much there is to PHP. 您的開發人員考試表明我只是有多少是PHP的。”
羅斯

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 $bcc: the blind carbon copy addresses of the email 物業讀:數組$ BCC:密件副本的電子郵件地址
  • array $attachments: the attachments of the email 物業讀:數組$附件:電子郵件的附件
  • string $subject: the subject of the email 屬性:字符串$主題:電子郵件的主題
  • string $from: the from address of the email電子郵件地址的屬性:字符串$:
  • string $body: the body of the email 屬性:字符串美元的身體:身體的電子郵件
  • 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字符串 $文件名 ​​,[ 字符串 $文件類型 = 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( 字符串 $文件名 ​​,[ 字符串 $文件類型 = 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 模板機構的文件名
(line 51 ) addto把 (51行)

這增加了一個電子郵件地址的電子郵件地址列表

  • public 訪問:公眾
AddTo ( string $address ) addto把 無效字符串 $地址
  • $address : the email address to add 字符串 $地址 :電子郵件地址添加
(line 130 ) 發送 (130線)

發送電子郵件。

  • public 訪問:公眾
Send () 無效 發送 ()
(line 42 ) __get(42行)
  • public 訪問:公眾
__get ( 函數void __得到 ) $ VAR)
  • $ var的
(line 33 ) __set(33行)
  • public 訪問:公眾
__set ( 函數void __集 , $ var的 ) $ varValue)
  • $ var的
  • 美元varValue
(line 177 ) __toString(177線)
  • public 訪問:公眾
__toString () 無效 的__toString()

已提供任何意見。
安全形象

書面由多米尼克·斯金納
最後更新:2011年10月25日十六點00分38秒