Click here to Skip to main content
15,895,793 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 594.4K   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/dialog.master" CodeBehind="FieldValueDialog.aspx.cs" Inherits="Mullivan.SharePoint.Pages._FieldValueDialog,Mullivan.SharePoint.Pages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c37a514ec27d3057" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 

<asp:Content ID="Content1" contentplaceholderid="PlaceHolderDialogHeaderPageTitle" runat="server">
		<asp:Literal runat="server" ID="dialogTitle" />
</asp:Content>
<asp:Content ID="Content2" contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
	<SharePoint:ScriptLink ID="ScriptLink1" language="javascript" name="FieldValueDialog.js" runat="server" />
	<SharePoint:ScriptLink ID="ScriptLink2" language="javascript" name="core.js" runat="server" />
	<script type="text/javascript" Language="javascript">
		function HandleOkClicked() {
			var strDlgReturnValue = new Array(1);
			strDlgReturnValue[0] = "<%= feValue.Value %>";
			var strDlgReturnErr = "<%= feError.Value %>";
			if(strDlgReturnValue[0] == null || strDlgReturnValue[0].length <= 0)
			{
			    alert(FE_NullSelectionText_TEXT);
			}
			else
			{
			    return FE_HandleOkReturnValues(strDlgReturnValue, strDlgReturnErr);
			}
		}
	</script>
	<SharePoint:FormDigest ID="FormDigest1" runat=server/>
</asp:Content>
<asp:Content ID="Content3" contentplaceholderid="PlaceHolderDialogImage" runat="server">
	<asp:Image ID="queryBuilderIcon" width="32" height="32" runat="server" />
</asp:Content>
<asp:Content ID="Content4" contentplaceholderid="PlaceHolderDialogDescription" runat="server">
	<asp:Literal runat="server" ID="dialogDescription" />
</asp:Content>
<asp:Content ID="Content5" contentplaceholderid="PlaceHolderHelpLink" runat="server">
</asp:Content>
<asp:Content ID="Content6" contentplaceholderid="PlaceHolderDialogBodyMainSection" runat="server">
	<DIV ID="HiddenFields" >
		<asp:HiddenField ID="feValue" Value="" runat="server" />
		<asp:HiddenField ID="feError" Value="" runat="server"/>
   </DIV>
   <div style="width:100%">
     <TABLE class="ms-propertysheet" border="0" width="100%" cellspacing="0" cellpadding="0">
	
		<tr >
			<td class="ms-sectionline" height="1" colspan="2"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td>
		</tr>

		<tr >
			<td class="ms-descriptiontext" valign="top">
				<table border="0" cellpadding="1" cellspacing="0" width="100%">
					<tr>
						<td class="ms-sectionheader" style="padding-top: 4px;" height="22" valign="top">
						  <H3 class="ms-standardheader">
                                Name and Type
						   </H3>
						</td>
					</tr>

					<tr>
						<td class="ms-descriptiontext ms-inputformdescription">
							Type a name for this column.
						</td>
						<td><IMG SRC="/_layouts/images/blank.gif" width=8 height=1 alt=""></td>
					</tr>

					<tr>
						<td><IMG SRC="/_layouts/images/blank.gif" width=150 height=19 alt=""></td>
					</tr>

				</table>
			</td>
			<td class="ms-authoringcontrols ms-inputformcontrols" valign="top"
			align="left" >
				<table border="0" width="100%" cellspacing="0" cellpadding="0">
					<tr>

						<td width="9px"><IMG SRC="/_layouts/images/blank.gif" width=9 height=7 alt=""></td>

						<td><IMG SRC="/_layouts/images/blank.gif" width=150 height=7 alt=""></td>

						<td width="10px"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></td>

					</tr>
					<tr>
						<td />
						<td class="ms-authoringcontrols">
							<table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0">
								
			
					<tr>
						<td class="ms-authoringcontrols" colspan="2" nowrap>
							<span>Column name:</span>
						</td>
					</tr>
					<tr>
						<td><IMG SRC="/_layouts/images/blank.gif" width=1 height=3 alt=""></td>
					</tr>
					<!-- End Right_Text -->
					<tr>
						<td width="11" ><IMG SRC="/_layouts/images/blank.gif" width=11 height=1 alt=""></td>
						<td class="ms-authoringcontrols" width="99%">
					    <asp:Label ID="lblColumnName" runat="server" />
						</td>
					</tr>
					<tr>
						<td><IMG SRC="/_layouts/images/blank.gif" width=1 height=6 alt=""></td>
					</tr>
					<tr>
						<td class="ms-authoringcontrols" colspan="2" nowrap>
							<span>The type of information in this column is:</span>
						</td>
					</tr>
					<tr>
						<td><IMG SRC="/_layouts/images/blank.gif" width=1 height=3 alt=""></td>
					</tr>
					<!-- End Right_Text -->
					<tr >
						<td width="11" ><IMG SRC="/_layouts/images/blank.gif" width=11 height=1 alt=""></td>
						<td class="ms-authoringcontrols" width="99%">
							
					    <asp:Label ID="lblColumnType" runat="server" />
				
						</td>
					</tr>
					
					<tr >
						<td><IMG SRC="/_layouts/images/blank.gif" width=1 height=6 alt=""></td>
					</tr>

		
							</table>
						</td>
						<td width="10px"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></td>
					</tr>

					<tr>
						<td />
						<td><IMG SRC="/_layouts/images/blank.gif" width=150 height=13 alt=""></td>
						<td />
					</tr>

				</table>
			</td>
		</tr>
		<tr >
			<td class="ms-sectionline" height="1" colspan="2"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td>
		</tr>

		<tr >
			<td class="ms-descriptiontext" valign="top">
				<table border="0" cellpadding="1" cellspacing="0" width="100%">
					<tr>
						<td class="ms-sectionheader" style="padding-top: 4px;" height="22" valign="top">
						  <H3 class="ms-standardheader">
                                Value
						   </H3>

						</td>
					</tr>

					<tr>
						<td class="ms-descriptiontext ms-inputformdescription">
							Edit the value for your field.
						</td>
						<td><IMG SRC="/_layouts/images/blank.gif" width=8 height=1 alt=""></td>
					</tr>

					<tr>
						<td><IMG SRC="/_layouts/images/blank.gif" width=150 height=19 alt=""></td>
					</tr>

				</table>
			</td>
			<td class="ms-authoringcontrols ms-inputformcontrols" valign="top"
			align="left">
			    <asp:Panel ID="pnlEditContainer" style="padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px" runat="server" />
			</td>
		</tr>
   </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