如何使用IMAP发送邮件? [英] How can you send mail using IMAP?

查看:502
本文介绍了如何使用IMAP发送邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款适用于手机的轻量级Gmail客户端。它通过IMAP访问Gmail。然后,我想从草稿文件夹发送草稿,但它有一些附件,我无法下载所有这些文件以通过SMTP发送。



移动/复制它到发送邮件不会发送它,只是将其移动到该文件夹​​。



如何直接发送草稿而不从所有内容和附件中提取客户?有没有什么IMAP命令来做到这一点?

解决方案

IMAP是一种邮箱协议。它不(本地)支持发送邮件,只能访问它。为了发送邮件,您必须使用SMTP。它有可能存在用于发送邮件的IMAP扩展,并且Google Mail可能支持该扩展,但我对此表示怀疑。因此,如果您想发送带有附件的电子邮件,则必须实际上将该邮件的完整内容发送给您。

I'm developing a lightweight Gmail client for mobile phones. It access Gmail by IMAP. Then I want to send a draft from the Drafts folder, but it has some attachments and I can't download all of them to send it by SMTP.

Moving/copying it to "Sent Mail" doesn't send it, just moves it to that folder.

How can I send a Draft directly without fetch all the content and attachments from the client? Is there any IMAP command to do it?

解决方案

IMAP is a mailbox protocol. It does not (natively) support sending mail, only accessing it. In order to send mail you must use SMTP. Its possible that there is an IMAP extension for sending mail, and its possible that Google Mail supports that extension, but I doubt it. Hence, if you want to send an email with attachments, you must actually have the full content of the message available to you to send.

这篇关于如何使用IMAP发送邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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