ایجاد درخواست قرار ملاقات پیشنویس
Contents
[
Hide
]
Aspose.Email - ایجاد درخواست ملاقات پیشنویس
ایجاد یک درخواست ملاقات در حالت پیشنویس میتواند مفید باشد، بهطوری که اطلاعات پایه اضافه شود و سپس همان پیشنویس ملاقات به سایر کاربرانی که ممکن است تغییراتی ایجاد کنند، منتقل شود. Aspose.Email برای Java انعطافپذیری ایجاد و ذخیره یک ملاقات در حالت پیشنویس برای استفاده بعدی را فراهم میکند.
برای ذخیره یک ملاقات در حالت پیشنویس، ویژگی Method کلاس Appointment باید روی Publish تنظیم شود.
جاوا
String sender = "test@gmail.com";
String recipient = "test@email.com";
MailMessage message = new MailMessage(sender, recipient, "", "");
Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
calendar.set(2012, Calendar.NOVEMBER, 1, 0, 0, 0);
Date startDate = calendar.getTime();
calendar.set(2012, Calendar.DECEMBER, 1);
Date endDate = calendar.getTime();
MailAddressCollection attendees = new MailAddressCollection();
attendees.addMailAddress(new MailAddress("attendee_address@aspose.com", "Attendee"));
WeeklyRecurrencePattern expected = new WeeklyRecurrencePattern(3);
Appointment app = new Appointment("Appointment Location", "Appointment Summary", "Appointment Description",
startDate, endDate,
new MailAddress("organizer_address@aspose.com", "Organizer"), attendees, expected);
//Set the Appointment as Draft
app.setMethod(AppointmentMethodType.Publish);//.Method = AppointmentMethodType.Publish;
message.addAlternateView(app.requestApointment());
MapiMessage msg = MapiMessage.fromMailMessage(message);
// Save the appointment as draft.
msg.save("data/AsposeDraft.msg");
بارگیری کد اجرایی
دانلود Create Draft Appointment Request از هر یک از سایتهای برنامهنویسی اجتماعی زیر:
برای جزئیات بیشتر، مراجعه کنید به ایجاد درخواست ملاقات پیشنویس.