从浏览器捕获通过 Outlook 发送的电子邮件
我希望能够捕获通过 Outlook 发送并从浏览器 mailto 链接发起的电子邮件,以便我可以将副本保存回我的 Web 应用程序。
我可以使用 C# 进行购买,我目前正在使用 C# 构建一个 Web 应用程序,但理想情况下希望它可以从 php 应用程序中完成,而无需依赖特定的 Web 浏览器。
到目前为止,我最好的选择似乎是为 Outlook 构建一个插件,它可以检测相关标志,并在通过 Web 服务连接发送回应用程序后保存电子邮件的副本。
我没有丰富的处理 Office 加载项的经验,并且有兴趣知道是否可以通过 mailto 链接传递自定义信息,然后在新消息启动时使用加载项读取它。
我似乎还遇到一个问题,即在撰写电子邮件时我无法访问某些信息,并且没有可靠的方法将特定的撰写中电子邮件与保存在发件箱中然后移至的电子邮件相匹配收件箱。
我目前正在使用 Visual Studio 2010 和 Office 2010。
I want to be able to capture a email that gets sent via outlook and initiated from a browser mailto link so that I can save a copy back to my web application.
I can get buy with c#, I am currently building a web application using c# but would ideally like it to be possible to do from a php application without needing to rely on a specific web browser.
So far it seems that my best option will be to build an add-in for outlook that can detect the relevant flag and save a copy of the email once sent back to the application via a webservice connection.
I don't have a great deal of experience dealing with Office add-ins and am interested to know if I can pass custom information through the mailto link and then read it using the add-in when new message is started.
I also seem to have an issue where I don't have access to certain information while the email is being composed and don't have a reliable way to match that particular in-composition email to the email that gets saved in outbox then moved to inbox.
I am working with Visual Studio 2010 and Office 2010 at the moment.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您通常无法执行此操作,因为当您提供 mailto 链接时,您实际上是在请求用户计算机上的默认邮件程序发送邮件。因为您不知道(也不应该愿意知道)这是什么程序,所以您无法控制发送的邮件。
一种解决方案是在您的 Web 应用程序中设置一个特殊页面,用户可以在其中撰写电子邮件。撰写后,您可以将此格式提供给 SMTP 服务器进行传送,并且可以将其存储在您喜欢的 Web 应用程序中的任何位置。这里的要点是,您想要保持控制,并且拥有 mailto 链接将发送对将电子邮件发送到不同程序的控制。
You can't do this normally because when you supply a mailto link you're actually requesting the default mail program on the user's computer to send the mail. Because you don't know (and shouldn't be willing to know) which program this is you have no control over the mail sent.
One solution would be to have a special page in you web application in which your user can compose it's email. After composing you could supply this format to the SMTP server for delivery and you could store it wherever in your webapp you like. The point here is that you want to stay in control and having a mailto link will send the control over sending an email to a different program.