CreateItem¶
This documentation provides details about the CreateItem class within the pyews
package.
This class is used to create items in a users mailbox.
-
class
pyews.endpoint.createitem.
CreateItem
(type='message', message_disposition='SendAndSaveCopy', save_item_to='sentitems', **kwargs)¶ Creates an e-mail message
- Args:
- type (str, optional): The type of item to create. Defaults to ‘message’. message_disposition (str, optional): The action to take when the item is created. Defaults to ‘SendAndSaveCopy’. save_item_to (str, optional): Where to save the created e-mail message. Defaults to ‘sentitems’.
-
BODY_TYPES
= ['Best', 'HTML', 'Text']¶
-
MESSAGE_DISPOSITION
= ['SaveOnly', 'SendOnly', 'SendAndSaveCopy']¶
-
RESULTS_KEY
= 'Items'¶
-
soap
()¶