Aug 21, 2010 at 9:38 PM
Edited Aug 21, 2010 at 9:56 PM
I am working on a SharePoint 2007 intranet project with the following restrictions:
1. Cannot use SharePoint Designer.
2. Cannot use any type of "server side" code (i.e. DLL in the GAC, WSP, etc.)
1. Capture some basic user related info such as First Name, Last Name, Contact Phone, Employee ID, etc.
2. Send an e-mail cotaining the above user info, to a designated e-mail address.
I am planning to use a SharePoint "Content Editor Web Part" (CEWP) to render the fields to capture First Name, Last Name, Contact Phone, etc. The fields will be defined as HTML <input> type controls in the CEWP. I will also have a <input
type="button"> control that will serve as the "Submit" button.
When the user clicks on the "Submit" button, I need to gather all the values entered in the fields, put them in an e-mail and send it to an e-mail address.
The SMTP server is configured on the SharePoint site.
Is it possible to use the SPServices library to send e-mail? Not just "mailto" type of e-mail which means that a new Outlook e-mail message is composed. I need the e-mail to be sent automatically to the designated e-mail address, when the
"Submit" button is clicked. Just wondering if there is a way using SPServices to leverage either the SPUtility.SendEmail or System.Net.Mail to send the e-mail. I looked at the MOSS Web Services, but did not see any e-mail related methods.
Please let me know.
Thanks a lot. I appreciate any suggestions or other "client side" solutions that I may have overlooked.