This project is read-only.
Installation Instructions
This solution must be deployed as a farm solution. It will not work as a sandboxed solution.
  1. Download the .wsp file from the download section
  2. Use the normal methods for adding the solution to the solution store (Stsadm or powershell)
  3. Log into central admin and deploy the solution. This adds a feature that you can activate at the web application level
  4. Go to Web application management in Central Administration. Select the web application that will use this activity. Click manage features in the ribbon. Activate the Send Email with attachment feature.
  5. Activating the feature adds a safe assembly line to the web config file.

How to use
  1. Open SharePoint Designer
  2. Navigate to the list / library you want to add a workflow to
  3. In the Actions drop down you should see a new section called SharePointStuff Custom Actions
  4. Select the Send Email With Attachment activity

Note
To send the emails the activity uses the SMTP server setup for the current web application in SharePoint. If outgoing email is not enabled on your farm you will need to enable it or you will get an exception.

Last edited Feb 21, 2013 at 3:41 PM by Aozen, version 5

Comments

ahluc08 Oct 31, 2016 at 9:10 PM 
It worked for me on SharePoint 2010, but not on SharePoint 2013 with SharePoint 2010 Workflow. It was stated by someone in this forum that I need to modify the web.config in order for it to work on SharePoint 2013. Please help what needs to be modified in the web.config file. Thank you.

Shradhalnt Jun 3, 2016 at 9:32 AM 
hi, My getting this error while publishing the workflow "The type or namespace name 'SPD_SendEmailWithAttachment' could not be found "

Shradhalnt May 17, 2016 at 9:52 AM 
(0, 10) The type or namespace name 'SPD_SendEmailWithAttachment' could not be found (are you missing a using directive or an assembly reference?))
(2539, 16) The type or namespace name 'SPD_SendEmailWithAttachment' could not be found (are you missing a using directive or an assembly reference

It is throwing this error, though the feature is activated in webapplication

Anna38 Mar 24, 2016 at 7:44 AM 
When you publish the workflow, an error occurs:
Could not find the type name or namespace "SPD_SendEmailWithAttachment" (are you missing a using Directive or an Assembly reference

LynnJ Jul 31, 2015 at 6:59 PM 
We are using SharePoint 2010. We installed this and I have confirmed that it is activated and that email is enabled. I can add the custom activity but it will not trigger an email. I tried using basic settings (email to 'created by', sent from 'created by', attach a specifically named document in Shared Documents, but nothing. Ultimately, I want it to attach everything in an associated Document Set (I create a document set named with the issue ID in a specific document library). I can pull the URL for the document set correctly (well almost as I can currently only get it in string and not url) so I know it sees the document set. Ideas anyone?

Aozen Dec 17, 2013 at 2:11 AM 
For those of you getting an invalid email address error, you would need to check and make sure that you are getting a valid email address. For example if you are using a field from the current item to populate the To field, then you need to make sure that field is returned as an email address.

Aozen Dec 17, 2013 at 2:09 AM 
Hello Everyone,

Sorry I haven't answered some of your comments. I don't get notification on these comments like I do when posted in the issues section. For those of you that see the action in SharePoint Designer, but it doesn't do anything when clicked, you need to make sure the feature is activated for that web application in Central Administration.

For those of you that are using a different language you will have to manually copy the XML file named CustomSPD.ACTIONS. This file is saved at 14\Template\1033\Workflow. You would need to copy this file from \1033\Workflow to \<LanguageID>\Workflow. You need to lookup what your language ID is.

samfof Dec 16, 2013 at 10:21 PM 
When I get to #4 of the Installation Instructions it's not listed as an option to activate, yet it shows as being globally deployed in the solutions list.

Dekstar Sep 3, 2013 at 5:09 PM 
Having the same problem like Alexander. I am running a german version of Sharepoint 2010 Foundation and I am not able to see the workflow action. Feature is activated in web application.

JohnDoeToe Jul 16, 2013 at 2:06 PM 
Hello,

I'm receiving the notification "Invalid email address. Check your workflow and make sure all To, From and CC addresses are correct.". I've checked the e-mail address field, and they are all filled out correctly. What else could be causing this notification?

Melloca May 16, 2013 at 7:15 PM 
Aozen,
I have added the solution by using powershell command:
STSADM.EXE -o addsolution -filename "E:\SPD_SendEmailWithAttachment.wsp"

I then deployed it through Central Admin. In SP Designer I see the solution under the Action Menu, but like above it doesn't so anything when I click on it. How do I activate this? I see that it was deployed globally and I don't know where to active it or a command to run.

If anyone can help, I would appreciate it!

blessing2010 Apr 29, 2013 at 6:57 PM 
Hi,
I have created a simply workflow using your Solution.
The workflow gets cancelled stating, 'Invalid email Address. Check your workflow and make sure all To, From and CC addresses are correct."
The email address are correct.
What am I missing?

Aozen Feb 13, 2013 at 7:17 PM 
Hi Surray,

Currently this is only for SharePoint 2010. I am working on a SharePoint 2013 version and hope to have it ready soon.

surray Jan 24, 2013 at 9:17 AM 
I use SharePoint 2013!
I see the activity in [Actions] but when I select it nothing changes.

Aozen Oct 25, 2012 at 3:38 AM 
Hi DScott,

I have updated the install instructions. When I originaly made this solution it auto activated when installed, but I have changed it to where you have to manually activate the feature at each web application you want to use it.

After activating the feature it should work correctly.

DScott Oct 24, 2012 at 11:48 PM 
I see the activity in "actions" but when I select it nothing happens.

Mattj28 Nov 28, 2011 at 8:06 PM 
Yes, it is because of the different language. The piece that makes it show up in SharePoint designer is an XML file named CustomSPD.ACTIONS. This file is saved at 14\Template\1033\Workflow. You would need to copy this file from \1033\Workflow to \<LanguageID>\Workflow

AlexanderPraim Nov 22, 2011 at 7:03 PM 
Hi! Does it matter if my Sharepoint installation is not in English?
I installed the wsp, dployed it in Central Admin, activated it in web application settings; restarted server and IIS.
But I cannot see the activity in Sharepoint Designer.
Is it becuse of the language or am I missing some step?