Learn how to check for restricted words in an Outlook email message body, add a recipient to the CC line and check that there is a subject in the email on send.
If I include the word "attachment" in the email body and I click Send button, OnSend event is fired once and a pop-up modal window shows up with this message:
Attachment reminder
You may have forgotten to attach a file.
with Send and Don't send buttons. If click Send, OnSend event get fired twice: 2 times after clicking Send button within attachment reminder. I was expecting only one event like the first Send (before attachment reminder pop-up).
If I include the word "attachment" in the email body and I click Send button,
OnSend
event is fired once and a pop-up modal window shows up with this message:with Send and Don't send buttons. If click Send,
OnSend
event get fired twice: 2 times after clickingSend
button within attachment reminder. I was expecting only one event like the first Send (before attachment reminder pop-up).