Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to change the first message when you create a new alert. See example below:

Tried this for making a custom alert

on added posts: http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx

And this works fine, but you cannot change the first alert message here. Any Ideas about where to change this?

Alert 'PostsNinja' has successfully been added on 'ImageBlog'. You will receive alerts according to the delivery method, timing and criteria that were selected when the alert was created. You can change this alert or any of your other alerts on the My Alerts on this Site page.

I know how to do this for item added by using the alerttemplate xml file, but can not find for the first message.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

What you need to do is to avoid sending a confirmation automatically when creating the alert:

var newAlert = currentUser.Alerts.Add();
...
bool sendmail= false;
newAlert.Update(sendmail);

Then send the subscription manually instead using:

SPUtility.SendEmail(myWeb,headers,"You got mail");

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility.sendemail.aspx

The email template can for example be stored in a resource file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.