This project is read-only.

Problem installing on SBS2011


This is a Windows SBS 2011 server with SharePoint 2010 Foundation
These are the steps that I took.
  1. Add-SPSolution C:\SPD_SendEmailWithAttachment.wsp (completed with no errors)
  2. In "Sharepoint Central Administration", under "Site Actions", choose "Site Settings", go to "System Settings", "Farm Management", "Manage Farm Solutions", click the solution name, click "Deploy Solution, click OK. (completed with no errors)
  3. In "Sharepoint Central Administration", under "Site Actions", choose "Site Settings" go to "Application Management", "Manage Web Applications", click on "SBS Sharepoint", click the "Manage Features" tab, to verify that the application is active. (completed with no errors)
  4. In "Sharepoint Central Administration", under "Site Actions", choose "Site Settings", go to "Manage Site Features" and the desired feature is not shown.


Aozen wrote Mar 13, 2014 at 11:20 PM

You don't have to activate it at the site collection level. Once you activate it at the web application it will be available to use in Sharepoint designer for any site in the web app.

genestet wrote Mar 14, 2014 at 10:52 AM

Can this app be used to send to external recipients? I get the following error "We've encountered an error while attempting to process this workflow. This error has been logged. We apologize for the inconvenience.
Exception Message:
System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 5.7"

Also, I have to enter the recipient address in the workflow designer otherwise I get an error and can't publish. . I was hoping I could enter the recipient email address when running the workflow. Does this mean you have to design and publish a new workflow for each new recipient?

genestet wrote Mar 14, 2014 at 3:45 PM

I think I found most of my answers here. Let me see how far I get and I will post back. Thanks.

genestet wrote Mar 15, 2014 at 2:54 AM

Here are the steps that I took to get this going.

I downloaded the recommended download, "Send Email With Attachments - Issue Tracking"
  1. From SharePoint PowerShell, type "Add-SPSolution C:\SPD_SendEmailWithAttachment.wsp" (Note: adjust the path if needed)
  2. In "SharePoint Central Administration", under "Site Actions", choose "Site Settings", go to "System Settings", "Farm Management", "Manage Farm Solutions", click the solution name, click "Deploy Solution, click OK.
  3. In SharePoint, create new Document "Library" to hold the email attachment.
  4. In SharePoint, create a new custom "List" to hold the recipient email address. BTW, I used "single line of text" for all columns. (see p.3 "Use a custom list to store recipient addresses" in this article
  5. In SharePoint, "Site Actions", click "Edit in SharePoint Designer"
  6. In SharePoint Designer, click "Workflows", click "Site Workflow" to create a new Workflow. Name your new workflow and in "Step 1" choose "Action" from the "Insert" group in the toolbar. Choose the action under "SharepointStuff Custom Action".
  7. Here is where I almost kicked my cat...and dog. Refer back to article p.4 Note that the author was using Sharepoint Designer 2007 so the "Define Workflow Lookup" is a little different. Specifically, under "Find the list item" the source is understood so you will only need to put your first column name that preceded the "To" and "Cc" column name and the "value" is what you have in the top field to the right of the first column name when you edit your email address list. I don't understand why it is this way but it was the only one out of a dozen permutations that worked. This particular column is easily accidentally deleted or changed when editing the email list so if someone knows a better way, please respond. For the reply address, I just typed in a static email address and for the attachment, choose "Current Item". You will need to assign the Workflow to the attachment library so the "Current Item" will have meaning in that it will send the document in the attachment library. Save the "Workflow", check for errors, and then publish, all from the menu on the left.
  8. You are now done. Go to SharePoint edit your "List" to add an email address. Go to the Document Library for your attachment and check the check box next to your attachment and click "Workflows" and "Send".
Additionally, if you are relaying through an Exchange server to an external email address, you may need to add a new or modify an existing Exchange "Receive Connector", or you will get this exception:
"System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 5.7"

Since I am using SBS 2011, I chose to modify an existing connector so I ran the following script from an Exchange PowerShell,
Get-ReceiveConnector "Windows SBS Fax Sharepoint Receive CBISERVE" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"

If you prefer to create a new receive connector you will need these parameters,
Set the Authentication to TLS and Externally Secured, and the Permissions Groups to Anonymous and Exchange Servers.
Note: These parameters conflicted with my current SBS2011 connector so I chose to modify my existing one.