CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
CMail Class Reference

Public Member Functions

 __construct ()
 
 initialise ()
 
 set_mimeVersion ($mime)
 
 set_contentType ($type)
 
 set_returnPath ($email)
 
 add_header ($name, $value)
 
 set_sender ($email, $name='')
 
 add_replyTo ($email, $name='')
 
 add_recipient ($email, $name='')
 
 add_ccRecipient ($email, $name='')
 
 add_bccRecipient ($email, $name='')
 
 set_subject ($subject)
 
 set_textBody ($content)
 
 set_HTMLBody ($content)
 
 build_HTMLBody ($content, $cssPath=false)
 
 add_attachment ($file)
 
 attach_file ($file)
 
 add_attachments ($files)
 
 attach_files ($files)
 
 add_embeddedImage ($img)
 
 embed_image ($img)
 
 add_embeddedImages ($imgs)
 
 embed_images ($imgs)
 
 send ()
 
 get_lastError ()
 
 get_contactListAsString ($list='To', $container='<', $separator=', ')
 

Public Attributes

 $params = array()
 Parameters list. More...
 

Private Member Functions

 _send_PEARMimeMail ()
 
 _send_PHPMailerMail ()
 
 _check_stringEncoding ($string)
 

Private Attributes

 $error = ''
 Last error. More...
 

Detailed Description

CMail class.

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Constructor & Destructor Documentation

CMail::__construct ( )

Class constructor.

Returns
void

Member Function Documentation

CMail::_check_stringEncoding (   $string)
private

Check text encoding.

Parameters
string$string
Returns
string
CMail::_send_PEARMimeMail ( )
private

send email using PEAR Mime Mail library

Returns
boolean success
CMail::_send_PHPMailerMail ( )
private

send email using PHPMailler library

Returns
boolean success
CMail::add_attachment (   $file)

Add an attached file.

Parameters
string$file
Returns
void
CMail::add_attachments (   $files)

Add attached files.

Parameters
array$files
Returns
void
CMail::add_bccRecipient (   $email,
  $name = '' 
)

Add Bcc recipient.

Parameters
string$email
string$name
Returns
void
CMail::add_ccRecipient (   $email,
  $name = '' 
)

Add Cc recipient.

Parameters
string$email
string$name
Returns
void
CMail::add_embeddedImage (   $img)
CMail::add_embeddedImages (   $imgs)

Add embedded images.

Parameters
array$imgs
Returns
void
CMail::add_header (   $name,
  $value 
)

Add suppl. header.

Parameters
string$name
string$value
Returns
void
CMail::add_recipient (   $email,
  $name = '' 
)

Add normal recipient.

Parameters
string$email
string$name
Returns
void
CMail::add_replyTo (   $email,
  $name = '' 
)

Add reply-to.

Parameters
string$email
string$name
Returns
void
CMail::attach_file (   $file)

Alias to add_attachment.

See also
add_attachment()
Parameters
string$file
Returns
void
CMail::attach_files (   $files)

Alias to add_attachments.

See also
add_attachments()
Parameters
array$files
Returns
void
CMail::build_HTMLBody (   $content,
  $cssPath = false 
)

Build HTML body.

Parameters
string$content
string$cssPath
Returns
void
CMail::embed_image (   $img)
CMail::embed_images (   $imgs)

Alias to add_embeddedImages.

See also
add_embeddedImages()
Parameters
array$imgs
Returns
void
CMail::get_contactListAsString (   $list = 'To',
  $container = '<',
  $separator = ',
 
)

Return contact list as string

Parameters
string$list
string$container
string$separator
Returns
string
CMail::get_lastError ( )

Return last error.

Returns
string
CMail::initialise ( )

Initialise object.

Returns
void
CMail::send ( )

Send email.

Returns
boolean success
CMail::set_contentType (   $type)

Set content type.

Parameters
string$type
Returns
void
CMail::set_HTMLBody (   $content)

Set HTML body.

Parameters
string$content
Returns
void
CMail::set_mimeVersion (   $mime)

Set mime version.

Parameters
string$mime
Returns
void
CMail::set_returnPath (   $email)

Set return path.

Parameters
string$email
Returns
void
CMail::set_sender (   $email,
  $name = '' 
)

Set sender.

Parameters
string$email
string$name
Returns
void
CMail::set_subject (   $subject)

Set subject value.

Parameters
string$subject
Returns
void
CMail::set_textBody (   $content)

Set text body.

Parameters
string$content
Returns
void

Member Data Documentation

string CMail::$error = ''
private

Last error.

array CMail::$params = array()

Parameters list.


The documentation for this class was generated from the following file: