最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php mail邮件发送带附件功能。
时间:2022-06-24 22:07:08 编辑:袖梨 来源:一聚教程网
| 代码如下 | 复制代码 |
|
$pdfname="test.pdf"; $text = base64_encode($text); //用base64方法把它编码 $subject = $pdfname; //标题 //附件 $read=file_get_contents($pdfname); $read = base64_encode($read); //用base64方法把它编码 //现在我们可以建立邮件的主体 ------=_$boundary ------=_$boundary2 $text ------=_$boundary2-- ------=_$boundary $read -------=_$boundary--"; if(mail($to, $subject,$body,$headers)) |
|
?>
相关文章
- 《幻兽帕鲁》捕捉塞赫麦特攻略分享 08-07
- 奥拉星心无分享 奥拉星心无如何 08-07
- 奥拉星心无如何样 奥拉星心无介绍 08-07
- 诡秘之主手游灰雾源堡塔罗会成员全解析诡秘之主手游塔罗会角色设定与职能详细说明 08-07
- 《燕云十六声》莜麦悠悠任务攻略-莜麦悠悠任务完成方法详解 08-07
- 热血江湖觉醒新手首日开荒速成指南 08-07