phpDocumentor mail
encode
[ class tree: mail ] [ index: mail ] [ all elements ]

Class: WindMailBase64

Source Location: /mail/encode/WindMailBase64.php

Class WindMailBase64

Class Overview

Implements interfaces:

完成邮件传输过程中Base64的编码和解码

Base 64 是一种通用的方法,其原理很简单,就是把三个Byte的数据用 4 个Byte表示, 这样,这四个Byte 中,实际用到的都只有前面6 bit,这样就不存在只能传输 7bit 的字符的问题了。 Base 64的缩写一般是“B”,像这封信中的Subject 就是用的 Base64 编码.

Located in /mail/encode/WindMailBase64.php [line 16]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Id$
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Methods

[ Top ]
Method Summary
void   decode()  
void   decodeHeader()  
void   encode()   用Base64方式编码邮件内容
void   encodeHeader()   用Base64方式编码邮件头

[ Top ]
Methods
decode  [line 21]

  void decode( $string, $length, $linebreak  )

Parameters:
   $string: 
   $length: 
   $linebreak: 

API Tags:
Access:  public


[ Top ]
decodeHeader  [line 26]

  void decodeHeader( $string, $charset, $length, $linebread  )

Parameters:
   $string: 
   $charset: 
   $length: 
   $linebread: 

API Tags:
Access:  public


[ Top ]
encode  [line 35]

  void encode( string $string, int $length, string $linebreak  )

用Base64方式编码邮件内容

Parameters:
string   $string: 
int   $length: 
string   $linebreak: 

API Tags:
Access:  public


[ Top ]
encodeHeader  [line 46]

  void encodeHeader( string $string, $charset, int $length, string $linebreak  )

用Base64方式编码邮件头

Parameters:
string   $string: 
int   $length: 
string   $linebreak: 
   $charset: 

API Tags:
Access:  public


[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:37 +0800 by phpDocumentor 1.4.4