PHPMailer禁用SMTP备份 [英] PHPMailer disable smtp backup

查看:81
本文介绍了PHPMailer禁用SMTP备份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 PHPMailer 向我的客户发送电子邮件。我正在使用SMTP连接。我只想发送电子邮件到客户的电子邮件地址。但是PHPMailer会自动将电子邮件保存在我的已发送邮件文件夹中。我想禁用已发送邮件文件夹中的保存电子邮件。

I'm using PHPMailer for send emails to my clients. I'm using SMTP connection. I want to only send email to client email address. But PHPMailer automatically saves email on my Sent Mails folder. I want to disable save emails on sent mails folder.

有可能吗?请帮助我...

Is it possible? Please help me...

推荐答案

PHPMailer不会做任何类似的事情,而基础库也不能。

PHPMailer doesn't do anything similar, and the base library can't either.

如果您有修改的版本,或者操作系统的邮件程序将所有内容保存在一个文件夹中。

If you have a modified version, or your operating system's mailer saves everything in a folder.

否则,它值得尝试删除已发送邮件目录,或将其权限设置为任何人都不可写,或将该文件夹替换为文件。也许这些选项中的任何一个都有帮助。
这些解决方案都是骇人的...干净的方法是打开邮件服务器的配置/或使用的phpmailer修改。

Otherwise it worth a try to remove the 'Sent Mails' directory, or set its permissions to non-writable by anybody, or replace the folder by a file. Maybe any of these options helps. These solutions are hacky... The clean way would be to turn of in the mail server's config/or in the phpmailer's modification you use.

这篇关于PHPMailer禁用SMTP备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆