Skip to content

Commit

Permalink
added "setBodyHTML"
Browse files Browse the repository at this point in the history
Added the "setBodyHTML" method to fulfill issue googleapis#28.
  • Loading branch information
Narcolapser committed Mar 18, 2016
1 parent 6b76d20 commit 12db511
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions O365/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,18 @@ def setBody(self,val):
cont = True
except:
self.json['Body'] = {}

def setBodyHTML(self,val=None):
'''
Sets the body content type to HTML for your pretty emails.
arguments:
val -- Default: None. The content of the body you want set. If you don't pass a
value it is just ignored.
'''
self.json['Body']['ContentType'] = 'HTML'
if val:
self.json['Body']['Content'] = val


#To the King!

0 comments on commit 12db511

Please sign in to comment.