如何确定smtp服务器是否保存发送邮件? [英] How to determine the smtp server save send mails or not?

查看:631
本文介绍了如何确定smtp服务器是否保存发送邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用SMTP服务器发送邮件时,如何确定smtp服务器是否依赖并将发送邮件保存到已发送"文件夹中.

When sending mail using SMTP server, how to determine whether the smtp server rely and save send mails to "Sent" folder or not.

示例

使用GMail smtp服务器(smtp.gmail.com)发送邮件时,GMail服务器会自动依赖并将邮件保存到已发送"文件夹中.但是很少有其他服务器(例如Exchange,GoDaddy等)无法将邮件保存到已发送"文件夹中.我们必须使用IMAP附加命令将邮件手动附加到相应的文件夹中.

When sending mail using GMail smtp server ( smtp.gmail.com ), GMail server automatically rely and save the mail to "Sent" folder. But few other server like Exchange, GoDaddy,.. these are the servers not saving the mail to "Sent" folder. We have to manually append the message to respective folder using IMAP append command.

如果我能够确定服务器是否不将发送邮件保存到已发送"文件夹中,则可以调用IMAP附加命令将邮件保存到已发送"文件夹中

If I able to find whether the server won't save send mails to "Sent" folder means, I can invoke IMAP append command to save the mail to "Sent" folder

推荐答案

您找不到.但是您可以通过向用户发送密件抄送使gmail和godaddy的行为几乎兼容. Gmail会自动执行此操作,但是如果您明确执行此操作,则用户仍然只能获得一个副本.

You cannot find that out. But you can make gmail and godaddy behave almost compatibly by sending a Bcc to the user. Gmail does that automatically, but if you do it explicitly the user still gets only one copy.

当您通过SMTP发送邮件时,请添加"rcpt至:< myaddress@doma.in>",然后gmail和godaddy都会将该邮件写到某个过滤器中.如果幸运的话,该消息甚至在正确的文件夹中.

When you send mail via SMTP, add "rcpt to:<myaddress@doma.in>", and both gmail and godaddy will write the message to some filter. If you're lucky the message is even in the right folder.

这篇关于如何确定smtp服务器是否保存发送邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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