如何填充“收件人"地址 ? [英] How to populate "To" address ?
本文介绍了如何填充“收件人"地址 ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谁能告诉我如何使用C#.Net在Outlook 2003的与会者"字段中填充收件人"地址.
我能够填充所有其他值,例如subject,Location,Date等...
谢谢
Prabhu
Hi,
Can anyone tell me of how to populate "To" address in the Attendee field in Outlook 2003 using C#.Net.
I am able to populate all other values like subject,Location,Date etc...
Thanks
Prabhu
推荐答案
PrabhaharanR写道:
PrabhaharanR wrote:
与会者字段
看起来您正在约会.以下是访问各种属性的粗略列表:
Looks like you are making an appointment. Here are a rough list of accessing various properties:
// Set some common properties.
oAppt.MeetingStatus = MAPI.CdoMeetingStatusTypes.CdoMeeting;
oAppt.Subject = subject;
oAppt.Text = body;
oAppt.Location = "Atlantis";
oAppt.StartTime = Convert.ToDateTime("04/14/2005 8:00:00 AM");
oAppt.EndTime = Convert.ToDateTime("04/14/2005 9:00:00 AM");
oAppt.ReminderSet = true;
oAppt.ReminderMinutesBeforeStart = 5;
oAppt.AllDayEvent = false;
// Add attendees.
oSafeAppt.Recipients.Add("abc@anc.com");
oSafeAppt.Recipients.ResolveAll();
// Send out request.
oSafeAppt.Send();
您需要这样的内容: oSafeAppt.Recipients.Add("ab@ab.com");
You need something like: oSafeAppt.Recipients.Add("ab@ab.com");
您需要添加收件人,如下所示-
Outlook.Recipients oRecips = (Outlook.Recipients)oMsg.Recipients
.
请参见此处.
You need to add a recipient as follows -
Outlook.Recipients oRecips = (Outlook.Recipients)oMsg.Recipients
.
See here.
这篇关于如何填充“收件人"地址 ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文