Rubyで Outlook ノートを作成および保存

Aspose.Email - Outlookノートの作成と保存

Aspose.Email Java for Ruby を使用して Outlook ノートを作成するには、単に CreateOutlookNote モジュールを呼び出します。こちらにサンプルコードがあります。

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."

実行コードをダウンロード

以下に挙げるソーシャルコーディングサイトのいずれかから Outlook ノートの作成と保存 (Aspose.Email) をダウンロードしてください: