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

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

问题描述

我正在为手机开发一个轻量级的 Gmail 客户端,通过 IMAP 访问 Gmail.我想从草稿文件夹发送草稿,但它有一些附件,我无法下载所有附件以通过 SMTP 发送.

I am developing a lightweight Gmail client for mobile phones, accessing Gmail by IMAP. I want to send a draft from the Drafts folder, but it has some attachments and I cannot download all of them to send it by SMTP.

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

Moving/copying it to "Sent Mail" does not send it, just moves it to that folder.

如何在不从客户端获取所有内容和附件的情况下直接发送草稿?是否有任何 IMAP 命令可以做到这一点?

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

推荐答案

IMAP 是一个邮箱协议.它(本机)不支持发送邮件,只支持访问它.为了发送邮件,您必须使用 SMTP.可能有一个用于发送邮件的 IMAP 扩展,并且 Google Mail 可能支持该扩展,但我对此表示怀疑.因此,如果您想发送带有附件的电子邮件,您实际上必须拥有可供您发送的邮件的全部内容.

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天全站免登陆