New Outlook mail message doesn't load

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
I have the following simplified code:
<pre class="prettyprint using Outlook = Microsoft.Office.Interop.Outlook;
protected void SendEmailBtn_Click(object sender, EventArgs e)
{
Outlook.Application OutlookApp = new Outlook.Application();
Outlook.MailItem mailItem = (Outlook.MailItem)OutlookApp.CreateItem(Outlook.OlItemType.olMailItem);
mailItem.Subject = "Test Send Email";
mailItem.BCC = "test@test.com";
mailItem.Body = "Dear";
mailItem.Display(false);
}[/code]
Ive installed office 2007 and 2007 PIAs and deployed the code on the server (win2008 server), but when I click on the send button nothing happens on the clients machine the outlook mail message is not created, the page just stays in a loading state, no
errors or exceptions are given. Looking at task manager on the server the outlook process does start and is running. The code works fine locally i.e. an outlook mail message is created. Im not sure what could be causing this to happen,
could it be the anti virus on the server blocking file access? Do I need to install something else? Any help would be much appreciated. Thanks.
<br/>

View the full article
 
Back
Top