小猫咪邮件在线发送系统源码v1.1,支持添加附件

发布于:2024-05-05 ⋅ 阅读:(37) ⋅ 点赞:(0)


一、详细介绍

小猫咪邮件在线发送系统源码v1.1,支持添加附件

一款免登录发送邮件,支持发送附件,后台可添加邮箱,前台可选择发送邮箱

网站数据采取本地保存,所以使用前请给网站修改权限,否则很多功能将无法使用

安装教程:

1.上传服务器或者主机

2.登录后台,添加发送邮箱即可

3.强烈建议修改后台地址

4.后台地址:域名/admin.php 默认账号密码为admin/123456

5.网站数据采取本地保存,所以使用前请给网站修改权限,否则很多功能将无法使用

二、效果展示

1.部分代码

代码如下(示例):

if (isset($_FILES['file'])) {
$tmpFilePath =$_FILES['file']['tmp_name'];
$fileData = file_get_contents($tmpFilePath);
$fileData = file_get_contents($tmpFilePath);
$postdata = array(
"smtp" => $config['mailboxes'][$mailbox]['smtp'], 
"username" => $config['mailboxes'][$mailbox]['username'], 
"password" => $config['mailboxes'][$mailbox]['password'],
"secu" => $config['mailboxes'][$mailbox]['secu'],
"port" => $config['mailboxes'][$mailbox]['port'],
"sendname" => $sendname,
"to" => $to,
"body" => $body,
'file' => new CURLFile($tmpFilePath,$_FILES['file']['type'], $_FILES['file']['name']),
 "subject" => $subject
);
}else
{
$postdata = array(
"smtp" => $config['mailboxes'][$mailbox]['smtp'], 
"username" => $config['mailboxes'][$mailbox]['username'], 
"password" => $config['mailboxes'][$mailbox]['password'],
"secu" => $config['mailboxes'][$mailbox]['secu'],
"port" => $config['mailboxes'][$mailbox]['port'],
"sendname" => $sendname,
"to" => $to,
"body" => $body,
"subject" => $subject
);
}

2.效果图展示

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述


三、学习资料下载

蓝奏云:https://qumaw.lanzoul.com/iqGrJ1wz3asf