473,416 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

profiles in pop3 email

Hello Everyone,

I really need help in this email. I am using pop3 service to connect to
microsoft exchange. I have two profiles defined
in microsoft exchange.
One is west1 and another one is west2.

When I am trying to connect to west1.
I can succesfully connect to the excahnge mail box, but if i try to connect
to another west2 profile then
I get an error that server does not exists. Although in microsoft exchange
itself, I can successfully connect to both the profiles.
I am having problem in the code.
Below is the code for connecting to the server, but I don't know where
should I define the profile.

private void serverConnection(string userName, string password, string
serverName, DataRow dr1, DataRow dr)
{

long msgNumber;
string strMessage;
Pop3 obj = new Pop3();
obj.Connect(serverName, userName, password);

}
public void Connect(string server, string username,
string password)
{
string message;
string response;

Connect(server, 110);
response = Response();
if (response.Substring(0, 3) != "+OK")
{
throw new Pop3Exception(response);
}

message = "USER " + username + "\r\n";
Write(message);
response = Response();
if (response.Substring(0, 3) != "+OK")
{
throw new Pop3Exception(response);
}

message = "PASS " + password + "\r\n";
Write(message);
response = Response();

if (response.Substring(0, 3) != "+OK")
{
throw new Pop3Exception(response);
}

}
In the show profile box of microsoft outlook, I have defined under "When
starting microsoft outlook use this profile" west2.

Can anyone please tell me where can I define the profile and succesfully
connect to the excahnge server or if there is any other way to connect to
different profiles.

Any help will be greatly appreciated.


Mar 7 '07 #1
1 1313
Don't multi-post. If you're going to post to multiple groups, post them all
at once, so if someone answers it, the other groups can see the answer and
people there know they can spend their time helping someone else.

Robin S.
------------------------------
"Vinki" <Vi***@discussions.microsoft.comwrote in message
news:80**********************************@microsof t.com...
Hello Everyone,

I really need help in this email. I am using pop3 service to connect to
microsoft exchange. I have two profiles defined
in microsoft exchange.
One is west1 and another one is west2.

When I am trying to connect to west1.
I can succesfully connect to the excahnge mail box, but if i try to
connect
to another west2 profile then
I get an error that server does not exists. Although in microsoft
exchange
itself, I can successfully connect to both the profiles.
I am having problem in the code.
Below is the code for connecting to the server, but I don't know where
should I define the profile.

private void serverConnection(string userName, string password, string
serverName, DataRow dr1, DataRow dr)
{

long msgNumber;
string strMessage;
Pop3 obj = new Pop3();
obj.Connect(serverName, userName, password);

}
public void Connect(string server, string username,
string password)
{
string message;
string response;

Connect(server, 110);
response = Response();
if (response.Substring(0, 3) != "+OK")
{
throw new Pop3Exception(response);
}

message = "USER " + username + "\r\n";
Write(message);
response = Response();
if (response.Substring(0, 3) != "+OK")
{
throw new Pop3Exception(response);
}

message = "PASS " + password + "\r\n";
Write(message);
response = Response();

if (response.Substring(0, 3) != "+OK")
{
throw new Pop3Exception(response);
}

}
In the show profile box of microsoft outlook, I have defined under "When
starting microsoft outlook use this profile" west2.

Can anyone please tell me where can I define the profile and succesfully
connect to the excahnge server or if there is any other way to connect to
different profiles.

Any help will be greatly appreciated.




Mar 7 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul Schmidt | last post by:
Dear list: I am new to python, and I am trying to figure out the short answer on something. I want to open a POP3 mailbox, read the enclosed mail using the POP3 module, , and then process it...
3
by: Jay | last post by:
I'm not asking for any code (although it would be nice if someone got a sample). But how would i design a web based POP3 client? I want the users to be able to access the emails from Outlook,...
4
by: Ron Vecchi | last post by:
I a runnning w2k3 pop3 mail server that came with iis6. I would like to write an application that progammtically creates the new mailboxes in an already established mail domain. Does anyone know...
7
by: Matt Porter | last post by:
I'm writing a c# web app and I can't find a POP3 mail component. I found the SMTP component, but not a POP3 one. Seems like there should be one. What is the name of the POP3 component? or do I...
2
by: Mike Brearley | last post by:
I need to write a script that will check a catch-all mailbox (pop3) and send a non delivery report back to the sender of the email. Background info: I have a domain hosted on a site that offers...
1
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I really need help in this email. I am using pop3 service to connect to microsoft exchange. I have two profiles defined in microsoft exchange. One is west1 and another one is...
4
by: =?Utf-8?B?QWxwYW5h?= | last post by:
I am making a thin email client and want to get emails from a pop3 server...Is there any built in support in C# to get emails from a pop3 server and parse the email to show up on the UI ?
0
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails...
11
by: mp- | last post by:
I want to be able to allow people to check their email from my PHP online application. Given only the users 1) email address, 2) username (if applicable) and 3) password - how can I auto detect...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.