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

时间:2022-03-12 15:52:52

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。

5 个解决方案

#1


3  

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。

#2


1  

You could implement a list as suggested above, and add an SPItemEventReceiver for sending emails when list items are added or changed (the link shows all of the events available to be handled)

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

#3


0  

With the sharepoint sdk, you can create your own webparts. If you add them to the GAC you can include them on your sharepoint site. You'd of course have to build a webpart for emailing though.

使用sharepoint sdk,您可以创建自己的webparts。如果将它们添加到GAC,则可以将它们包含在sharepoint站点上。你当然必须建立一个webpart来发送电子邮件。

#4


0  

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

#5


0  

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表单,其中包含所需的文本框,文本区域,选择下拉列表等,添加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表单粘贴到源窗口中,然后选择确定并保存。

#1


3  

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。

#2


1  

You could implement a list as suggested above, and add an SPItemEventReceiver for sending emails when list items are added or changed (the link shows all of the events available to be handled)

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

#3


0  

With the sharepoint sdk, you can create your own webparts. If you add them to the GAC you can include them on your sharepoint site. You'd of course have to build a webpart for emailing though.

使用sharepoint sdk,您可以创建自己的webparts。如果将它们添加到GAC,则可以将它们包含在sharepoint站点上。你当然必须建立一个webpart来发送电子邮件。

#4


0  

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

#5


0  

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表单,其中包含所需的文本框,文本区域,选择下拉列表等,添加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表单粘贴到源窗口中,然后选择确定并保存。