Package com.aspose.email

Examples of com.aspose.email.MapiMessage.save()


    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


    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

    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
Copyright © 2018 www.massapi.com. 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.