A couple of weeks ago I was reading through a magazine and I saw a review of site that let you upload files instead of sending them via email. Then the site sent your recipient an email and they downloaded it. You've heard the old saying about how when all you've got is a hammer, everything looks like a nail. Well, I'm a SharePoint guy, so every time I see something I think to myself, "How would I do that in SharePoint?" I'm not very smart, so most of the time I never figure out a way. Fortunately for me this was an easy one. J So here it is, how to use SharePoint as a replacement for email attachments.
For those of you that haven't just fallen off of the SharePoint turnip truck, what I described away is something that bares a striking resemblance to a workflow. I thought the same thing, so that's what I did. First, I created a standard Shared Document library. That's where the attachments will be uploaded. I added a few new columns that I needed to facilitate sending the email. The finished library looked like this:
As you can see I added columns for standard email fields; to, from, subject and a body. Not much to it.
The next step was to create the workflow. Since this isn't one of the out of the box workflows I had to create it in SharePoint Designer. I loaded up SPD and attached it to my site. I started by adding some SharePoint content to my list.
Then pick Blank Workflow
When you define your workflow you'll want to make sure it's triggered when new items are uploaded.
Now we need to define the workflow itself. There's not a lot to this. When starting the workflow we don't even need to define a condition, since adding the document triggers it. We just need to define some Actions. Obviously we want the "Send an Email" action.
I'm not going to show you as I added each and every field. The key to adding the fields is using the "Workflow Lookup…" item to get to the fields of the item. Here's how we define who the email is going to:
Then pick the "To email address" field
Repeat that for each of the fields you want to add. Certainly you can design your email however you'd like. Here's what I did:
That's it. Save it all out and you're finished. Now when you add a document to that library you'll be met with a page like this where you add the pertinent information about who will be getting the email for the attachment.
The resulting email looks like this (actually this was from a different document, but you get the idea)
Well, that's it. Pretty simple, isn't it. Now instead of emailing around large files, you can use this method to upload them to SharePoint and keep them out of your email quota. For extra credit you might find a way to get documents to be cleared out after two or three days.
Hope that helps, or maybe churns up an idea on how to use SharePoint for other less obvious things.