Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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!
Posted
Comments
Richard MacCutchan 7-Apr-14 12:25pm    
Add an event handler that checks the contents of the textbox for a valid email address. When the address is valid then you can fill in the details in the other boxes.

1 solution

Add this event:

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



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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900