[紧急]事件接收者电子邮件触发器 [英] [URGENT] Event receiver email trigger

查看:106
本文介绍了[紧急]事件接收者电子邮件触发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助以下详细信息



Scenario details:触发列表状态为"尚未审核"的电子邮件3天内未被更改
(如果状态未进一步更改为7天和21天,则触发向撰稿人组和cc审批组发送电子邮件),如果状态更改为已批准,则应停止电子邮件触发器



示例



List Name Test



姓名 状态



AA   尚未审核



BB     已审核



CC   已批准



DD   拒绝





Blitz




$

解决方案


如果状态字段发生变化,您需要创建一个新列"StatusModifyDate"来存储日期。


并创建事件接收器,检查状态值是否为"尚未审核"和(今天 - StatusModifyDate> 3),然后使用  SPUtility.SendEmail方法或SmtpClient发送电子邮件。


以下文章供您参考。


http://geekswithblogs.net/TanviBlog/archive/2013/06/06/send-mail-from-even-receiver-to-a-user-or-user.aspx


http://techiescode.blogspot.com/2013/ 10 / send-email-from-sharepoint-event.html


最佳此致,


Dennis


Kindly help with the below details

Scenario details: Trigger an email where the list status is "not yet reviewed" has not been altered for 3 days (to be trigger email to contributor group and cc approvers group, if status not altered further 7 days and 21 days) and if the status is changed to approved then email trigger should be stopped

Example

List Name Test

Name  status

AA     Not yet reviewed

BB      under Reviewed

CC      Approved

DD      Rejected


Blitz

解决方案

Hi,

You need create a new column "StatusModifyDate" to store the date if the status field change.

And create event receiver, check if the status value is "Not yet reviewed" and (Today-StatusModifyDate>3), then send email using SPUtility.SendEmail method or SmtpClient.

The following article for your reference.

http://geekswithblogs.net/TanviBlog/archive/2013/06/06/send-mail-from-even-receiver-to-a-user-or-user.aspx

http://techiescode.blogspot.com/2013/10/send-email-from-sharepoint-event.html

Best Regards,

Dennis


这篇关于[紧急]事件接收者电子邮件触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆