我用php以前给写过一个webmail前台,后台sendmail,unix平台
看封带附件邮件内容源码:
This is a multi-part message in MIME format.
--=====_Dragon171172072185_=====
Content-Type: text/plain; charset="GB2312"
Content-Transfer-Encoding: quoted-printable
song=A3=AC=C4=FA=BA=C3=A3=A1
aaa
=D6=C2
=C0=F1=A3=A1
zxp
zxp@1234.com
--=====_Dragon171172072185_=====
Content-Type: image/jpeg; name="DSC00027.JPG"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="DSC00027.JPG"
/9j/4AAQSkZJRgABAgEASABIAAD/7Q0cUGhvdG9zaG9wIDMuMAA4QklNA+0KUmVzb2x1dGlvbgAA
AAAQAEgAAAABAAIASAAAAAEAAjhCSU0EDRhGWCBHbG9iYWwgTGlnaHRpbmcgQW5nbGUAAAAABAAA
AB44QklNBBkSRlggR2xvYmFsIEFsdGl0dWRlAAAAAAQAAAAeOEJJTQPzC1ByaW50IEZsYWdzAAAA
CQAAAAAAAAAAAQA4QklNBAoOQ29weXJpZ2h0IEZsYWcAAAAAAQAAOEJJTScQFEphcGFuZXNlIFBy
aW50IEZsYWdzAAAAAAoAAQAAAAAAAAACOEJJTQP1F0NvbG9yIEhhbGZ0b25lIFNldHRpbmdzAAAA
SAAvZmYAAQBsZmYABgAAAAAAAQAvZmYAAQChmZoABgAAAAAAAQAyAAAAAQBaAAAABgAAAAAAAQA1
AAAAAQAtAAAABgAAAAAAAThCSU0D+BdDb2xvciBUcmFuc2ZlciBTZXR0aW5ncwAAAHAAAP//////
Content-Type: 内容头信息,指出内容格式
Content-Transfer-Encoding: 内容编码格式,一般文本是qp,网页等是base64
……
php我把内容用copy出给一临时ftp目录,供其下载,也实现了
可惜用户是基于系统用户,限制了用户量,不然也拿出来献丑啦
感觉楼上的老兄3000块不贵