Notify Users by Email
Hi,
Notify users by email when an item is waiting for thier approval does not work.
A page workflow is setup and checked to notify, the workflow is activated immediately.
In the system SMTP settings two accounts were tested both never received notifications, is this a partial implementation or configurations missed.
Hi,
Hello Neil,
We are happy to see that you have been able to resolve the issue with e-mails being sent out.
Unfortunately the Workflow in Sitefinity 4.0 RC does not allow for much customization of the notifications being sent out. We have it on the plan to improve this (WorkItem ID#76425) so that you can modify the built in Workflow definitions as sampled in Ivan's blog post. This should be also available in Standard Edition as it will not involve creating custom workflow but rather modifying the built in ones.
Kind regards,
Radoslav Georgiev
the Telerik team
Hi Radoslav –
We're working on a new deployment of SF 4.1– has this ability to customize notifications been included yet in the 4.1 release? If not, can you provide some code examples/samples of how to go about coding for this. Niel's earlier question is right along what we're interested in doing: custom email subject text, custom body message text, included page/content link to be reviewed/approved, etc.
Thanks,
Ben
Hi Ben,
You should modify the woflow templates. I am sending you the default one and you should customize NotifyStateChanger EmailText. Then you have to map customized templates through Sitefinity/Administration/Settings/Advanced >> Workflows. We use Windows Workflow Foundation and these are the XAML files that you can modify in Visual Studio or another XML editor.
You need to implement a method that returns true and add it inside the xaml
public virtual bool NotfiyForNewItem(string name)
EmailSender sen = EmailSender.Get();
sen.Send(new MailMessage(new MailAddress("mail"), new MailAddress("imail")));
return true;
Greetings,
Ivan Dimitrov
the Telerik team