.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Automatic Email alert generation

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :ASP.Net
hi.. my web application contain insurance due date field(in TextBox,which is enterd by user),and i need automatic email alert generation for this field 1 month before the date specified in the textbox to specific email address... how can i code my requirement in c#...can any one one suggest altenate option if my concept is wrong...thanks in advance 

View Complete Post

More Related Resource Links

Add Issue ID to an email alert?


Dear all,

(running WSS 3.0)

I'm desperately trying to add the Issue ID to the alert email that is sent when a list item is assigned to you. I have looked around and followed many tutorials online, however none of my changes have had any effect. So far I have done:

  1. Copied alerttemplates.xml to customalerttemplates.xml
  2. Edited customalerttemplates.xml
  3. Removed "ID" from <ImmediateNotificationExcludedFields>
  4. Ran stsadm -o updatealerttemplates -url http://server -filename "C:\Program files\common files\Microsoft shared\web server extensions\12\template\XML\customalerttemplates.xml"
  5. Ran iisrest
  6. Restarted Sharepoint Timer service

However even after doing that the email sent when an item is assigned is just the basic default! I've just tried to add the ID to the most simple section of the email (footer) however nothing seems to change the email alert.

I've followed guides such as:


Immediate alert email body is truncated intermittently in MOSS 2007

Hi All, I  am facing one issue with Alert. We have one Posts list in one of the Blog where Alert Me generates immediate alert for the users who have subscribed to the Blogs. Whenever any new Post added, edited or deleted they used to get alerts. But in the alert email, the body of the alert which normally contains the Post decsription gets truncated intermittently. Sometimes it is truncated with less than 2048 characters in the Body filed and some times with more than 4098 characters. I found in some articles that the limitation is 2048 characters in one line after whcih the new line is expected , else the text will be truncated. I am not able to find the logic behind this truncation in default sharepoint alert functionality. Could you please give some more insights on this front? Thnaks:)  

sending automatic email

Hi,I need to write a stored procedure to schedule a job that will send automatic email to customers based on some condition as follows:1. I have two tables. One table is table1 like the following: Name Date1  Date2 Date3 Rahim, Khan 29'10 30'11 25'08 Karim,Abedin 12'10 28'11 26'09 Fahad, Alam 26'10 12'11 25'10 Another Table is table 2 like the following: Name Email Rahim,Khan rahim@yahoo.com Karim,Abedin karim@yahoo.com Fahad, Alam falam@yahoo.com In table 1 the date format is in format where 30'11 mean work week is 30 and 11 means last two digits of the year.2. Now , I need to write a stored procedure that will check :a) What is current work week and current year? b) It will then determine the difference between the current work week (now 37) and work week mentioned in date (Date1, Date2 and Date3) columns from table1 and if for current year(it's 2010) at least one difference in each row is>=8 then it should send an automatic email to the corresponding email address of Name column using the relation between Table1 and table2. For example: For first record in Table1 the three difference is: 37-29=8, 37-30=7 and 37-25=12. There are two differences >=8, but only first difference is for year 2010 and third one is not for current year. But, since at least one difference in this row satisfies condition

Custom Email Alert template creating links to DispForm.aspx

I have a requirement to customise the alert template for a standard blog post list. To do this I: 1. Created a copy of alertstemplate.xml 2. Copied the genericList alert template node and customised 3. Registered the new template file against the site collection, iisreset and finally assigned the new Alert template to the list, when alerts are created the custom template is emailed. The problem now arises that the 'View <Post Title>' in the toolbar section now creates a hyperlink to http..../Lists/Posts/Dispform.aspx?ID=xx rather than post.aspx. I have checked using sharepoint designer that the list supporting files has the correct display item form of Lists/Posts/Post.aspx. Additionally if I reset the alert template for the list back to use the Generic list template the same problem still occurs so this leads me to believe it is not the customisations that are the problem. Code used to assign the alert template to the Posts list: var ats = new SPAlertTemplateCollection((SPWebService) site.WebApplication.Parent); var newTemplate = ats[alertName]; if (newTemplate == null) { // We did not find the specified Template. throw new Exception("Failed to find template SPAlertTemplateType.NewsPost in the template collection."); } list.AlertTemplate = newTemplate; list.Update(); Any assistance will be most welcome, thanks in advance. Alan

Lotus Notes users get "Authentication Required" when viewing an alert email with a graphic

(This is a SharePoint 2007 question, but I only see SharePoint 2010 in the Forum options...kind of odd since SharePoint 2010 has not been released.)If our users open email alerts in Lotus Notes, and the email has an image, they are presented with a prompt for credentials that says:"Authentication RequiredEnter your username for Unkown at sharepoint.ourcompany.comUsername________________________Password________________________[ ] Save these in an Account in my address book[OK][Cancel]"Emails without graphics do not prompt for credentials.Does anybody know why this happens, or how we can fix it?

what is solution to enable my email alert

Hi, same problem I am also facing, but here I need a help, if I am rollback my changes means in “Item-level Permissions” section again I am selecting all items. But still I am not getting email, I need to enable my email alert ,what is solution to enable my email alert .

I need to enable my email alert ( after rollback my changes )

Hi, same problem I am also facing, but here I need a help, if I am rollback my changes means in “Item-level Permissions” section again I am selecting all items. But still I am not getting email, I need to enable my email alert ,what is solution to enable my email alert .

List can't send alert email

 the list can't send alert email successfully when filled in the assigned value with a user.  the out-going email configuration is right in central administration. the strange thing is If I create a new list, its can send mail successfully just one day, and stopped to work later. anybody can help me?Qiqing

Alert email showing local url not internet url


I have setup SharePoint to be accessed via the internet and configured aam.

I can access the site from the Internet, but whenever i setup an alert on a library, the email that is sent out contains a link showing the internal url, not the Internet URL.

I need the email to show the external URL.

Any ideas?

SharePoint Designer 2010 Workflow Email alert customization


Is this is possible to make html format Email alerts in SharePoint designer 2010??

Thank you

A. Shilambuselvan

SharePoint Portal Server 2003 - email alert based on due date


Hello All,

Hoping someone can help us here.

Note:Workflow/3rd party solutions not an option-

We would like to send an email alert when a list items due date is eqaul to "today".

We are trying to manage some certificates of compliance by flagging the "due date of the particular certificate (list item)" and sending an alert email when that occurs.

Is this feasible in any manner without workflow?

Is it possible to send an alert based on a calculated field when that calculated data changes? .

Any direction would be appreciated.

Thank you

Mike Harvey
Software Solutions Architect


email alert notification when task status column value is chaned


Hi All,

I am creating a document library in which there are few columns present (like Assigned To,Task Status,Reviewr etc.)

I want to send alert or email notification when the status value is changed. Alert should go to "Assigned To" selected value from the Reveiwers name.

I have tried this with "alert me" functionality provided by WSS 2007 but I think it will not sufficient for me?.

I am not able to proceed please help me?

Changing the display name in an email alert


Hi all,

I created a custom workflow that sends email alerts based on a certain status of a list.  The email addresses that are sent are concatinations of 2 columns and a text string.  All emails come in from the system account that is setup for SharePoint.  Is there a way to change the display name on the "From" of the email using SPD? 

Now everything comes in from SPAdmin@mydomain.com.  can I change that to say Newratechange@mydomain.com for new items, modifiedRateChange@mydomain.com for changes?

Is something like that posible?  I use a third party workflow/alert product that does this, but when it comes to concatinating list items to make an email address it falls short and I need to use a custom Workflow to handle that.




How to hide the Start Time and End Time columns in Alert email in Sharepoint ?



I want to  hide the Start Time and End Time columns in Alert email.

These columns I have hidden in the Calandar control but still showing in the email message...

Any help appriciated....


Srikanth Reddy

Modifying discussion board 'Alert me" Email Body

Hi i would like to modify the email body of alert me. I just don't like the link to modify the alerts in the body. in the alerts XML there is a variable for the entire body ( <![CDATA[$Resources:Lerts-weeklysummary;]]> ). how do i modify the content of body to remove "You can change this alert or any of your other alerts on the My Alerts on this Site page."

email body format is shown below

Alert 'English Primary Discussion - Weekly Alert' has successfully been added on 'English - Primary'.

You will receive alerts in e-mail. The timing and criteria for the alerts depend on the settings entered when the alert was added.

You can change this alert or any of your other alerts on the My Alerts on this Site page.

Empty field on Alert Notification email sent to user when they add an 'Alert Me'




I'm trying to figure out the empty field that should be populated in the email that a user receives when adding an alert. The missing field is the bit in single quotes that is blank. I have added a link to a screenshot below as well.

What is the source of this field? Any ideas why it is blank?


thanks in advance.


Alert 'xxx' has successfully been added on '' .

You will receive alerts in e-mail. The timing and criteria for the alerts depend on the settings entered when the alert was added.

You can change this alert or any of your other alerts on the My Alerts on this Site page.



Is there a way to customize alert creation email?


Hi there

I am working on the branding of alerts and have successfully branded the alerts but am wondering if there is a way to customize the email which user gets when alert is created by a user.

For alert creation, this article(http://blogs.msdn.com/sharepointdeveloperdocs/archive/2007/12/14/how-to-customizing-alert-emails-using-ialertnotificationhandler.aspx) was very helpful.

Thanks in advance.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend