c#中的服务器名称验证电子邮件 [英] email validation by their server name in c#

查看:72
本文介绍了c#中的服务器名称验证电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好;

目前我正在处理窗口应用程序,如outlook,发送,接收电子邮件。在这个项目中使用pop3服务器和smtp。



我有一个表格有四个文本字段:

1 txtEmail,

2 txtpassword,

3 txtpopserveraddress。

4 txtSSLport

i想要当用户在txtemail中输入他们的电子邮件时user@gmail.com然后弹出服务器地址和SSL端口自动设置自己的文本字段,如pop服务器地址文本字段= pop.gmail.com和SSL端口文本字段= 995;同样适用于雅虎,Hotmail等......它将如何完成?请尽快给我指导一下?



我非常感谢你的回答。



提前感谢!

hi everyone;
Currently i am working on window application like outlook, for sending,receiving email. using pop3 server and smtp.

in this project I have a form which have four text fields these are:
1 txtEmail,
2 txtpassword,
3 txtpopserveraddress.
4 txtSSLport
i want that when user enter their email in "txtemail" like user@gmail.com then pop server address and SSL port automatically set their own text fields like in pop server address text field=pop.gmail.com and SSL port text fields=995; and similarly for yahoo,hotmail and so on... how it will done? please guide me about as soon as possible?

I really appreciate your answer.

thanks in advance!

推荐答案

添加此活动:



Add this event:

private void textBox1_TextChanged(object sender, EventArgs e)
    {
        //
        // This changes the main window text when you type into the TextBox.
        //
        this.Text = textBox1.Text;
    }







在此活动中添加电子邮件验证并在有效案例中获取所需的详细信息并显示到其他SSl,如文本框




In this event add email validation and on valid case fetch the required details and display to other SSl like textbox


这篇关于c#中的服务器名称验证电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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