PHPMailer disable smtp backup

谁说我不能喝 提交于 2019-12-11 19:37:31

问题


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...


回答1:


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.

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.



来源:https://stackoverflow.com/questions/22045820/phpmailer-disable-smtp-backup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!