Unclassified NewsBoard Code Reference

mime_create_class class

Handles a MIME-encoded e-mail

Methods:

add_attach Add an attachment to the e-mail
$file is the name of the file to be added, $ctype is its content-type
add_bcc Add a receipient to the e-mail
add_cc Add a receipient to the e-mail
add_to Add a receipient to the e-mail
build Build the entire e-mail
If you already have a mail source code, you can specify it here and
only the from/to.../subject/date headers will be added.
build_attach Build the attachments part of the mail body
build_msg Build the message part of the mail body
get_headers_as_text Convert ctype, cenc... array elements into readable text-header form
reset_rcpts No description available.
set_from Set sender of this e-mail
set_header Set a header value in the original (passed) header array
set_msg_html Set the html body of this e-mail
set_msg_text Set the plain text body of this e-mail
set_reply Set reply address of this e-mail
set_subject Set subject of this e-mail

Public fields:

bcc_self  –  default: false
body  –  default: ''
body_attach  –  default: array()
body_msg  –  default: array()
body_msg_html  –  default: array()
body_msg_text  –  default: array()
hdr_bcc  –  default: array()
hdr_cc  –  default: array()
hdr_date  –  default: 0
hdr_from  –  default: ''
hdr_reply  –  default: false
hdr_subject  –  default: ''
hdr_to  –  default: array()
headers  –  default: array()
html_present  –  default: false
smtp_from  –  default: ''
smtp_to  –  default: array()
text_present  –  default: false

Implementation file: unb_lib/mime-create.lib.php, line 16

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.