![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hello All,
I am working on an service application to send an emails from exchange server. I am using outlook 2003 and exchange server 2003 with c# as a language 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 = "; oFields.Update(); oField = oFields["http://schemas.microsoft.com/cdo/configuration/sendemailaddress"]; oField.Value = "; oFields.Update(); oField = oFields["http://schemas.microsoft.com/cdo/configuration/smtpuserreplyemailaddress"]; oField.Value = "; 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 = "; oMsg.To = "; 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? Its very urgent please let me know. Sachin |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ÎÞ·¨ÕÒµ½Ö÷»ú¡°SMTP¡±¡£Çë¼ì²éÊäÈëµÄ·þÎñÆ÷ÃûÊÇ·ñÕýÈ·¡£ ÕÊ»§: 'POP3', ·þÎñÆ÷: 'SMTP', ÐÒé: SMTP, ¶Ë¿Ú: 25, °²È«(SSL): ·ñ, Ì×½Ó×Ö´íÎó: 11001, ´íÎóºÅ: 0x800CCC0D | John Smith | Outlook Express | 0 | September 5th 06 01:15 AM |
Outlook programming | Jerod Mills | Outlook and VBA | 3 | July 27th 06 04:17 PM |
Choice of programming tool for Outlook programming | [email protected] | Outlook and VBA | 4 | July 13th 06 10:48 AM |
ÎÞ·¨ÕÒµ½Ö÷»ú¡°smtp¡±¡£Çë¼ì²éÊäÈëµÄ·þÎñÆ÷ÃûÊÇ·ñÕýÈ·¡£ ÕÊ»§: 'pop3', ·þÎñÆ÷: 'smtp', ÐÒé: SMTP, ¶Ë¿Ú: 25, °²È«(SSL): ·ñ, Ì×½Ó×Ö´íÎó: 11001, ´íÎóºÅ: 0x800CCC0D | Outlook Express | 0 | June 17th 06 09:44 AM | |
I need to save a contact in SMTP format not exchange format. | JAX | Outlook - Using Contacts | 0 | February 15th 06 01:51 PM |