Class mail
class to send mailīs as text/html with attachment's support mail() from php and standard smtp with auth.
Methods summary
public
|
|
public
|
|
public
&
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
Properties summary
private
|
$m_logger
|
#
null
|
private
|
$m_smtp_connection
|
#
null
|
private
array
|
$m_mime
|
#
array(
'hqx' => "application/macbinhex40",
'pdf' => "application/pdf",
'pgp' => "application/pgp",
'ps' => "application/postscript",
'eps' => "application/postscript",
'ai' => "application/postscript",
'rtf' => "application/rtf",
'xls' => "application/vnd.ms-excel",
'pps' => "application/vnd.ms-powerpoint",
'ppt' => "application/vnd.ms-powerpoint",
'ppz' => "application/vnd.ms-powerpoint",
'doc' => "application/vnd.ms-word",
'dot' => "application/vnd.ms-word",
'wrd' => "application/vnd.ms-word",
'tgz' => "application/x-gtar",
'gtar' => "application/x-gtar",
'gz' => "application/x-gzip",
'php' => "application/x-httpd-php",
'php3' => "application/x-httpd-php",
'js' => "application/x-javascript",
'msi' => "application/x-msi",
'swf' => "application/x-shockwave-flash",
'rf' => "application/x-shockwave-flash",
'tar' => "application/x-tar",
'zip' => "application/zip",
'au' => "audio/basic",
'mid' => "audio/midi",
'midi' => "audio/midi",
'kar' => "audio/midi",
'mp2' => "audio/mpeg",
'mp3' => "audio/mpeg",
'mpga' => "audio/mpeg",
'voc' => "audio/voc",
'vox' => "audio/voxware",
'aif' => "audio/x-aiff",
'aiff' => "audio/x-aiff",
'aifc' => "audio/x-aiff",
'wma' => "audio/x-ms-wma",
'ra' => "audio/x-pn-realaudio",
'ram' => "audio/x-pn-realaudio",
'rm' => "audio/x-pn-realaudio",
'ogg' => "audio/x-vorbis",
'wav' => "audio/wav",
'bmp' => "image/bmp",
'dib' => "image/bmp",
'gif' => "image/gif",
'jpg' => "image/jpeg",
'jpe' => "image/jpeg",
'jpeg' => "image/jpeg",
'jfif' => "image/jpeg",
'pcx' => "image/pcx",
'png' => "image/png",
'tif' => "image/tiff",
'tiff' => "image/tiff",
'ico' => "image/x-icon",
'pct' => "image/x-pict",
'txt' => "text/plain",
'csv' => "text/csv",
'htm' => "text/html",
'html' => "text/html",
'xml' => "text/xml",
'xsl' => "text/xml",
'dtd' => "text/xml-dtd",
'css' => "text/css",
'c' => "text/x-c",
'c++' => "text/x-c",
'cc' => "text/x-c",
'cpp' => "text/x-c",
'cxx' => "text/x-c",
'h' => "text/x-h",
'h++' => "text/x-h",
'hh' => "text/x-h",
'hpp' => "text/x-h",
'mpg' => "video/mpeg",
'mpe' => "video/mpeg",
'mpeg' => "video/mpeg",
'qt' => "video/quicktime",
'mov' => "video/quicktime",
'avi' => "video/x-ms-video",
'wm' => "video/x-ms-wm",
'wmv' => "video/x-ms-wmv",
'wmx' => "video/x-ms-wmx",
'' => "application/octet-stream",
)
|
public
integer
|
$m_error
errorcode |
#
0
|
public
string
|
$m_errormsg
error message |
#
""
|
public
string
|
$m_from
sender |
#
""
|
public
string
|
$m_subject
subject of mail |
|
public
string
|
$m_to
receivers |
#
""
|
public
string
|
$m_cc
receivers |
#
""
|
public
string
|
$m_bcc
receivers |
#
""
|
public
string
|
$m_msg
msg of mail |
#
""
|
public
string
|
$m_reply_to
receivers for answers |
#
""
|
public
string
|
$m_return_path
return path for undelivered emails |
#
""
|
public
integer
|
$m_priority
1 = High, Normal = 3, Low = 5 (work only if the recipient client support) |
#
3
|
public
boolean
|
$m_confirm_reading
for the reading confirmations (work only if the recipient client support) |
#
false
|
public
string
|
$m_msg_alt
alternative msg (plain text) of html mail |
#
""
|
public
string
|
$m_attachment
files to attach => /home/user/docu.pdf or docu.pdf|/home/user/docu.pdf (use , to separate) |
#
""
|
public
string
|
$m_type
type of mail |
#
"text"
|
public
string
|
$m_mailer
name of mailer |
#
""
|
public
string
|
$m_charset
charset allowed "ISO-8859-1" or "UFT-8"; |
#
"UTF-8"
|
public
string
|
$m_encoding
transfer encoding |
#
"8bit"
|
public
string
|
$m_line_seperator
char's to seperate header |
#
"\r\n"
|
public
string
|
$m_smtp
is smtp set, the class use own mail functions otherwise mail() from php |
#
""
|
public
integer
|
$m_smtp_port
port of smtp |
#
25
|
public
string
|
$m_smtp_usr
user for smtp auth. |
#
""
|
public
string
|
$m_smtp_pw
pw of smtp auth. |
#
""
|
public
mixed
|
$m_trace_delAfter
size before trace file will set to zero |
#
"1024K"
|
public
string
|
$m_trace_path
path for trace file |
#
""
|
public
string
|
$m_trace_file
filename of tracefile |
#
""
|
public
string
|
$m_host
host name for HELO / EHLO default is servername |
#
""
|
public
integer
|
$m_timeout_s
connection timeout |
#
5
|
public
integer
|
$m_socket_timeout_s
socket timeout |
#
5
|
public
string
|
$m_trace_critical_section_id
enable critical section for write trace files |
#
null
|
public
string
|
$m_trace_critical_section_path
path to share the critical section for write trace files |
#
"./"
|
public
integer
|
$m_trace_critical_section_maxlock_ms
max lock time for zombie processes |
#
1000
|
public
integer
|
$m_trace_critical_section_sleep_ms
sleep for retry enter critical section |
#
10
|
public
boolean
|
$m_trace_sqlite
write the trace to a SQLite file instead of a text file |
#
false
|