Package com.aspose.email

Examples of com.aspose.email.Appointment


    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");
View Full Code Here


public class AsposeFormatAppointments
{
  public static void main(String[] args)
  {
    Appointment appointment = Appointment.load("data/appointment.ics");
    AppointmentFormattingOptions formattingOptions = new AppointmentFormattingOptions();
    formattingOptions.setLocationFormat("Where: {0}");
    formattingOptions.setTitleFormat("Subject: {0}");
    formattingOptions.setDescriptionFormat("\r\n*~*~*~*~*~*~*~*~*~*\r\n{0}");
    System.out.println(appointment.getAppointmentText(formattingOptions));
  }
 
View Full Code Here

    MailAddressCollection attendees = new MailAddressCollection();
    attendees.addMailAddress(new MailAddress("attendee_address@domain.com", "Attendee"));
    WeeklyRecurrencePattern expected = new WeeklyRecurrencePattern(3);

    Appointment app = new Appointment("Appointment Location", "Appointment Summary", "Appointment Description",
                      startDate, endDate,
                      new MailAddress("organizer_address@domain.com", "Organizer"), attendees, expected);
    MailMessage msg = new MailMessage();
    msg.addAlternateView(app.requestApointment());
    MapiMessage mapi = MapiMessage.fromMailMessage(msg);
    MapiCalendar cal = (MapiCalendar)mapi.toMapiMessageItem();

    cal.setRemainderSet(true);
    cal.setRemainderDelta(58);//58 min before start of event
View Full Code Here

TOP

Related Classes of com.aspose.email.Appointment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.