Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 5th, 2008, 04:30 AM
Registered User
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default help ( open mail account)

I want to open the Internet explorer on the yahoo mail account depending on the username and password were entered by the user into textboxes and when click on a button the internet explorer will open on the user account after this page had opened the user can access his account such as sending messages and open inbox messages to read the messages. in another word i want to make user login to his mail through windows application.

  my code:

private void button1_Click(object sender, EventArgs e)


string id = textBox1.Text;

string pass = textBox2.Text;



private void login(x,y)



please tell me what is the appropriate code that should be put in the function login(x,y) to work as i want.

Old March 5th, 2008, 05:30 AM
samjudson's Avatar
Friend of Wrox
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts

I doubt very much you can.

If you want to open IE with a given URL then you can use the System.Diagnostics.Process class to load the URL, e.g.:


If you know a URL that can redirect to Yahoo mail then you can use that, but I doubt there is a URL that will automatically log the user in as this would be a huge security hole.

/- Sam Judson : Wrox Technical Editor -/
Old March 5th, 2008, 11:51 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma

You said it Sam.

To forgo Yahoo's login page calls for a black hat handy :P.

Merawwa, I would advise you to stay clean and straightforward, go thru the channel, use Yahoo's authentication API. Use them to let the user login normally, (now here you can have a bit of a say over how much of the login page you wanna show, modify the browser window parameters), then you can redirect to mail.yahoo.com to get to the inbox or where ever it is you wanna redirect your user to.

Learn about these APIs here


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is my IUSR Account? rit01 Classic ASP Basics 1 December 4th, 2005 05:20 PM
Urgent! mail account in ASP.net using C#.net vicman BOOK: ASP.NET Website Programming Problem-Design-Solution 0 February 18th, 2005 08:38 AM
How can I import MS outlook e-mail account in C# hytechpro C# 0 November 30th, 2004 02:56 AM
How to open a new mail from a Windows App Johan C# 1 June 16th, 2003 10:45 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.