![]() attachments = message.Attachments # return the first item in attachments attachment = attachments.Item(1) # the name of attachment file attachment_name = str(attachment).lower() attachment.SaveASFile(path '\\' attachment_name)Ĥ. (I haven’t tried all of it, but most of it can be applies.) Hence, you may refer to the documentation of MailItem in VB which can be found in Reference C1 at the bottom, for the complete MailItem properties list. Note that the messages.GetFirst() or messages.GetNext() which end with a pair of parenthesis is referring to a method we can use to manipulate the mailbox, while the message.subject or nton is referring to the properties of the email, and it is not case sensitive when you using Python. message.subject nton # return the date
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |