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:
|
Methods
|
Methods
void decode(
$string,
$length,
$linebreak
)
|
|
Parameters:
|
$string: |
|
|
$length: |
|
|
$linebreak: |
|
API Tags:
void decodeHeader(
$string,
$charset,
$length,
$linebread
)
|
|
Parameters:
|
$string: |
|
|
$charset: |
|
|
$length: |
|
|
$linebread: |
|
API Tags:
void encode(
string
$string, int
$length, string
$linebreak
)
|
|
用Base64方式编码邮件内容
Parameters:
string |
$string: |
|
int |
$length: |
|
string |
$linebreak: |
|
API Tags:
void encodeHeader(
string
$string,
$charset, int
$length, string
$linebreak
)
|
|
用Base64方式编码邮件头
Parameters:
string |
$string: |
|
int |
$length: |
|
string |
$linebreak: |
|
|
$charset: |
|
API Tags:
|
|