Hi,

We would like to set the "Read receipts" setting in Microsoft Outlook and Outlook Express to a default "Notify me for each read receipt request".

I have written a script which works fine if there is only one identity configured in OE or Outlook. But, if there is more than one, the script does not set for all identities.

Would greatly appreciate if somebody could shed some light on how to achieve it for all users. My code is given below for your reference.
code:
 
Break On
$var_name = ReadValue("HKEY_CURRENT_USER\Identities","Default User ID")
$reg_value_OE = ReadValue ("HKEY_CURRENT_USER\Identities\$var_name\Software\Microsoft\Outlook Express\5.0","SendMDN")
$Outlook_exist = KeyExist ("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Options\Mail")
$reg_value_MO = 3 ; Dummy value for Microsoft Outlook registry value
If $Outlook_exist = 1
$reg_value_MO = ReadValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Options\Mail","Receipt Response")
EndIf

Select
Case ($reg_value_OE = 1) OR ($reg_value_MO = 0)
$Mail_App_Setting = 1
Case ($reg_value_OE = 2) OR ($reg_value_MO = 1)
$Mail_App_Setting = 2
Case ($reg_value_OE = 4) OR ($reg_value_MO = 2)
$Mail_App_Setting = 3
EndSelect

If ($Mail_App_Setting = 1) OR ($Mail_App_Setting = 2)
$mod_reg_OE = WriteValue ("HKEY_CURRENT_USER\Identities\$var_name\Software\Microsoft\Outlook Express\5.0","SendMDN","4","REG_DWORD")
If $Outlook_exist = 1
$mod_reg_MO = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Options\Mail","Receipt Response","2","REG_DWORD")
EndIf
EndIf
Exit

Regards

Onlinegames