Assigning Sensitivity to an outlook email

RZoig

New Member
Joined
Jul 10, 2013
Messages
48
Office Version
  1. 365
Platform
  1. Windows
Hello

I've created (after some search) a set of VBA code that use Outlook (this is mandatory) to send mails according to a list in Excel
Everything is working fine except one (critical) thing.

My organization as set 'Internal use' as a default setting for every new emails in Microsoft Outlook.
I've inserted a line to change Sensitivity to 'normal'
Nothing changes!
Emails keep being sent with 'internal' sensitivity and can't be read outside my organization!

This is part of the code:

' create email​
Set objEMAIL = ObjOutlook.CreateItem(olMailItem)​
With objEMAIL​
.Display​
'who​
.SendUsingAccount = ObjOutlook.Session.Accounts(1)​
.SentOnBehalfOfName = "xxxx@xxx.xx"​
' define sensitivity (NOT WORKING)
.Sensitivity = olNormal
'Subjet​
.Subject = "Test"​
'Body​
.HTMLBody = "hello.<br/><br/><b/>Test "​
' Email​
.To = Email​
'Check​
If Anexo <> "" Then​
.Attachments.Add Anx​
'Sent​
.Send​

The macro works smoothly, emails are being sent but sensitivity doesn't change.

This line:
.Sensitivity = olNormal
Should it be different in order to emails are sent with Outlook 'Public' sensitivity??

Thank You!
Rzoig
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,215,455
Messages
6,124,938
Members
449,197
Latest member
k_bs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top