Partager via


Resolution: SendEmailNotification=true does not send an email

SendEmailNotification=true does not send an email, it was not sending email on time.

Cause
There are two different methods on which SendEmailNotification=true and SendEmailActivity work.

Details

1.    I noticed that I was able to get the email from SendEmailActivity but where SendEmailNotification=true was there in code that email I was getting after every five minutes.
3.    So I found that SendEmailNotification=true is dependent on the SharePoint’s Alerts, SharePoint Timer service.
4.    I changed the timer interval to 1 minute and after that I was getting emails every one minute from the SendEmailNotification=true.
5.    SendEmailActivity is not dependent on the timer service so it sends the email immediately.

Commands to set/get timer interval
·    stsadm -o getproperty -pn job-workflow -url <URL>
·    stsadm -o setproperty -pn job-workflow -pv "every 1 minutes between 0 and 59" -url <URL>

 

Keywords

Email notification is delayed, SharePoint timer service, SendEmailActivity, Workflow foundation