简体   繁体   English

无需使用infopath即可轻松创建在SharePoint中通过电子邮件发送表单的方法

[英]Easy way to create a form to email in SharePoint without using infopath

Does anyone know a good way to do this? 有谁知道这样做的好方法? I need to have simple forms that submit to email without writing a lot of code. 我需要有简单的表单,提交给电子邮件而不需要编写大量代码。 These forms will be hosted in content-viewer web parts or similar in MOSS 2007. I'd like to avoid using InfoPath. 这些表单将托管在MOSS 2007中的内容查看器Web部件或类似部件中。我希望避免使用InfoPath。

You could use a list which would give you the input form. 您可以使用一个列表来为您提供输入表单。

It depends on a) whether people should be able to see each other's submissions and b) who the e-mail should go to. 这取决于a)人们是否应该能够看到彼此的提交,以及b)电子邮件应该去哪些人。

You could set an alert (Actions -> Alert Me) to send an e-mail to a person/people when a new item is added to the list. 您可以设置警报(操作 - >警报我),以便在将新项目添加到列表时向个人/人发送电子邮件。

In Settings -> List Settings -> Advanced Settings, there's the options for which items a user can see/edit. 在设置 - >列表设置 - >高级设置中,可以选择用户可以查看/编辑的项目。 Alerts however cannot be set on lists where users can only see their own items. 但是,无法在用户只能看到自己的项目的列表上设置警报。 In this case, I would use a simple workflow to send the e-mail. 在这种情况下,我会使用一个简单的工作流程来发送电子邮件。 I've only worked with MOSS 2007 and SharePoint Designer though - I'm not sure about WSS. 我只使用过MOSS 2007和SharePoint Designer - 我不确定WSS。

您可以按照上面的建议实现一个列表,并添加一个SPItemEventReceiver,用于在添加或更改列表项时发送电子邮件(链接显示可以处理的所有事件)

Create a simple HTML form in a text editor with the required text boxes , text areas , select drop downs etc, add a mailto tag and save. 在文本编辑器中创建一个简单的HTML表单,其中包含所需的text boxestext areasselect drop downs等,添加mailto标记并保存。

Then add a page viewer web part under Media and content. 然后在媒体和内容下添加页面查看器Web部件。

Select site actions, Edit page and under the editing tool tab select Format text, HTML Markup edit HTML source and paste your HTML form you created he text editor into the source window and select OK and save. 选择站点操作,编辑页面,然后在编辑工具选项卡下选择格式化文本,HTML标记编辑HTML源并将您创建的HTML表单粘贴到源窗口中,然后选择确定并保存。

With the sharepoint sdk, you can create your own webparts. 使用sharepoint sdk,您可以创建自己的webparts。 If you add them to the GAC you can include them on your sharepoint site. 如果将它们添加到GAC,您可以将它们包含在您的sharepoint站点上。 You'd of course have to build a webpart for emailing though. 你当然必须建立一个webpart来发送电子邮件。

A workflow in Sharepoint Designer should be easiest way to implement it with no need to code. Sharepoint Designer中的工作流程应该是实现它的最简单方法,无需编写代码。

Here's an article that explains how to do this: 这是一篇解释如何执行此操作的文章:

Workflow example: Send a notification message : http://office.microsoft.com/en-us/sharepointdesigner/HA101829081033.aspx 工作流示例:发送通知消息http//office.microsoft.com/en-us/sharepointdesigner/HA101829081033.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM