TO restrict user to change incoming
email settings, we must customize some of aspx files.
Implementation Instructions
1.
Logon to the servers, and open “C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\12\template\LAYOUTS”.
2.
Take back up following 2 aspx files, and place them on same
directory.
* new.aspx
* EmailSettings.aspx
* new.aspx
* EmailSettings.aspx
3.
Change file name that you back up now as below
* new.aspx → new_xxx.aspx
* EmailSettings.aspx → EmailSettings_xxx.aspx
* new.aspx → new_xxx.aspx
* EmailSettings.aspx → EmailSettings_xxx.aspx
4.
Open new.aspx(Original). And add “disabled="disabled"” in the following
code.
Around
line 412…
disabled="disabled"
>disabled="disabled"
disabled="disabled">
Around line 504….
disabled="disabled">
disabled="disabled">
5.
Save and close.
6.
Open EmailSettings.aspx(Original). And change code
as following.
Around line 97…
Original
function _spBodyOnLoad()
{
SetControlsDisabled(document.getElementById("<%= EnabledFalse.ClientID %>").checked);
}
New
function _spBodyOnLoad()
{
//SetControlsDisabled(document.getElementById("<%= EnabledFalse.ClientID %>").checked);
SetControlsDisabled(document.getElementById("<%= EnabledFalse.ClientID %>").disabled = true);
SetControlsDisabled(document.getElementById("<%= EnabledTrue.ClientID %>").disabled = true);
}
Around line 97…
Original
function _spBodyOnLoad()
{
SetControlsDisabled(document.getElementById("<%= EnabledFalse.ClientID %>").checked);
}
New
function _spBodyOnLoad()
{
//SetControlsDisabled(document.getElementById("<%= EnabledFalse.ClientID %>").checked);
SetControlsDisabled(document.getElementById("<%= EnabledFalse.ClientID %>").disabled = true);
SetControlsDisabled(document.getElementById("<%= EnabledTrue.ClientID %>").disabled = true);
}
7.
Save and close.
8.
Repeat above step for all WFEs.
how to open the setting page
how to open the setting page
1.
Open the document library you just
created.
2.
Click Settings – document library settings.
3.
Under Communication Settings click E-Mail
Settings.
4.
Change URL as below.
http:/xxx/sites/xxx/_layouts/EmailSettings.aspx?List=xxx
↓
http:/xxx/sites/xxx/_layouts/EmailSettings_xxx.aspx?List=xxx
http:/xxx/sites/xxx/_layouts/EmailSettings.aspx?List=xxx
↓
http:/xxx/sites/xxx/_layouts/EmailSettings_xxx.aspx?List=xxx
No comments:
Post a Comment