In The Mix

As a SharePoint architect I have the business behind me and the Developers and IT Pro on my shoulders.

Disable Send welcome e-mail to the new users March 31, 2008

Filed under: SharePoint — fmuntean @ 3:16 pm
Tags:

In SharePoint when adding a new user to your site the check-box “Send welcome e-mail to the new users” is checked by default. This can be very annoying and personally I think that might count as spam when setting up multiple sites in SharePoint. (Usually adding the users happens before the sites are ready for the public use, and an official e-mail is sent later to announce the site when you are ready.)  I always find myself unchecking it so I started looking into ways to ease my life.

There is a easy way to disable this:

The page that controls this is in Layouts folder under the 12 Hive (as it is known by SharePoint admins). The page name is aclinv.aspx. I recommend creating a copy of the file before making any changes for backup purposes. You will need to modify just one line inside it.Starting at line 190 look for the following code:
<wssawc:InputFormCheckBox
     runat=”server”     
     id=”chkSendEmail”
     Checked=”True”
     LabelText=”<%$Resources:wss,aclver_SendEmailCheckbox%>”
     ToggleChildren=true>
     ……

Now all we need to change is the line: Checked=”True” to Checked=”False”.

Note: If you have multiple Web Front End Servers make sure that you change the file on all of them.

Advertisements
 

11 Responses to “Disable Send welcome e-mail to the new users”

  1. Jeff T Says:

    Thank you for posting this…I’ve been wondering the same thing, if that annoying checkbox could be turned off. Thanks for the solution…I’ll be trying this out on our dev box.

  2. […] Over on In the Mix, Florin Muntean, posts a nice and simple solution to alleviate your SharePoint headaches. […]

  3. Pravin Says:

    Good post.. I tried setting bold font:

    <wssawc:InputFormCheckBox Font-Bold=”true” …

    But the checkbox text is not rendering in bold text. Any ideas?

  4. fmuntean Says:

    The InputFormCheckBox is a SharePoint control and they are applying some formatting by default.
    I would recomend to use the CssClass attribute to override the formatting.

    Florin

  5. Peppe Says:

    Thanks for the useful input.
    Is there a way to disable the entire ‘Send Email” section in the Add User page?

    Thanks
    Peppe

  6. fmuntean Says:

    Hi Peppe,

    One simple way to “disable” (not showing the whole section) is to wrap it arround a hidden tag. Now this approach again will require you to modify the page on all your servers and is not the recomended way by Microsoft. Thus you will need to retest and reaply the fix after any update that will modify that page.

    To implement it the recommended way requires a lot of work and imply using a custom developed page that will be used insead of the system one. An HTTP module url revriter can be used to redirect to the custom page when the users try to get to the system page.

    Florin

  7. Peppe Says:

    OK, thank you for the suggestions!

  8. Vicky Says:

    Thanks,

    That was helpfull.

    Regards,

    Vicky

  9. Erwin Says:

    Thanks,

    It was a pain in the ase for me

    Regards,

    Erwin

  10. 乳膠床墊 Says:

    Simply, one of the best article l have come across on this precious subject. I quite agree with your suppositions and will eagerly look forward to your forthcoming updates.

  11. Zubair Says:

    Hi,

    Is there a way that we can set up this feature to use in the sender field, the email address of the actual user who is granting the permission? It is using the same (common) email address for all alerts and this is causing a problem in the event of granting permission as the receipient responds to this common address (in case still access is denied on the link) instead of addressing the user who granted the permission.

    thanks


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s