Save all attachment from Outlook Mail with specific subjects using powershell - powershell

I want a Powershell script that is able to get me all the attachments from the email subject "Daily Headcount".

A quick google search found this article that appears to cover what you’re looking for.
https://bronowski.it/blog/2020/09/saving-outlook-attachments-with-powershell/

Related

PowerShell (?) Check office 365 mailbox and forward emails to another system by reset API

I would love to have guidance as to the right way to do it.
I have to forward emails from Office 365 mailbox to another system by reset API.
The format of email is something like that:
Subject: TELLA SERVICE
Body:
Computer: TELLA
ERROR: STOP WORKING
It is also necessary to change the format of the email to something like this:
hostname = body>computer
service = subject
Description = Body>Error
I understand that the easy way to do this is with PowerShell. is it true?
And the steps are:
Connect to O365 and check the mailbox
Check if there is new emails
converter it to json with this settings ( hostname=body>computer, service=subject, description= body>error)
send the json by rest api
I'm new to the world of PowerShell and working with APIs, and if there is a template that I can start working on it will be very helpful..
Thank you
Meni
Working with O365, I normally would use a mailbox rule to do the forwarding. I'm sure that it can be done with a PowerApp also. As much as I love doing everything in PowerShell, I don't think it's the easiest way to do that.

Check exchange mailbox from powershell

Is it possible to check if an Exchange email account from powershell? I read this post but it's very dated and I've seen many references to sending mail from powershell but none to retrieve mail.
This is a "poor mans" solution to monitoring and somewhat of a synthetic transaction generator.
In short, I want to send an email from powershell and check email from powershell.
Easiest way to retrieve emails from Office 365 is to use the Graph API.
You'll first need to authenticate to it, if this is going to be an automated solution you would need to authenticate as a Application.
https://learn.microsoft.com/en-us/graph/auth-v2-service?context=graph%2Fapi%2F1.0&view=graph-rest-1.0
Then you can list emails using this endpoint
https://learn.microsoft.com/en-us/graph/api/user-list-messages?view=graph-rest-1.0&tabs=http
And send an email using this endpoint
https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http

Hyperlink in google sheets that opens up a specific outlook email template

I would like some assistance with this matter as I've only been able to get a regular email to open directly from sheets when inserting an E-Mail Hyperlink.
The current code that I have is =hyperlink("mailto:#gmail.com&Subject=TEst&Body=TEst%0Aand%0ATest%202", "Email").
I need a way for the link to open specific outlook email templates that are located on my desktop.
Thank you for any light you can shed on the subject.
Best,
-Ed
There is no way to get the job done.
If you use an Internet Explorer you may consider automating Outlook from a script. But this solution will not work in other browsers. See Compose and Send E-mail from JavaScript by using Outlook Automation 2007 for more information.
The only possible solution for all browsers is to use the mailto: protocol for opening a pre-filled new mail item.

Take data from an email and upload it to Microsoft Sharepoint 2010

I have an email that arrives every day at 5:00 PM which reports the amount of inventory in stock everyday. Is there a way I could upload the data from this email into Microsoft Sharepoint 2010 ? I searched Google and StackOverflow but didn't find a solution to this.
Thank you in advance. A high level solution or a detail solution on how to do this would be extremely helpful.
SharePoint has the ability to receive messages and documents via e-mail through functionality called Mail Enabled Libraries.
First, you have to configure incoming email, which is a bit of work. Once SharePoint is configured to receive email, you have to configure a list to receive email.
References:
http://davecoleman146.com/2010/10/20/how-to-setup-mail-enabled-document-libraries-in-sharepoint-2010-part-1/
http://technet.microsoft.com/en-us/library/cc287879(v=office.14).aspx
EDIT
The manual process to upload a document would have the following steps:
Check email
If the email is there, save email to local file
Upload file to SharePoint
If you want to automate this process, I recommend PowerShell as its powerful yet easy to use.
Learning PowerShell: http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx
Checking Email with PowerShell: How to check an exchange mailbox via powershell?
Saving an Email with PowerShell: http://social.technet.microsoft.com/Forums/scriptcenter/en-US/335a888b-bf85-4a36-a555-71cc84608960/download-email-content-text-from-exchange-ews-with-powershell?forum=ITCG
Uploading a file to SharePoint With PowerShell: http://social.technet.microsoft.com/wiki/contents/articles/19529.sharepoint-2010-upload-file-in-document-library-using-powershell.aspx

Using AppleScript to send mail attachment through default email client

Is it possible in any way to send an email attachment through the user's default email client using AppleScript? I'm assuming there is no easy way of doing this, as the programs themselves have to implement AppleScript and every email client will implement it differently and require a different script for sending an email with an attachment.
I've searched around and only found this:
http://macscripter.net/viewtopic.php?id=12463
Which can, via Applescript, give me the name of the default email client. Has anyone looked into this before?
Thank you.
You are correct. You'll have to implement different applescript code for each email client. As such you'll probably want to limit the email clients your application will support and make that clear to your users.
The only other way for it to work universally is for you to implement your own email system. I have a python script that I can call from an applescript using "do shell script" to send emails. Of course you'll need to know the user's information (smtp server, username, etc). If you're interested you can see my python script here. It doesn't handle attachments but some google searching should show you how to modify it.