Class: Msgraph::Api::NonMultipartInterceptor

Inherits:
Object
  • Object
show all
Defined in:
lib/msgraph/api/non_multipart_interceptor.rb

Class Method Summary collapse

Class Method Details

.delivering_email(message) ⇒ Object



4
5
6
7
8
9
# File 'lib/msgraph/api/non_multipart_interceptor.rb', line 4

def self.delivering_email(message)
  # it seems like exchange is guessing the encoding... and gets
  # it totally wrong. So we force UTF-8 for mail transport and
  # MS Graph API is happy with that.
  message.transport_encoding = Encoding::UTF_8
end