Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E mail notifications

Status
Not open for further replies.

theprowler

Programmer
Mar 25, 2005
29
IT
Hi,
can a user send an e-mail notification to other users after inserting a new announcement in the "News" Library?

Can a user choose to whom send an e-mail?

Do i have to use document library events?

Thanks in advance,
Massimo
 
No. At least in the default Sharepoint out of the box software.

Are you trying to achieve something else other then notifying users that there is new news?
 
No, nothing else, but i think i got a solution.

First i tried to use doc library event handling, but "News" is not a library, is a simple List and for them you cannot use events...

Then i tried to customize the list toolbar for inserting a new option for inserting a new news with the possibility to send e-mails but changing CAML for toolbars is to complex, just because you have to find the right toolbar :)

At the end i've created a simple web part that sends e-mail to users that have access on this site. I can call this web part using the customized shortcut menu of Lists.

I've added a voice called "Send E-mail to..." in the menu using the following code:

Code:
function Custom_AddListMenuItems(m, ctx)
{
  var strImagePath = ctx.imagesPath + "abb.gif";
  var strAction = "goToMailManager('" + ctx.HttpRoot + "')";
  //var strAction = ;
  CAMOpt(m, "Send Mail To...", strAction, strImagePath);
  CAMSep(m);
  // false means that the standard menu items should also be rendered
  return false;

}


 
I dont think you have created this :p i remember seeing this example and the comment is the same! But its nice none the less
 
Of course i didn't.
I've never said i created that code, but i said i've created a web part that uses that piece of code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top