using Outlook Object model from C#: App hangs when adding reciepients

B

Bik

Hi,
I'm using the outlook library to send an email message through my asp.net
application. The code that I'm using is similar to this:
http://support.microsoft.com/default.aspx?id=310262

I've noticed while that my application hangs in this particular line. Can
anybody give any insights ?

Outlook.Recipients oRecips = (Outlook.Recipients)oMsg.Recipients;


Thanks in Advance,
Bik
 
S

Steve

-----Original Message-----
Hi,
I'm using the outlook library to send an email message through my asp.net
application. The code that I'm using is similar to this:
http://support.microsoft.com/default.aspx?id=310262

I've noticed while that my application hangs in this particular line. Can
anybody give any insights ?

Outlook.Recipients oRecips = (Outlook.Recipients) oMsg.Recipients;


Thanks in Advance,
Bik


.
I suspect it has to do with a security patch. Certain
objects such as the MailItem and Recipients trigger a
prompt. The user must manually hit the Ok button.
 
B

Bik

Thanks for your replies. So maybe it is a prompt that I'm not seeing. I'm
thinking I would be fine with a modal security prompt too, but I don't see
one at all. Would there be any particular reason for it. The application
just hangs/pauses.

Also I switched to outlook object model because I wanted to be able to send
meeting invitations programatically through ASP.Net. SMTP is definitely the
route I go for just mails.

Thanks again.

Bik
 
Top