473,416 Members | 1,550 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

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 1331
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:66**********************************@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

1
by: Lev Altshuler | last post by:
Hi, I am trying to count email messages in the mailbox and read their headers. In case that there are some messages on the POP3 server and they haven't yet got to the Inbox, I get a number of...
0
by: Eric McDaniel | last post by:
This may be a question for ActiveState support, but just in case anyone out there knows what the problem is... My call to Net::POP3->new() works fine when run through the perl interpreter, but...
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: Anurag | last post by:
Hi, I have 2 related questions. DB2 UDB ESE v8.x (8.1 till 8.2 FP2 - all fixpaks included) on AIX 5.4.x _____________________________________________________________________________ (QUESTION 1)...
2
by: Shimon Sim | last post by:
Is there a way to get e-mails with attachments using .NET 2.0? If not does anybody knows a component that can do this? Thank you, Shimon.
0
by: george_Martinho | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older than a...
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...
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...
5
by: Craig Buchanan | last post by:
I would like to monitor a POP3 mailbox with multiple clients. However, I want to ensure that each message is processed by only one client. In essence, I would like to treat a POP3 mailbox like a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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.