1,emailclass.php
= "--==================_846811060==_" Cmailfile (,,,,,,= "Application/octet-stream",=->subject =->addr_to =->smtp_headers =->write_smtpheaders (->text_body =->write_body (->text_encoded =->attach_file (,,,->mime_headers =->write_mimeheaders (,Attach_file (,,,=->encode_file (()== "--" .->mime_boundary. "\ n"=. "Content-type:".. "; Name=\ "\ "; \ n"=. "Content-transfer-encoding:base64\n"=. "Content-disposition:attachment; Filename=\ "\ "\ n"=.. "\ n"=. "--" .->mime_boundary. "--" . "\ n" Encode_file (((=(, "R"=(,(=((( =->smtp_headers.-=->text_body.-(->addr_to,->subject,,. Jbxue.Write_body (= "--" .->mime_boundary. "\ n"=. "Content-type:text/plain; Charset=\ "us-ascii\" \ n "=.. "\ n" Write_mimeheaders (,()== "mime-version:1.0\n"=. "Content-type:multipart/mixed;"=. "Boundary=\"->mime_boundary\ "\ n"=. "Content-transfer-encoding:7bit\n"=. "X-attachments:; \ n " Write_smtpheaders (= "From:\ n "=. "Reply-to:\ n "=. "X-mailer:php3\n"=. "X-sender:\ n " sendfile (); $subject--Subject $sendto--recipient address $replyto--reply to address $message--Letter content $filename--attachment file name $downfilename--Download file Name $mimetype--MIME type?>< span="">
(' emailclass.php ' = "Test send email"
= ' Abc@163.com '
= ' cdf@163.com '
= "Test send email content"
= ' test.jpg '
< span $mimetype span> = "Image/jpeg"
= cmailfile (,,,,,
->?>
Articles you may be interested in:
PHP sends a class with an attachment message
PHP socket uses SMTP to send mail with attachments
Phpmailer sending an example with an attachment message
http://www.bkjia.com/PHPjc/729844.html www.bkjia.com true http://www.bkjia.com/PHPjc/729844.html techarticle 1,emailclass.php = "--==================_846811060==_" Cmailfile (,,,,,, = "application/octet-stream", =-subje ct =-addr_to =-smtp_headers =-write_smtpheaders (-text_bo ...