Located in File: Program_Root/cmailfile.inc.php
Include<a href=mailto:ylee@monet.csc.vill.edu>YLeeDan Potter| Class Variable Summary |
$actual_name
Default Value:
|
$subject
Default Value:
|
$addr_to
Default Value:
|
$text_body
Default Value:
|
$text_encoded
Default Value:
|
$mime_headers
Default Value:
|
$mime_boundary
Default Value:
|
$smtp_headers
Default Value:
|
| Method Summary |
CMailFile ( $subject, $to, $from, $msg, $filename, [$mimetype = "application/octet-stream"], [$mime_filename = false], [$actual_name = ""], [$headers = ""] )
Constructor |
attach_file ( $filename, $mimetype, $mime_filename )
Attach file |
encode_file ( $sourcefile )
Encode the file |
sendfile ( )
Send the file |
write_body ( $msgtext )
Write bodytext |
write_mimeheaders ( $filename, $mime_filename )
Write the MIME Headers |
write_smtpheaders ( $addr_from )
Write the SMTP Headers |
my_chunk_split ( $str )
Chunk split |
| Variable Detail |
| Function Detail |
CMailFile ( $subject, $to, $from, $msg, $filename, [$mimetype = "application/octet-stream"], [$mime_filename = false], [$actual_name = ""], [$headers = ""] )
ConstructorInitializes the complete object and sets all values for sending Added option to add headers
$subject: subjectYLeeHerman Suijsattach_file ( $filename, $mimetype, $mime_filename )
Attach fileThis method attaches the file to the messagetext Problem with actual name corrected
YLeeHerman Suijsencode_file ( $sourcefile )
Encode the fileProperly encode the file before sending
YLeesendfile ( )
Send the filewrite_body ( $msgtext )
Write bodytextwrite_mimeheaders ( $filename, $mime_filename )
Write the MIME Headerswrite_smtpheaders ( $addr_from )
Write the SMTP Headersmy_chunk_split ( $str )
Chunk splitThis is an extra function added to make it work with all PHP versions
YLee