473,790 Members | 2,561 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 serverConnectio n(string userName, string password, string
serverName, DataRow dr1, DataRow dr)
{

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

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

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

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

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

if (response.Subst ring(0, 3) != "+OK")
{
throw new Pop3Exception(r esponse);
}

}
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 1350
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***@discussi ons.microsoft.c omwrote in message
news:66******** *************** ***********@mic rosoft.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 serverConnectio n(string userName, string password, string
serverName, DataRow dr1, DataRow dr)
{

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

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

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

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

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

if (response.Subst ring(0, 3) != "+OK")
{
throw new Pop3Exception(r esponse);
}

}
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
5961
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 messages. As soon as they have been in the Inbox, I get '0E0' as a number of messages. Does anyone know what feature of Net::POP3 I am not aware of, or where did I screw up in the code? use Net::POP3;
0
2608
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 fails when I compile the script with PerlApp and run it. My system is Windows 2000, ActiveState Perl 5.8.0 build 806, PerlApp 5.2.0 build 520. Here is the script:
2
2835
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 unlimited email accounts... the problem is, emails sent to an invalid address on the domain aren't automatically returned as non-deliverable. I am, however, able to set up a catch-all address and able to pick up those emails. Id like to set up a...
1
4951
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) Output of "db2ilist" does not list all the instances on my AIX box. DB2 functions normally - I do not get any unexpected errors. Any ideas what configuration has been missed out?...
2
2007
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
1685
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 specified date. - DeleteProfile. Enables you to delete a profile associated with a specified username. - DeleteProfiles. Enables you to delete a set of profiles. - FindInactiveProfilesByUserName. Returns a collection of ProfileInfo
1
1339
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 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
0
3438
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 to a PDA/palmtop via POP3. The PDA uses Windows Mobile software. Since using the PDA, I have had the problem of emails disappearing from the Yahoo! server. However I think I now understand how to avoid this. It seems that Windows Mobile is...
5
2676
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 queue. From what I've read thus far, atomic message access (if this is the right term) isn't a native feature of the POP3 protocol. Am I mistaken? My approach thus far, is to have one thread connect to the mailbox periodically, look for new...
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10413
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9986
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5422
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4094
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.