Is there any options or workaround in which i can send a scheduled (weekly)recurring email to multiple account on outlook 365?..thank you very much..
Is there any options or workaround in which i can send a scheduled (weekly)recurring email to multiple account on outlook 365?..thank you very much..
This is something which can be achieved quite easily via a PowerShell script and a Scheduled Task.
For a full example see; Schedule a recurring email with Outlook and PowerShell
Hi, Robert,
Thank you so much for your code. It really works.
The only issue I'm facing, is that my emails contains images in the body of the message, these images get deleted when the email is sent. Is there any way to solve this?
Regards.
I have gotten this error message below. Could you help me to fix it ? thank you so much
PS C:\Users\Hery> C:\Scripts\documents\Windows powershell\Calendar update Powershell 21.12.03 Hery.ps1
At C:\Scripts\documents\Windows powershell\Calendar update Powershell 21.12.03 Hery.ps1:32 char:4
+ [cmdletbinding(DefaultParameterSetName='Send')]
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected attribute 'cmdletbinding'.
At C:\Scripts\documents\Windows powershell\Calendar update Powershell 21.12.03 Hery.ps1:34 char:1
+ param
+ ~~~~~
Unexpected token 'param' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedAttribute
Hi Robert,
Could you please show me a version of the code where I can see where the path is entered into the code in the correct format? I haven't used this before and have gotten to stage 5 in your tutorial but am not sure where to enter this in the code.
After loading the ps1-script in PowerShell, you can use the Send-OutlookMailFromTemplate command in the following way;
Send-OutlookMailFromTemplate -Path 'D:\Templates\My Template.oft' -Attachment 'D:\Files\My File.pdf'
Hello,
I have a problem. I think the problem is the path. my path is "C: \ Scripts \ Documents \ WindowsPowerShell \ loner.oft"
I wonder where in the script this path should be placed?
Thank you very. It solved my problem..
12 people are following this question.