Send Email with List Item attachments

Allows sending list item attachments as files attached to an email

emailAttach.GIF

Last edited Jul 26, 2007 at 3:55 AM by unclepaul84, version 3

Comments

vincetan81 Nov 27, 2014 at 12:19 AM 
Hi
I keep getting this error for sending email.
System.FormatException: The specified string is not in the form required for an e-mail address.
at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName)
at System.Net.Mail.MailAddress.ParseValue(String addr

I've tried hardcoding an email address but it does not work. Any advice?
This is a great addition to the workflow!

Thanks
Vince

PhillC Aug 28, 2014 at 6:44 PM 
We just installed this feature set but it was a little difficult to sort. One thing that was not mentioned was that to get this action working for a simple case I needed to select my Sp list where it asks for "this item" then field=Attachments and Value = yes. Then it picked up the attachment that was attached to my list item. Hope this helps others. Or, if you have multiple forms you can use field=Attachments and do lookup on title. This is really a terrific addition that we'll use a lot.

thanks

phill

gguerrieri Sep 18, 2013 at 9:21 AM 
When i try to create workflow "Send Email with List Item attachments" and my email have multiline message, in result letter i get all text in one string.
Yes, me too.

I find that you can write HTML in body message and all works fine..
(Simply add <br> tag when you want new line)

PeterB Jun 3, 2013 at 3:04 AM 
Yeah, I need the ability to attach a document from a Document Library...

shresthasabin Nov 22, 2010 at 8:22 PM 
This activity does not work at all. I can onluy get it to work on an Announcement list. I have tried everything to try to make it to work on a Discussion Board. With no support at all, I would not download and install this on any production environment.

fzakharov Feb 24, 2010 at 2:00 PM 
When i try to create workflow "Send Email with List Item attachments" and my email have multiline message, in result letter i get all text in one string

HarishRao Oct 14, 2009 at 4:34 AM 
I am using this workflow on a list. I have two lists on two web applications and I deployed it to all web applications when I open in designer to use this work flow in one web application its working and on other list when I click for 'send email with list item attachment' in the actions nothing happened. Even in the list where it is working good, it is taking time to send an email and if there is a list item with out any attachments it is not sending the email....Am I missing something help me .

lashelle Jul 23, 2009 at 4:50 PM 
These workflow actions are great, but can prove cumbersome when trying to automate emails with Document Libraries, instead of custom lists. I have something that might be useful for people trying to automate emails when document libraries items are added or marked as complete. Utilize the "Send Email with HTTP Attachment", and in the URL parameter, specify the document's absolute encoded URL. Make sure to appropriately name the file as a .docx or whatever file type you are using in your library (this assumes you are using the same file type for the library). Hope this helps someone out!

rp0923 Jun 5, 2009 at 7:18 PM 
Hello,
I am getting an error message on running a workflow containing this activity.
Error Message
System.FormatException: The specified string is not in the form required for an e-mail address.
at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName)
at System.Net.Mail.MailAddress.ParseValue(String addr

Am I missing something?
Thanks.

ThiNg Jan 23, 2009 at 2:39 PM 
Hi, I finally figured this thing out so I thought I would upload the solution.

I was getting this error on the workflow:

System.ArgumentException: Value does not fall within the expected range.
at Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException)
at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowExceptio

I was telling the workflow to attach all files in the document library with a specific type (sales literature). I was wrong.

The workflow is designed to send "Attachments" as attachments. I think that is what was unclear in the description above. You can see that the sentence in the custom action says "include all files attached to List Item...". In order to make this work, you have to have a list item that has an attachment. The workflow will then attach the attachment to the email as an attachment (clear as mud right?).

Here is how I set it up:
1. Create a Document Library and store whatever docs you want in it (for us, it was sales brochures).
2. I then created a NEW list, called SalesBrochureSend that allows users to add attachments to the list item.
3. I then setup a workflow to run when an item is created in SalesBrochureSend.
4. When the user creates a new item in SalesBrochureSend, they click the ATTACH (paperclip icon) and attach the files from the Document Library to the list item.
5. When the click save, the workflow runs and emails the attached files for that item to the email address specified as attachments.

I hope that makes more sense. It adds an extra step, and it would've been easier to select the files directly from a document library, but I actually prefer it this way because SharePoint captures the document at that moment. I then have a record of what was sent, even if someone updates the document in the future.

Hope that helps clarify things.

ravensorb Oct 22, 2008 at 6:39 PM 
I too am running into this issue -- anyone have any updates?

Yuros Sep 3, 2008 at 3:34 PM 
I'm experiencing exaclty same problem as posted by users above:

System.ArgumentException: Value does not fall within the expected range.
at Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException)
at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowExceptio

Anyone found the cause / solution?

dishmael Aug 14, 2008 at 7:18 PM 
I'm also suffering from the same error message when trying to send an attachment via workflow:

System.ArgumentException: Value does not fall within the expected range.
at Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException)
at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowExceptio

Not sure what the problem is...

zieglers Aug 12, 2008 at 6:32 PM 
Hi Guys,

Have anyone used this and made it work? I'm getting the same error stated above, and tried almost all possible things which can be provided for *this* item.
If someone can provide more detailed description on how to use this feature, I'll be grateful.

Does *this* item need to be a list item of a forms library, basically an xml form with attachments embedded?
Or am I missing smth?

Thanks,
zieglers

kiwi_in_bc Aug 7, 2008 at 5:08 AM 
Hi there 

I have just installed your SharePoint Designer Activities – And if I can get the “Send Email with List Item Attachments” to work I would be for ever grateful!!!!

After installation, the option appears under Workflow Actions – Custom Actions, however when I attempt to select it, nothing happens. It does not appear, however with one of the other standard actions it does.

I wonder if this is a common issue, and if you have any pointers?

Many thanks if you can assist in any way.

saefeldin Jun 21, 2008 at 7:47 AM 
hi ;
i'm trying to use this action in my list but i received this error.

System.ArgumentException: Value does not fall within the expected range.
at Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException)
at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowExceptio

can i use it with a group ?
as i tested it didnt work. !!

adjohnson Nov 16, 2007 at 2:03 PM 
I have a question... I have a list that receives items as the result of input from a published InfoPath form. (on SharePoint) The completed form shows as an attachment on the list item. Will this task item work if an Infopath form is the attachment?

Thanks!
Angela