如何像雷鸟一样在VB.NET中自动获取SMTP详细信息 [英] How to get SMTP details automatically in VB.NET like in thunderbird

查看:60
本文介绍了如何像雷鸟一样在VB.NET中自动获取SMTP详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经制作了一个VB.NET应用程序.我已经阅读了有关如何使用SMTP从VB.NET发送电子邮件的教程,最后我可以使用它.

I have made a VB.NET application. I have read I tutorials that how to use SMTP to send emails from VB.NET, and finally I got one working.

但是我有一个问题,我不想打扰用户输入他的所有详细信息,例如SMTP服务器名称和所有这些东西.

But I have an issue with it, I don't want to bother the user to input all his details like, SMTP server name and all those stuffs.

我只希望用户输入他们的 Usename Password ,并且所有其他必要的详细信息都可用于该应用程序.就像雷鸟一样,当我在Mozilla雷鸟中输入我的 Usename Password 时,它会自动获取所有其他必需数据并配置我的电子邮件帐户.

I just want that a user input their Usename and Password and all other necessary details gets available for the application. Same like thunderbird, as when I enter my Usename and Password in Mozilla thunderbird it automatically get all the other required data and configures my email account.

现在我要完成的是,用户应填写其详细信息,即 Usename Password &使用其 Usename Password 的电子邮件应发送到程序中指定的电子邮件.

Now what I want to accomplish is that, a user should fill in their details i.e. Usename and Password & the email using their Usename and Password should be sent to the email specified in the program.

要更多地说明我的项目类型,当发生错误时,我希望用户对其进行截图并使用此方法通过电子邮件将其发送给我.这样我就可以调查错误了.

To explain more about the kind of my project is, when an error occurs I want the user to take a screenshot of it and email me it using this method. So that I can look into the bug.

推荐答案

没有自动的方法.每种电子邮件设置都是不同的,并且没有自动配置规范.

There is no automatic way of doing this. Each email setup is different and there is no automated configuration specification.

Thunderbird具有内置的数据库,开发人员可以构建并维护该数据库以提供此功能.请参阅: https://support.mozillamessaging.com/zh-CN/kb/isp-数据库

Thunderbird has a built in database that it's developers built and maintain to offer this functionality. See: https://support.mozillamessaging.com/en-US/kb/isp-database

您可以使用@ domain.tld进行相同的操作,以使用户电子邮件提供商与您的数据库匹配.

You could do the same using the @domain.tld to enable you to match the users email provider with your database.

Microsoft Exchange确实提供了一个自动配置终结点,但是我认为它不会对您有用,因为它不能保证包含SMTP信息.

Microsoft Exchange does offer an automatic configuration endpoint, but I don't think it would prove useful to you as it isn't guaranteed to include SMTP information.

这篇关于如何像雷鸟一样在VB.NET中自动获取SMTP详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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