Class

Mail

Package: io Author: Régis Viarre <crowkait@phpboost.com> Desc: This class allows you to send mails without having to deal with the mail headers and parameters. Located at io/mail/Mail.class.php
Methods summary
public
# __construct( )
public
# set_sender( string $sender, string $sender_name = Mail::SENDER_ADMIN )
public
# set_reply_to( string $reply_to, string $reply_to_name = '' )
public
# add_recipient( string $address, string $name = '' )
public
public
# add_cc_recipient( string $address, string $name = '' )
public
public
# add_bcc_recipient( string $address, string $name = '' )
public
public string[string]
# get_recipients( )
public string[string]
# get_cc_recipients( )
public string[string]
# get_bcc_recipients( )
public
# set_subject( string $subject )
public
# set_content( string $content )
public
# set_headers( string $headers )
public string
# get_sender_mail( )
public string
# get_sender_name( )
public string
# get_reply_to_mail( )
public string
# get_reply_to_name( )
public string
# get_subject( )
public string
# get_content( )
public
# set_is_html( mixed $is )
public
# is_html( )
Constants summary
string SENDER_ADMIN 'admin'
#
string SENDER_USER 'user'
#
Properties summary
public sting $subject ''
#

object of the mail

public string $content ''
#

content of the mail

public string $sender_mail ''
#

Address of the mail sender.

public string $sender_name ''
#

The mail sender name.

public string $reply_to_mail ''
#

Address of the mail to reply to.

public string $reply_to_name ''
#

The reply to mail sender name.

public The $headers ''
#

mail headers.

public string[] $recipients array()
#

Recipients of the mail. If they are more than one, a comma separates their addresses.

public string[] $cc_recipients array()
#

Cc recipients of the mail. If they are more than one, a comma separates their addresses.

public string[] $bcc_recipients array()
#

Bcc recipients of the mail. If they are more than one, a comma separates their addresses.

public string $is_html false
#

Tells whether the content contains HTML code