exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Exchange Outlook and C#

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange 2000 For Win2000
Author Message
Sachin



Joined: 06 Aug 2007
Posts: 1

PostPosted: Wed Apr 18, 2007 7:48 pm    Post subject: Exchange Outlook and C# Reply with quote

Hello All,

I am working on an service application to send an emails from exchange server.

I want to use the groups created in the exchange server to send the mail.

At present I am using the following code to send the emails

CDO.Message oMsg = new CDO.Message();
CDO.IConfiguration iConfg;
iConfg = oMsg.Configuration;
ADODB.Fields oFields;
oFields = iConfg.Fields;
ADODB.Field oField =
oFields["http://schemas.microsoft.com/cdo/configuration/sendusing"];
oField.Value = 2;
oFields.Update();
oField =
oFields["http://schemas.microsoft.com/cdo/configuration/smtpserver"];
//Exchannge server
oField.Value = "xxx.xxx.com";
oFields.Update();

oField =
oFields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"];
oField.Value = 25;
oFields.Update();

oField =
oFields["http://schemas.microsoft.com/cdo/configuration/smtpaccountname"];
oField.Value = "xxx@xxxx.com";
oFields.Update();

oField =
oFields["http://schemas.microsoft.com/cdo/configuration/sendemailaddress"];
oField.Value = "xxx@xxxx.com";
oFields.Update();

oField =
oFields["http://schemas.microsoft.com/cdo/configuration/smtpuserreplyemailaddress"];
oField.Value = "xxx@xxxx.com";
oFields.Update();


oField =
oFields["http://schemas.microsoft.com/cdo/configuration/sendusername"];
//My domain and username
oField.Value = @"xxx\xxxx";
oFields.Update();

oField =
oFields["http://schemas.microsoft.com/cdo/configuration/sendpassword"];
//my password
oField.Value = "xxxxx";
oFields.Update();

oMsg.TextBody = "Hello, how are you doing?";
oMsg.From = "xxx@xxxx.com";
oMsg.To = "xxx@xxxx.com";
oMsg.Send();

I am successful when I send a mail to email account.

But there is an error when I refer a group.

Another problem I am facing is I want to see the mail in sent mails of
microsoft outlook. Can it be done?

I am using outlook 2003 and exchange 2003 server with C#.

Its very urgent please let me know.

Sachin

Archived from group: microsoft>public>exchange2000>win2000
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
second exchange server Hi, I want to add a second Exchange 2000 server to an existing domain. After adding the server ( the server's configuration was a member server) I was able to easily move mailboxes to the new Exchange server. The next thing I want to do is install Active

Exchange Client Permissions Can someone please help me. I am experiencing a problem on a Windows 2000(sp4) Server with Exchange 2000(sp3). When I try to add someone to the Client Permissions list on ANY public folder I get the following message: "An unkown error has occurred. ID

Security for exchange roles hello, does anyone know is there a tool i can run on all the servers to find out who has what permission on the server ? we have a big mess here and seen like everyone has permission for everything.. i want to run a report and audit who has what right on

exchange upgrade with new hardware Hi, i would like to upgrade my existing win2k3 domain and exchange 2k FE/BE to 2003. it will be new hardware for exchange 2003 FE / BE... i understand to upgrade to exchange 2003, the FE server have to be upgraded 1st... But I would want to know how do i

Exchange not creating mailbox Hi, I have an issue with my exchange server, when I'm creating a new account in the AD the mailbox is not being created. I even deleted the mailbox an then created again and still the mailbox is no being created. Windows 2000 Exchnage 2000 Any ideas? - IS
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange 2000 For Win2000 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group