最新下载
热门教程
- 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)) |
|
?>
相关文章
- 搜韵词格校验官网入口 搜韵词格校验官方网站入口 04-08
- 搜韵词格校验检测工具 搜韵词格校验(免费版)入口 04-08
- 盘搜搜网页版入口 盘搜搜网页版本在线 04-08
- 《Daemons of the Shadow Realm》首映评测 04-08
- 这一地区多款大作恐遭Steam下架 《女神异闻录5:皇家版》竟被列为禁品 04-08
- 《Demon Tides》是2026年迄今最佳平台游戏之一 04-08