More in this section

Forums / General Discussions / Notify Users by Email

Notify Users by Email

5 posts, 0 answered
  1. Neil
    Neil avatar
    82 posts
    Registered:
    21 Oct 2006
    24 Nov 2010
    Link to this post
    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.

    ** Please ignore the emails are now being sent, a DefaultSenderEmailAddress was required.


    Regards,

    Neil
  2. Neil
    Neil avatar
    82 posts
    Registered:
    21 Oct 2006
    24 Nov 2010
    Link to this post
    Hi,

    Now the emails are set up the message leaves a lot to the imagination how can this default message be updated to included page details, ideally a hyperlink to the page itself?

    Best Regards,

    Neil
  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    25 Nov 2010
    Link to this post
    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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Ben
    Ben avatar
    1 posts
    Registered:
    09 Jun 2011
    09 Jun 2011
    Link to this post
    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
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    13 Jun 2011
    Link to this post
    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
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
5 posts, 0 answered