I regularly use your site to answer my PHP problems! 我经常使用您的网站,回答我的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秒