Crear y guardar notas de Outlook en Jython

Aspose.Email - Creación y guardado de notas de Outlook

Para crear notas de Outlook usando Aspose.Email Java for Jython, simplemente invoque el módulo CreateOutlookNote. Aquí puede ver el código de ejemplo.

Código 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()

Descargar código en ejecución

Descargue Crear y guardar notas Outlook (Aspose.Email) de cualquiera de los sitios de codificación social mencionados a continuación: