Tạo và lưu ghi chú Outlook trong Jython
Contents
[
Hide
]
Aspose.Email - Tạo và Lưu ghi chú Outlook
Để tạo ghi chú Outlook bằng Aspose.Email Java for Jython, chỉ cần gọi module CreateOutlookNote. Ở đây bạn có thể xem mã ví dụ.
Mã Jython
from aspose-email import Settings
from com.aspose.email import MapiNote
from com.aspose.email import NoteColor
from com.aspose.email import NoteSaveFormat
class CreateOutlookNote:
def __init__(self):
dataDir = Settings.dataDir + 'ProgrammingOutlook/WorkingWithOutlookMessageFiles/CreateOutlookNote/'
note = MapiNote()
note.setSubject("Blue color note")
note.setBody("This is a blue color note")
noteColor = NoteColor
note.setColor(noteColor.Blue)
note.setHeight(500)
note.setWidth(500)
noteSaveFormat=NoteSaveFormat
note.save(dataDir + "MapiNote.msg", noteSaveFormat.Msg)
print "Created outlook note successfully."
if __name__ == '__main__':
CreateOutlookNote()Tải mã đang chạy
Tải Tạo và Lưu Ghi chú Outlook (Aspose.Email) từ bất kỳ một trong các trang mã nguồn xã hội được đề cập dưới đây: