Click here to Skip to main content
15,892,674 members
Articles / Web Development / ASP.NET

Send scheduled Reminder/Alerts by email in SharePoint

Rate me:
Please Sign up or sign in to vote.
4.87/5 (14 votes)
24 Mar 2009CPOL12 min read 593.3K   2.1K   67  
Learn how to create a SharePoint Job that queries lists and sends results via email.
<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/_layouts/application.master" CodeBehind="ReminderSettings.aspx.cs" Inherits="Mullivan.SharePoint.Pages._ReminderSettings,Mullivan.SharePoint.Pages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bb195b1a3f3a0feb" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 

<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="<%$Resources:wss,listedit_pagetitle%>" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderId="PlaceHolderPageDescriptionRowAttr" runat="server">
style="display:none;"
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderId="PlaceHolderPageDescriptionRowAttr2" runat="server">
style="display:none;"
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
<asp:Image ImageUrl="~/_layouts/images/remindersettings.gif" runat="server"  />
<SharePoint:FormattedString ID="FormattedString1" FormatText="Reminder Settings - {0}" EncodeMethod="HtmlEncodeAllowSimpleTextFormatting" runat="server">
	<asp:HyperLink id="onetidListEditTitleLink" runat="server" visible="true"/>
</SharePoint:FormattedString>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
	<IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt="">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<div style="text-align:center">
    <div style="width:1%;">    
        <asp:ListBox style="width:300px;height:200px" ID="lboxReminders" runat="server" />
        <table cellpadding="5" cellspacing="0" border="0" width="100%">
            <tr>
                <td><asp:ImageButton ID="ibtnEdit" runat="server" onclick="ibtnEdit_Click" /></td>
                <td><asp:ImageButton ID="ibtnAdd" runat="server" onclick="ibtnAdd_Click" /></td>
                <td><asp:ImageButton ID="ibtnDelete" runat="server" onclick="ibtnDelete_Click" /></td>
                <td><asp:ImageButton ID="ibtnMoveUp" runat="server" onclick="ibtnMoveUp_Click" /></td>
                <td><asp:ImageButton ID="ibtnMoveDown" runat="server" onclick="ibtnMoveDown_Click" /></td>
            </tr>
        </table>
    </div>
</div>
</asp:Content>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions