question

Angelo-5989 avatar image
1 Vote"
Angelo-5989 asked KarenSwartzIdlewoodElementary-6765 answered

How to send recurring email using outlook 365

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..

office-outlook-itprooffice-addins-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RobertSparnaaij avatar image
1 Vote"
RobertSparnaaij answered RobertSparnaaij commented

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


· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

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.

0 Votes 0 ·

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

0 Votes 0 ·

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.

0 Votes 0 ·

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'

0 Votes 0 ·

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?

0 Votes 0 ·
Show more comments
Angelo-5989 avatar image
0 Votes"
Angelo-5989 answered RobertSparnaaij commented

Thank you very. It solved my problem..

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Good to to hear and you're welcome! :-)

0 Votes 0 ·
KarenSwartzIdlewoodElementary-6765 avatar image
0 Votes"
KarenSwartzIdlewoodElementary-6765 answered

Having to use code is not "quite easy." It's ridiculous that it's so difficult to do something I used to do with ease and without having to pay for and "add in".

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.