In your error logs, you may get an error like this:
2016-10-18 09:14:24,284 [83] ERROR EPiServer.Notification.Internal.DefaultNotificationDispatcher: Failed to format message
System.InvalidOperationException: This operation is not supported for a relative URI.
at System.Uri.get_Fragment()
at System.UriBuilder.Init(Uri uri)
at EPiServer.Cms.Shell.UI.Notifications.Email.ProjectMessageService.ResolveProjectUrl(Project project, IDictionary`2 contentItems)
at EPiServer.Cms.Shell.UI.Notifications.Email.ProjectMessageService.CreateProjectModel(Project project, IDictionary`2 contentItems, IEnumerable`1 projectMessages, IPrincipal recipientPrincipal, CultureInfo recipientCulture)
at EPiServer.Cms.Shell.UI.Notifications.Email.ProjectMessageService.<>c__DisplayClass17.<CreateProjectViewModels>b__a(Project project)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at EPiServer.Cms.Shell.UI.Notifications.Email.ProjectMessageService.CreateProjectEmailViewModel(String recipient, IEnumerable`1 projectMessages)
at EPiServer.Cms.Shell.UI.Notifications.Email.ProjectHtmlEmailFormatter.FormatMessages(IEnumerable`1 notifications, String recipient, NotificationFormat format, String notificationChannelName)
at EPiServer.Notification.Internal.DefaultNotificationDispatcher.<>c__DisplayClass6_1.<Dispatch>b__7()
at EPiServer.Notification.Internal.DefaultNotificationDispatcher.Execute(Action a, String errormsg)
This particular error message hints at the missing "*" (wildcard) definition in your Managed Websites in CMS admin, since it complains about URI. It's not obvious at first, but this forum post related to the old workflow notification emails does suggest this: http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=71488
To resolve this and get email notifications to work, you should add * to your list of host names. Go to CMS Admin > Config tab > System Configuration > Manage Websites > Your Website. Add the * here to the list.
http://world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/9/notifications/using-notifications/
http://www.epiwiki.se/troubleshooting/net/handling-mails-with-smtp
Please sign in to leave a comment.