E-mail generic object.
More...
|
| __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=', ') |
|
E-mail generic object.
Engine / Object Library
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Version
- 1.0.1.1
- Date
- Creation: Jun 2012
-
Modification: Oct 2021
- Copyright
- 2012 - 2021 CaMykS Team
- Note
- This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. CMail class.
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
◆ __construct()
Class constructor.
- Returns
- void
◆ initialise()
Initialise object.
- Returns
- void
◆ set_mimeVersion()
CMail::set_mimeVersion |
( |
|
$mime | ) |
|
Set mime version.
- Parameters
-
- Returns
- void
◆ set_contentType()
CMail::set_contentType |
( |
|
$type | ) |
|
Set content type.
- Parameters
-
- Returns
- void
◆ set_returnPath()
CMail::set_returnPath |
( |
|
$email | ) |
|
Set return path.
- Parameters
-
- Returns
- void
◆ add_header()
CMail::add_header |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
Add suppl. header.
- Parameters
-
- Returns
- void
◆ set_sender()
CMail::set_sender |
( |
|
$email, |
|
|
|
$name = '' |
|
) |
| |
Set sender.
- Parameters
-
- Returns
- void
◆ add_replyTo()
CMail::add_replyTo |
( |
|
$email, |
|
|
|
$name = '' |
|
) |
| |
Add reply-to.
- Parameters
-
- Returns
- void
◆ add_recipient()
CMail::add_recipient |
( |
|
$email, |
|
|
|
$name = '' |
|
) |
| |
Add normal recipient.
- Parameters
-
- Returns
- void
◆ add_ccRecipient()
CMail::add_ccRecipient |
( |
|
$email, |
|
|
|
$name = '' |
|
) |
| |
Add Cc recipient.
- Parameters
-
- Returns
- void
◆ add_bccRecipient()
CMail::add_bccRecipient |
( |
|
$email, |
|
|
|
$name = '' |
|
) |
| |
Add Bcc recipient.
- Parameters
-
- Returns
- void
◆ set_subject()
CMail::set_subject |
( |
|
$subject | ) |
|
Set subject value.
- Parameters
-
- Returns
- void
◆ set_textBody()
CMail::set_textBody |
( |
|
$content | ) |
|
Set text body.
- Parameters
-
- Returns
- void
◆ set_HTMLBody()
CMail::set_HTMLBody |
( |
|
$content | ) |
|
Set HTML body.
- Parameters
-
- Returns
- void
◆ build_HTMLBody()
CMail::build_HTMLBody |
( |
|
$content, |
|
|
|
$cssPath = false |
|
) |
| |
Build HTML body.
- Parameters
-
string | $content | |
string | $cssPath | |
- Returns
- void
◆ add_attachment()
CMail::add_attachment |
( |
|
$file | ) |
|
Add an attached file.
- Parameters
-
- Returns
- void
◆ attach_file()
CMail::attach_file |
( |
|
$file | ) |
|
◆ add_attachments()
CMail::add_attachments |
( |
|
$files | ) |
|
Add attached files.
- Parameters
-
- Returns
- void
◆ attach_files()
CMail::attach_files |
( |
|
$files | ) |
|
◆ add_embeddedImage()
CMail::add_embeddedImage |
( |
|
$img | ) |
|
Add an embed image.
- Parameters
-
- Returns
- void
◆ embed_image()
CMail::embed_image |
( |
|
$img | ) |
|
◆ add_embeddedImages()
CMail::add_embeddedImages |
( |
|
$imgs | ) |
|
Add embedded images.
- Parameters
-
- Returns
- void
◆ embed_images()
CMail::embed_images |
( |
|
$imgs | ) |
|
◆ send()
Send email.
- Returns
- boolean success
◆ get_lastError()
Return last error.
- Returns
- string
◆ get_contactListAsString()
CMail::get_contactListAsString |
( |
|
$list = 'To' , |
|
|
|
$container = '<' , |
|
|
|
$separator = ' , |
|
|
' |
|
|
) |
| |
Return contact list as string
- Parameters
-
string | $list | |
string | $container | |
string | $separator | |
- Returns
- string
◆ _send_PEARMimeMail()
CMail::_send_PEARMimeMail |
( |
| ) |
|
|
private |
send email using PEAR Mime Mail library
- Returns
- boolean success
◆ _send_PHPMailerMail()
CMail::_send_PHPMailerMail |
( |
| ) |
|
|
private |
send email using PHPMailler library
- Returns
- boolean success
◆ _check_stringEncoding()
CMail::_check_stringEncoding |
( |
|
$string | ) |
|
|
private |
Check text encoding.
- Parameters
-
- Returns
- string
◆ $params
array CMail::$params = array() |
◆ $error
string CMail::$error = '' |
|
private |
The documentation for this class was generated from the following file: