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

Top 5 Contributors of the Month
Post New Web Links

Getting initial confirmation mails but not the Alert mails

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#

Hi All,

I am getting initial confirmation mail as "Alert has been craeted for Tasks list successfully", but when i change anything there then no alert is triggered. I have tried all the below commands, but no joy

Use STSADM to verify properties

Note – To add to STSADM’s to paths use SET PATH=%PATH%;"c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\"

STSADM -o getproperty -url http://YourSiteURL -pn alerts-enabled
You should see  <Property Exists=”Yes” />
STSADM -o getproperty -url http://YourSiteURL–pn job-immediate-alerts

You should see something like the default (but can be changed) <Property Exists=”Yes” Value=”every 5 minutes between 0 and 59” />

Use STSADM to reset properties

Some users have reported that even though these properties are listed correctly above, simply resetting them solved the problem. Be aware, some but not all have reported that this can remove existing alerts.

stsadm –o setproperty –url http://YourSiteURL –pn alerts-enabled –pv False
stsadm –o setproperty –url http://YourSiteURL –pn alerts-enabled 

View Complete Post

More Related Resource Links

create Scheduled Task that auto send mails


hello every one

i bought a hosting plan that allows me to send about 500email/per hour

but my client wish to send about 2000 or 3000 email at a time

is there a way to split them and 500 email per a time automaticly without the need of reloging again every hour

my hosting plan doesn't allow me to create a sql jop or send mails via Sql Server.

any bright ideas ?

Workflow E-mails with Long Text Truncate the Text

The title is pretty self-explanatory.  I have a few fields that are generated from some Infopath Forms.  The text, however, truncates and doesn't display the entire text.

Anyone have any suggestions?

Modify Subject line of Notification e-mails sent by Database Mail

Hello All, I am using database mail for SQL Server Agent Job notification.  It is working just great. However the e-mails that I receive have a specific format of subject line as below. SQL Server Job System: 'TEST' completed on \\Server_Name I wanted to see if I can modify this to send e-mails with this subject line. SQL Server Job System: 'TEST' completed on <Server_Name> Is this possible?  If so can someone help me with the steps? Thanks.

Multiple mails for OnError Event

Hi,I have created an event handler for a task's OnError scenario. The event handler contains a SendMail task, which has the following expression"Package Name: " + @[System::PackageName] + "\n" +"Start Time: " + (DT_WSTR, 30) @[System::StartTime] + "\n" +"Error: " + @[System::ErrorDescription] + "\n" +"Task: " + @[System::TaskName] The target table has a unique constraint, and in order to test my error handling technique, I wantedly introduced duplicate records in my source. What happens is, I get three different email, with three different error codes.  I am pasting the mail contents here:Mail1:Package Name: PackageStart Time: 1/6/2010 11:13:05 PMError: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E2F.An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E2F  Description: "The statement has been terminated.".An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E2F  Description: "Violation of PRIMARY KEY constraint 'PK_ts_installs'. Cannot insert duplicate key in object 'dbo.ts_installs'.". Task: DFT_INS_TS_INSTALLS_ERROR Mail2:Package Name: PackageStart Time: 1/6/2010 11:13:05 PMError: SSIS Error C

Dynamically assign mails using SPD 2007


Hi all,

I have a requirement of sending mails to different departments based on the action of the department members using SPD 2007. if a sales person updates his sales, a mail should go to sales head. if a service person updates, a mail should go service dept. I have all these stored in the one list.

Another issue is i have member group and manager group using the same list. i want a mail sent to specific manager when a member from member group updates, simillarly send mail to specific member when manager updates.

Please let me know if we can achive these dynamic mails in workflow using sharepoint desingner 2007.

Thanks in advance






Database mail configured, but mails not getting send?


I've configured Database mail, but mails are not getting sent. Checked BOL & various blogs and forums, I'm performing correct steps, using correct smtp server name & port.


DM mail log says: 

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 19 (2010-10-22T07:24:21). Exception Message: Could not connect to mail server. (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <IP_ADD>:25).


On restarting SQL Agent, log says:

[355] The mail system failed to initialize; check configuration settings

[260] Unable to start mail session (reason: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException: Mail configuration information could not be read from the database. ---> System.Data.SqlClient.SqlException: profile name is not valid

   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)

   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)

   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStre)


Receiving mails in C#


i am  receiving mails in c# using POP3.i cann't receiveing the send and spam mails in my application.


tell me ,any other techniques available in c# for receiving mails except POP. 

POP3 reading mails automatically



I Need to make an application that reads an email automatically (when there is an new email) and delete it afterward , those emails have an attachement that i want to use later.

Printing unread mails


How to print Subject of unread mails in the message dialog ?


I mean what is the condition to print the subject of an unread mail ?

C# sending smtp mails failed


Hi All,

I am trying to figure out what suddenly happened to my project. It was working fine but now its not.

this is stack trace

   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at WindowsKeyloggerTool.frmSettings.SendTestMail(String message) in c:\users\avinash\documents\visual studio 2010\Projects\WindowsKeyloggerTool\WindowsKeyloggerTool\frmSettings.cs:line 103
   at WindowsKeyloggerTool.frmSettings.ValidateUserCredentials() in c:\users\avinash\documents\visual studio 2010\Projects\WindowsKeyloggerTool\WindowsKeyloggerTool\frmSettings.cs:line 75

and inner exception

Unable to find an entry point named 'EnumerateSecurityPackagesW' in DLL 'security.dll'.

   at System.Net.UnsafeNclNativeMethods.SafeNetHandles_SECURITY.EnumerateSecurityPackagesW(Int32& pkgnum, SafeFreeContextBuffer_SECURITY& handle)
   at System.Net.SafeFreeContextBuffer.EnumeratePackages(SecurDll Dll, Int32& pkgnum, SafeFreeContextBuffer& pkgArray)
   at System.Net.SSPISecureChannelType.EnumerateSecurityPackages(Int32& pkgnum, SafeFreeContextBuffer& pkgArray)
   at System.Net.SSPIWrapper.EnumerateSecurityPackages(SSPIInterface SecModule)

Please help you. I am no brainer here.

GridView Confirmation Box Using JQuery BlockUI in asp.net

JQuery is the most popular JavaScript library. One of the main reasons for its fame is the plugin architecture. Anyone can create a separate library that leverage the JQuery library. In this article we are going to look at the BlockUI library which is used to block the user screen while performing a task.

GridView Confirmation Box Using JQuery BlockUI

JQuery is the most popular JavaScript library. One of the main reasons for its fame is the plugin architecture. Anyone can create a separate library that leverage the JQuery library. In this article we are going to look at the BlockUI library which is used to block the user screen while performing a task.

Adding Client-Side Confirmation When Deleting

The JavaScript confirm(string) function displays its string input parameter as the text inside a modal dialog box that comes equipped with two buttons - OK and Cancel (see Figure 1). The confirm(string) function returns a Boolean value depending on what button is clicked (true, if the user clicks OK, and false if they click Cancel).

replacing ok and cancel button of an alert message with YES an NO button in asp.net web application.


i want to replace ok and cancel button of an alert message with YES an NO button in asp.net web application.When a user will click yes the data will be saved in the database and if user clicks that will act as a reset button and do not save the data in database and the control will move with as usual to the redirect page.Any pointers will be highly appreciated.I am usin g C# language.

Stay Alert: Use Managed Code To Generate A Secure Audit Trail


In today's security-conscious environments, a reliable audit trail is a valuable forensic tool The Windows Server 2003 operating system provides features that let you enable a wide range of applications to make use of auditing functionality. This article looks at auditing from the operating system perspective and describes a sample managed code implementation that will allow you to add auditing to your own server applications.

Mark Novak

MSDN Magazine October 2005

Conditional alert box in view


When a view is shown, base on a simple conition in the model (Model.RenewalDate < DateTime.Today), I need to pop up an alert box saying 'Membership renewal is overdue'. There's no process required beyond that. Just a simply popup information box, then continue as normal.

I know the java to create an alert, or I could use the jquery modal, not bothered, but I can't work out the code in the view (yeah, I know logic doesn't belong in a view, but this really is a view concern as there's no functionality required beyond the message).

Sharepoint alert error



Something strange is happening here. I have a list whose itens alerts are not sending, but iclusion or permissions alerts for the same list are ok.

The strange is: I search for a fix, then I restarted the Windons Sharepoint services Timer, reset the alerts by stsadm tool (stsadm -o setproperty). the timer job status is ok too. and I just receive this error for this list, ONLY for this list...the other list I can receive the e-mails normally.

Can someone help me?



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