hi i am trying to filter out mail based on subject but I am getting 4096 , ‘Microsoft outlook ‘, ‘The attempted operation failed. An object could not found error. Same code worked in one machine but didn’t worked on other machine. Can u help with this error
Give some time sleep after initialization code line... Check if that system has web outlook as default Folder structure is same for inbox else find inbox by name
Thank you! But, I could not figure out how to save atch in another folder.. tried use (os.getcwd() + 'C:\Users\user\Desktop\' + atch.FileName) but didn't work :(
how can i connect to some other outlook account which is not logged in on my desktop. I want to know this because i want this application to be deployed on Virtual Machine(Server). Please help me in this
Have look on this video at 3 min... You will get how to get yesterday date and how to format date in required format using strftime... Use underscores in formatting... th-cam.com/video/Jx5gOE_4vWA/w-d-xo.html
Hi , This video is useful for me.
Please advise how we can export the subject, body to an excel file for those filter emails with subject
When you can get it, then you can assign to variable and append row in excel using openpyxl.. You can see video on this channel itself
Brilliant, can you please create a video on how to fetch otp from outlook mailobx. It would be much helpful.
Hi this code not working on New Outlook app can you send me any other approach that works on New Outlook app
Excelente, wue modificación se debe hacer para copiar y/o extraer todos los attach. Gracias
can you make a video for whatsapp automation so it could help as i am having some troubles in resolving some issues
Excelent !!! you know how check if mail has executable attachement ?
When you loop on attachment, attachment.name is the property, if name has .exe then it can be considered as executable... Hope I got it right
Thanks very helpful video 👍What we can do if we have to save only present day attachment from email with specific subject line or mail body string.
I m going to do a video on filter in fetail... For now you can check date him recived, if date is today save ... If yesterday break the loop
Thanks for reply
Super...
Thank you
Can I please know how to save these attachments to the website means to the URL
If you can save only on local by this script... But you can copy files to web location if connected to your local folde
hi i am trying to filter out mail based on subject but I am getting 4096 , ‘Microsoft outlook ‘, ‘The attempted operation failed. An object could not found error. Same code worked in one machine but didn’t worked on other machine. Can u help with this error
Give some time sleep after initialization code line...
Check if that system has web outlook as default
Folder structure is same for inbox else find inbox by name
Hi bro how to add a email forwarding to outlook automatically?
if you have any script or link it would be a great help thanks bro
In if condition mail is filtering out with subject but along with and clause msg.SenderEmailAddress is not working.
There is another video where I am using filter email before loading items using Microsoft email class properties check that one
2- if you are using outlook exchange it might be different property
Thank you! But, I could not figure out how to save atch in another folder.. tried use (os.getcwd() + 'C:\Users\user\Desktop\' + atch.FileName) but didn't work :(
Attachment.savesas ...SEARCH python os create folder if not exist..then pass path as variable.... On my channel there is a video as well
how can i connect to some other outlook account which is not logged in on my desktop. I want to know this because i want this application to be deployed on Virtual Machine(Server). Please help me in this
It is client based api
... If the account is o365 you can use api url with credentials
Or you can add that account in your outlook pass the email id as saprate mailbox
@@Python2020 the account is O365 only, can you please help me by sharing some code snippet. It will be very helpful
@@Python2020 actually i can't add that account in my outlook id, it is not allowed to us
You should find in goolgle.. Or your it team would bea aware of api url of o365, you have to pass your user details
Folders object is not callable
I am getting 4096 Microsoft Outlook cannot save the attachment file name or directory is not valid
The folder that you are taken in the path should exist... There are few characters are not acceptable in file or folder names check that as well
@@Python2020 i have one more question say if i want to save the attachment with T-1 business date then how can we do that ?
You want to filter the email with t-1 Or create the foder by t-1 or you want to rename file with t-1
I need to rename the attachment file with T-1 date and if it's Monday it should save it on Fridays date
Have look on this video at 3 min... You will get how to get yesterday date and how to format date in required format using strftime... Use underscores in formatting... th-cam.com/video/Jx5gOE_4vWA/w-d-xo.html
Nice how to export to excel some portion of email body
When you are reading email mail_item.Body would give you data from mail, then use regex to folter required info