Ruby에서 이메일 메시지 변환
Contents
[
Hide
]
Aspose.Email - 이메일 메시지 변환
Aspose.Email Java for Ruby를 사용하여 이메일 메시지를 변환하려면 Converter 모듈의 convert_eml_to_msg 메서드를 호출합니다. 여기에서 예제 코드를 확인할 수 있습니다.
Ruby 코드
def convert_eml_to_msg()
data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
# Initialize and Load an existing EML file by specifying the MessageFormat
eml = Rjb::import('com.aspose.email.MailMessage').load(data_dir + "Message.eml")
# Save the Email message to disk in Unicode format
eml.save(data_dir + "AnEmail.msg", Rjb::import('com.aspose.email.SaveOptions').getDefaultMsgUnicode())
# Display Status
puts "Converted eml to msg successfully."
end
실행 코드 다운로드
다음에 언급된 소셜 코딩 사이트 중 어디서든 **이메일 메시지 변환 (Aspose.Email)**을 다운로드하십시오: