Re: WebDAV Meeting Request creation and sending
- From: "Sergiu Filip" <sergiuf@xxxxxxxxxx>
- Date: Wed, 6 Sep 2006 09:29:20 -0400
Well, having username/pasword in the picture already hints to a session.
Being on the server, you don't need a session , rather send it using the
server : you are allow to send mail on behalf of anyone in the same domain.
//-----------------------------
here's a sample , using C# and interop ( I'd stay away from WebDAV , in
spite of its appeal sometimes).
Use plain COM invokation ( from a script or VB/C++) or use interop and any
..Net artifacts.
ths one sends an IPM.Note message but you should be able to figure out
how to do appointments
//-----------------------------
CDO.MessageClass objNoticeMsg = new CDO.MessageClass();
objNoticeMsg.To = strEMAIL;
objNoticeMsg.From = strSenderMBX;
objNoticeMsg.Subject = "Your subject ...";
//content
objNoticeMsg.HTMLBody = m_strErpPolicyHtm;
//set importance
objNoticeMsg.Fields["urn:schemas:httpmail:importance"].Value =
CDO.cdoImportanceValues.cdoHigh;
objNoticeMsg.Fields["urn:schemas:httpmail:read"].Value = "False";
objNoticeMsg.Fields["urn:schemas:httpmail:submitted"].Value = "True";
objNoticeMsg.Fields["urn:schemas:httpmail:date"].Value =
DateTime.Now.ToString();
objNoticeMsg.Fields.Update();
//this is key !!!!!!
objNoticeMsg.Configuration.Fields["CdoSendUsing"].Value =
CDO.CdoSendUsing.cdoSendUsingExchange;
objNoticeMsg.Configuration.Fields.Update();
try
{
objNoticeMsg.Send();
}
catch (Exception objExSendMsg )
{
objLog.ErrorFormat ("Error sending a notification message. {0}.",
objExSendMsg.Message);
}
...
//-----------------------------
<shelly3432@xxxxxxxxxxx> wrote in message
news:1157472201.825417.219670@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am comparatively new to exchange programming. I am trying to send out
meeting requests using Exchange 2003. I used the code in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_sending_a_meeting_request_webdav.asp.
My requirement is to be able to send out meeting requests from someone
else's email account. I have been able to send out meeting requests
successfully if i hard code in the username and password in the code.
But since I do not have the password for other users, I am at a loss of
how to send out meeting requests from their email accounts.
I would greatly appreciate if someone could reply to this ASAP.
Thanks,
Shelly
.
- Follow-Ups:
- Re: WebDAV Meeting Request creation and sending
- From: sg3432
- Re: WebDAV Meeting Request creation and sending
- References:
- WebDAV Meeting Request creation and sending
- From: shelly3432
- WebDAV Meeting Request creation and sending
- Prev by Date: Deleting an email with a read receipt using WebDAV
- Next by Date: Determine a users Inbox name via WebDAV
- Previous by thread: WebDAV Meeting Request creation and sending
- Next by thread: Re: WebDAV Meeting Request creation and sending
- Index(es):
Relevant Pages
|