K
Kevin
I am successfully creating and deleting appointments and sending
invitations in a C# / ASP.NET / Exchange2000 environment. It works
great!
But the problem is that no notifications are sent out when I
programmatically delete or modify appointments. This is a key feature
that we will need and I am looking for information/documentation on
how to send these notifications programatically. The code below is
what I'm using to delete a meeting, but no notification is sent. If
anyone has any insight here it would be much appreciated.
Many thanks,
Kevin
public static void DeleteMeeting(string MeetingURL, string SalesID,
string Password, string Domain)
{
try
{
System.Net.HttpWebRequest Request;
System.Net.WebResponse Response;
System.Net.CredentialCache MyCredentialCache;
MyCredentialCache = new System.Net.CredentialCache();
MyCredentialCache.Add(new System.Uri(MeetingURL),"NTLM",
new System.Net.NetworkCredential(SalesID, Password, Domain));
// Create the HttpWebRequest object.
Request = (System.Net.HttpWebRequest)HttpWebRequest.Create(MeetingURL);
// Add the network credentials to the request.
Request.Credentials = MyCredentialCache;
// Specify the DELETE method.
Request.Method = "DELETE";
// Send the DELETE method request.
Response = (System.Net.HttpWebResponse)Request.GetResponse();
// Close the HttpWebResponse object.
Response.Close();
}
catch(Exception ex)
{
// Catch any exceptions. Any error codes from the DELETE
// method request on the server will be caught here, also.
string excpt = ex.Message.ToString();
DBI.Framework.Exception temp = new DBI.Framework.Exception("Error
in DeleteMeeting method of MeetingManager class." + ex.Message,ex);
}
}
invitations in a C# / ASP.NET / Exchange2000 environment. It works
great!
But the problem is that no notifications are sent out when I
programmatically delete or modify appointments. This is a key feature
that we will need and I am looking for information/documentation on
how to send these notifications programatically. The code below is
what I'm using to delete a meeting, but no notification is sent. If
anyone has any insight here it would be much appreciated.
Many thanks,
Kevin
public static void DeleteMeeting(string MeetingURL, string SalesID,
string Password, string Domain)
{
try
{
System.Net.HttpWebRequest Request;
System.Net.WebResponse Response;
System.Net.CredentialCache MyCredentialCache;
MyCredentialCache = new System.Net.CredentialCache();
MyCredentialCache.Add(new System.Uri(MeetingURL),"NTLM",
new System.Net.NetworkCredential(SalesID, Password, Domain));
// Create the HttpWebRequest object.
Request = (System.Net.HttpWebRequest)HttpWebRequest.Create(MeetingURL);
// Add the network credentials to the request.
Request.Credentials = MyCredentialCache;
// Specify the DELETE method.
Request.Method = "DELETE";
// Send the DELETE method request.
Response = (System.Net.HttpWebResponse)Request.GetResponse();
// Close the HttpWebResponse object.
Response.Close();
}
catch(Exception ex)
{
// Catch any exceptions. Any error codes from the DELETE
// method request on the server will be caught here, also.
string excpt = ex.Message.ToString();
DBI.Framework.Exception temp = new DBI.Framework.Exception("Error
in DeleteMeeting method of MeetingManager class." + ex.Message,ex);
}
}