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

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

Workflow keep sending emails!

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :SharePoint


i customized a workflow using SPD and attach it with a List, the trigger was when a specific item field changed, send an email.

the problem is the workflow keep sending the emails repeatedly . i deleted the list item, i even deleted the workflow itself from the Settings >> Workflow settings, i cleared the SPD workflow cashe, and it still sending the emails!

appreciate your help..

View Complete Post

More Related Resource Links

SharePoint custom workflow sending duplicate task assigned emails


I'm running into an issue where a custom sequential workflow I've built in VS2010 is sometimes sending duplicate emails to the user to whom created tasks are assigned. Note: this is a Site workflow not a List workflow, in case that matters.

It's a pretty simple flow: i've got an InfoPath initiation form, and am using an OnWorkflowActivated workflow action to take the data from the form and popluate some workflow variables, then I've got a CreateTask workflow action that sets the AssignedTo value on the Task Properties, along with some other Task Property values.

The task gets created successfully in the task list, and in most cases a single email goes out to the person the task is assigned to. However, sometimes (and I haven't been able to figure out what is causing the difference) up to 3 duplicate messages are sent out, as well.

I've seen other posts in the forums where this sort of thing is happening with OOTB workflows ( this thread, for example: http://social.msdn.microsoft.com/Forums/en/sharepointworkflow/thread/66f94e07-a690-4166-aaeb-b7f5bc424fe4?prof=required). However, duplicate tasks are not being created (unless I'm missing the duplicates somehow -- they're not showing in the task li

SPD workflow, emails sent for one user, not for the other


Good day,

I have a SPD workflow (WSS/2007) that take a date field from a document list and when that date occurs it sends an email.  If the date is in the past, it will send the email out right away.  It is working fine for one user, not for another.  Both users have the same permissions.  The workflow goes as follows:

ACTION: Set Variable: vTermdate to DocumentsNotificationDate
       then log Documents:Email Date to the workflow history list

CONDITION: if Variable: vTermdate is not Empty
ACTION: Log term not empty to the workflow history list

CONDITION: if Variable: vTermdate is Empty
ACTION: Set Variable: vTermdate to N/A

ACTION: Add 0 minutes to Documents:Email Date (out to

smtp server 5.1 in xp not sending emails


hi iam using asp.net 2.0 with c#.net.

in my application when client completes its shopping email will goes to user this works fine when there is internet connection is working fine,
if  there is some problem  in internet connection if one mail stops then all the mails will be stopped even now internet works fine,

how to resend the emails using smtp server, is there any option to resend the emails automatically when internet works fine.

can you give example which helps me.

Sending an workflow email with image

I am trying to include an image in an email that I am sending out from Sharepoint designer. I have followed the below instructions from Microsoft's site and all I get in my email is the text. Anyone have success with this? <img src="http://www.communitywestbank.com/images/cwb_logo.jpg"> or <img src="http://www.communitywestbank.com/images/cwb_logo.jpg"/>       How to from MS site- Include an image It is not possible to embed an image or graphics file in the body of an e-mail message that is sent by your workflow. However, you can include a graphic in your message by using the HTML image tag (<img/>) to link to an image that is stored as a JPEG (.jpg) file and uploaded to a picture library in your site. In the body of your message, in the location where you want the linked image to appear, type the <img src=""/> HTML tag. Position the insertion point between the two double quotation marks (""). Type or paste the URL for the JPEG image file

Sending Asynchronous emails from Asp.Net Web pages

Hey Guys, Here is my situation and hopefully someone could guide me in the right direction. I have a shared or static class in my website (App_Code folder) which has static methods to send emails asychronoulsy. So whenever there is an exception in any of my pages or classes I call these methods to send an email to support asynchronously. Now when there is an exception in a page, to route that exception asynchronously I need to have Async = "true" for that page. I have more than 50 pages and I don't want to set Async= "true" on every page as I read that it affects performance. So I was wondering if there is any way I could send emails asynchronously without having to set async = "true" on every page. Thanks for your time,   Uday.    

Error on sending Outlook emails

Hi,I am trying to send an email using Outlook in my application. When I run the application in my local machine , it works fine and sends the email using my outlook address. But when I depolyed it onto our server, which is a  Windows Server 2008, it throws an error:Description:            Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.Date/ time:            20100908_03:51:48FullErrorOutput:            System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.   at _Default.SendWelcomeEmails(String email)   at _Default.btnGrant_Command(Object sender, CommandEventArgs e)   at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)   at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)   at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)   a

Strange notification emails from workflow tasks

Pardon if this is a dumb question, but I can't figure it out. I am setting up a purchase request workflow and it works, but for some reason extra emails are being created and sent to a different address. I didn't put this address into the workflow so I am unsure why it is doing it.   My work flow consists of a simple start approval process to a set email address. Then an if and else to send emails (hardcoded) based on the approval status. The email address is mine and I don't have any diversions on it. An example of the emails: ---------------------------------------------- Approval has completed on 4444444. Approval on 4444444 has successfully completed. All participants have completed their tasks.   Approval started by ######\intranet on 9/16/2010 12:45 PM Comment: Rejected by ########P\intranet on 9/16/2010 12:48 PM Comment:  ---------------------------------------- I only have myself in the approving group. And I have gone through all my settings (well I think I have) and I can't find where this email address or setting is. Thanks in advance. Again, sorry if this is a dumb question.

sending bulk of emails


Hello guys

   I have a situation where i have to send around 50,000 emails with around 90kb attachment, each attachment will be generated by crystal reports then sent by email to the subscriber, what is the best practice for this? thanks alot

Workflow sending old server name in email


I recently migrated from SharePoint 2007 to SharePoint 2010 using the database attach method to a new server. Server has different name than old server. The migrated sharepoint site collection has been working great. I decided to try workflows (we hadn't used any in MOSS 2007). I added a new workflow to an existing library using the "Approval - SharePoint 2010" reusable workflow. When I start the workflow on a document that needs approved, the approver gets an e-mail stating that a document has been changed (he must have alerts configured for that library). However, URL that the e-mail displays is wrong! It showing the old server name instead of the new one. I browse to the library on the OLD server (which is still online for testing purposes) and that document definitely does not exist in the OLD server library.

Can someone point me in the right direction to troubleshoot? I'm green at SharePoint administration. I already checked DNS and ensured that there were no leftover entries for alternate access mapping names.

relative URLs inside of email body in workflow emails?

In my auto-generated emails in workflows, I provide the reader a link to a list item on the SP site.  The problem is that I seem to have to provide an absolute URL, which of course changes between development in production.  Is there a solution for this short of editing my workflow when I move to production?  I'm on MOSS 2007 and use SP Designer.

Sending Digitally Signed emails using C#

Hi All,

    I have a requirement of sending a digitally signed email using C#,ASP.net. I tried it several ways and atlast using ASPEmail and ASPEncrypt i was able to access certificate but iam getting the mail address as the name of the certificate holder. Iam unable to find how to read the email address from the certificate. Any support will be appreciated. Thanks in advance.
phani kumar ---help me out

how to send emails to multiple persons at the same time from sharepoint workflow using visual studio


Hi Every one !!

   I am trying to send copy of a document for multiple directors at my client for their approval.

   The director can approve the document at the same time.

   Hence, I would like to know how to create a task to send emails for multiple people at the same time from a sharepoint workflow using visual studio 2008.

   I see there is a parallel activity. But it gives me only 2 paths ( means would be able to send only for 2 users )

   If creating a separate task to send emails for each user is an inefficient way, please let me know if there is another good way of sending emails to multiple users.


Thank you

Three State Workflow Emails have invalid links


I've attached a standard three-state workflow to a document library.  When the emails arrive in users' inboxes, the links back to the document don't work if the document file name includes spaces.  It appears the workflow is not encoding the spaces, correctly.  If the message is opened in Lotus Notes, the spaces are completely stripped out (e.g. "My File Name" is "MyFileName").  If the message is opened in Gmail, the spaces are replaced with + signs.  (e.g. "My File Name" becomes "My+File+Name"). 

I've searched the forums and elsewhere, and I can't find any resolution for this.  To the best of my knowledge, no other emails, either from workflows or alerts, have this problem. Any suggestions?  This is on MOSS 2007, by the way.



Sending Emails


Hi all.

I'm trying to solve a problem about sending emails from a contact form.  I have the first script that i'm using it sending but only to my external account and I got this on that sends but i'ts in vb and I'm not able to attach a style sheet to it. could any one tell me a code that I can use to replace the VB version.  Or. can translate the VB into C#

This will be appreciated.


this is my web config file
			<smtp from="send@myservices.com" deliveryMethod="Network">
				<network host="mail.myservice.com" port="25" userName="send@myservices.com" password="service" />

this is my C# backend code.

  protected void Button1_Click(object sender, EventArgs e)
            SmtpClient smtpClient = new SmtpClient(); MailMessage message = new MailMessage(); try
                MailAddress fromAddress = new MailAddress(Email.Text.ToString(), this.Contname.Text.ToString());
                message.From = fromAddress;//here you can set address   

Sending a status email with a workflow from Sharpoint 2010 once


Ok- this is probably not hard it is just early and I cannot seem to figure it out. I have a form that has a dropdown - if there is a certain option selected in the dropdown I want someone alerted. This is working fine.

What I am trying to figure out is - let's say the status is "completed" and I want them to get an email and the do. But now someone else goes in anc changes some other field but the status field still says "completed" and as you can guess the third paty gets another email. So I need to send a status message for the completed status once - not multiple times.



Sharepoint 2010 workflow not sending email


I have a workflow that is expected to create a task and also send email.

i can get the alert when the task is created. but the workflow does not send email. i get the following error in workflow history.

"The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly."

please can anybody help me out?

Testing Emails Sending (SMTP) under IIS7 Express (WebMatrix)


Hi there,

I don't have web server account yet so I must test my applications with the Web Development Server under VS 2010 with C# but I read that I couldn't send emails under that server but I also read that I can send email with IIS7 Express and that's the main reason why I've install Webmatrix. Maybe someone can confirm this.

So for the moment I am redirecting my emails into a local folder and it is working perfectly.

Here is part of the code I've add to the Web.Config for doing that.

      <smtp deliveryMethod="SpecifiedPickupDirectory">
        <specifiedPickupDirectory pickupDirectoryLocation="D:\Temp"/>


As you can see I am redirecting the emails to the D:\temp

The following code for sending emails comes 
from the videos of JOE STAGNER at Microsoft
but beware there is a few typing errors in 
his video like missing > " 


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