Membuat dan Menyimpan Catatan Outlook di Ruby

Aspose.Email - Membuat dan Menyimpan Catatan Outlook

Untuk Membuat Catatan Outlook menggunakan Aspose.Email Java for Ruby, cukup panggil modul CreateOutlookNote. Di sini Anda dapat melihat contoh kode.

Kode Ruby


 data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'

note = Rjb::import('com.aspose.email.MapiNote').new

note.setSubject("Blue color note")

note.setBody("This is a blue color note")

note.setColor(Rjb::import('com.aspose.email.NoteColor').Blue)

note.setHeight(500)

note.setWidth(500)

note.save(data_dir + "MapiNote.msg", Rjb::import('com.aspose.email.NoteSaveFormat').Msg)

puts "Created outlook note successfully."

Unduh Kode yang Berjalan

Unduh Creating and Saving Outlook Notes (Aspose.Email) dari salah satu situs coding sosial yang disebutkan di bawah: