Package com.aspose.email

Examples of com.aspose.email.MapiMessage


    //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");
   
    System.out.println("Done");
  }
View Full Code Here


    String meetingTime = "<u>" + "Monday, June 28, 2010" + "</u>";
    message.setHtmlBody(message.getHtmlBody().replace("MeetingPlace", meetingLocation));
    message.setHtmlBody(message.getHtmlBody().replace("MeetingTime", meetingTime));
   
    // Save the message in MSG format and open in Office Outlook
    MapiMessage mapimessage = new MapiMessage().fromMailMessage(message);
    mapimessage.setMessageFlags(MapiMessageFlags.MSGFLAG_UNSENT);
    mapimessage.save("data/AsposeInvitation.msg");
   
    System.out.println("Done");
  }
View Full Code Here

    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
    cal.setReminderFileParameter("data/logon.wav");
    cal.save("data/AsposeAudioReminder.ics", AppointmentSaveFormat.Ics);
View Full Code Here

public class AsposeCategory
{
  public static void main(String[] args)
  {
    MapiMessage msg = MapiMessage.fromFile("data/message.msg");
    // Add category
    FollowUpManager.addCategory(msg, "Purple Category");

    // Add another category
    FollowUpManager.addCategory(msg, "Red Category");

    // Retrieve the list of available categories
    IList categories = FollowUpManager.getCategories(msg);

    // Remove the specified category
    FollowUpManager.removeCategory(msg, "Red Category");

    // Clear all categories
    //FollowUpManager.clearCategories(msg);
   
    msg.save("data/AsposeCategories.msg");
   
    System.out.println("Done");
  }
View Full Code Here

TOP

Related Classes of com.aspose.email.MapiMessage

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.