如何在VB 2010及更高版本中收到带附件(图片)的电子邮件 [英] How can I receive an email with an attachment (picture) in VB 2010 and later

查看:70
本文介绍了如何在VB 2010及更高版本中收到带附件(图片)的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问...我想在visual basic(2015)制作一个程序,它会收到一封带有附件(图片)的电子邮件(outlook,hotmail,gmail),然后在图片框中打开它。 />


这可能吗?如果有,任何人都可以帮我提供代码吗?



感谢



我尝试过的:



我尝试在网上找到的几个代码,但是没有它们似乎可以工作

解决方案

当然,这是可能的。这是实用的吗?没有。



您将为您想要支持的每个邮件客户端编写代码。或者,完全绕过这些,你将编写自己的电子邮件客户端。无论你走哪条路,都不是一件容易的事。



当然你找到的代码不起作用。机会很好,你不明白它并没有真正做你所描述的一切。



你不会找到任何你想做什么的代码。这不是那么有用也不实用。


请参阅检索电子邮件和VB.NET中的Parse电子邮件 - 教程 [ ^ ]。

I wanted to ask ...I want to make a program in visual basic (2015) that it will receive an email (outlook,hotmail,gmail) with an attachment (picture) and open it in a picturebox.

Is this possible? If yes can anyone help me with the code?

Appreciate

What I have tried:

I try several codes that i found online but non of them seems to work

解决方案

Sure, it's possible. Is it practical? No.

You'd be writing code for each mail client you wanted to support. Or, bypassing those entirely, you'd be writing your own email client. Whichever route you take, it's NOT a trivial thing to do.

Of course the code you found doesn't work. Chances are good you don't understand it and it doesn't really do what you're describing in the first place.

You're not going to find any code for what you want to do. It's just not that useful nor practical.


See Retrieve Email and Parse Email in VB.NET - Tutorial[^].


这篇关于如何在VB 2010及更高版本中收到带附件(图片)的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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