tag:blogger.com,1999:blog-908451797546196795.post6946214673898015710..comments2023-06-05T20:05:30.085+10:00Comments on SharePoint Training, Alex Dean: Enabling discussion boards for email interactionAnonymoushttp://www.blogger.com/profile/17702856763799376939noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-908451797546196795.post-50693090903015850572009-12-03T17:37:10.569+11:002009-12-03T17:37:10.569+11:00got a very good information i am also working on t...got a very good information i am also working on the same thing replying a thread i have created a emailreceiver which will check the subject of email and will add as a reply to the thread having the same subject...<br /> this is my code i think something is wrong here i m not able to find can someone help me herekukhttps://www.blogger.com/profile/04175663318927072543noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-57446940335058567052009-11-22T11:35:31.962+11:002009-11-22T11:35:31.962+11:00That is odd. Unless the email address who is sendi...That is odd. Unless the email address who is sending the emails belongs to the same account which was used to install SharePoint. In this case it will always show as system account due to the badly set up SharePoint farm. Did you try sending from another email, which is assigned to a person on sharepoint?<br />It is also possible that the person sending the emails has never signed into SharePoint which means that the profile has hot been created yet. That can also cause issues. <br /><br />But otherwise I can't help any further without looking at your exact environment and debugging the code line by line.Anonymoushttps://www.blogger.com/profile/17702856763799376939noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-38117092759694731012009-11-21T22:10:12.545+11:002009-11-21T22:10:12.545+11:00I try to use the code which u send it to me but th...I try to use the code which u send it to me but the same result appear no changesfadwahttps://www.blogger.com/profile/17288316628109800551noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-22168213179914823442009-11-21T17:58:28.638+11:002009-11-21T17:58:28.638+11:00Try setting the Author using the user from sharepo...Try setting the Author using the user from sharepoint. <br />First get hold of the SPUser object using the email:<br /><br />SPUser author;<br />try{<br />author = web.AllUsers.GetByEmail(Regex.Replace(emailMessage.Sender, @"\<[^\>]*\>", "")); //the regex strips out any friendly names from the email<br />}<br /><br />catch{<br />author = web.SiteAdministrators[0];<br />//if the email is not in sharepoint use the site collection admin instead.<br />}<br />// now assign the author<br />item[SPBuiltInFieldId.Author] = author.ID;<br /><br />Finally try using HTML Encoding on the Title:<br /><br />item[SPBuiltInFieldId.Title] = SPHttpUtility.HtmlEncode(emailMessage.Headers["subject"]);<br /><br /><br />Hope this helpsAnonymoushttps://www.blogger.com/profile/17702856763799376939noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-86794678042653330762009-11-21T17:56:23.175+11:002009-11-21T17:56:23.175+11:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/17702856763799376939noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-50650251206013711152009-11-19T20:32:45.745+11:002009-11-19T20:32:45.745+11:00Dear Alex,
this is the code which i make it insid...Dear Alex,<br /><br />this is the code which i make it inside the spemaileventreceiver<br />Dim item As SPListItem = list.Items.Add <br />item("Title") = emailMessage.Headers("Subject")<br /> item("Body") = emailMessage.HtmlBody <br />item("Sender")=emailmessage.sender<br />item.update<br />how i can get the orginal subject and the sender it display the system accoutnfadwahttps://www.blogger.com/profile/17288316628109800551noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-89412027826993396832009-11-17T21:24:40.196+11:002009-11-17T21:24:40.196+11:00if you have the email receiver working, then you s...if you have the email receiver working, then you should set the title of the item in the receiver by analysing the email properties. Setting the created field works the same way. You need to specify the ID of the user, so you will need to find that in the Users List by using the from email and hope to find the person there. <br />here is a msdn article on how to set different properties on a listitem including how to find and set the author<br /><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx</a>Anonymoushttps://www.blogger.com/profile/17702856763799376939noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-27523566844797796532009-11-17T20:26:23.491+11:002009-11-17T20:26:23.491+11:00Dear Alex,
I created spemaileventreceiver and add...Dear Alex,<br /><br />I created spemaileventreceiver and add to the board discussion sharepoint , it's work fine but the problem is the sender and subject it display system account and no title, although the email have subject how i can display the original sender and the subject of the emailfadwahttps://www.blogger.com/profile/17288316628109800551noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-28849086909402741502009-09-16T16:04:38.676+10:002009-09-16T16:04:38.676+10:00BTW. you can try to port the workflow from SharePo...BTW. you can try to port the workflow from SharePoint Designer to Visual Studio and package it up for reuse. Here are a few simple steps to get you going:<br /><a href="http://www.sharepointmythbuster.com/Porting-spd-workflows-to-visual-studio" rel="nofollow">SharePoint Mythbuster - Porting SharePoint Designer Worfklows to Visual Studio</a>Anonymoushttps://www.blogger.com/profile/17702856763799376939noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-62527397361834641742009-09-16T13:00:41.837+10:002009-09-16T13:00:41.837+10:00In fact, I didn't know that you could set up a...In fact, I didn't know that you could set up alerts for individual "threads". Thanks for that info!<br /><br />I'm pretty sure I'm going to have to crack open Visual Studio regardless of which approach I take. I'm not a frequent C# coder, so I try to get as much done in SPD as possible. But ultimately I want to include the discussion forum with custom notifications as part of a site template, and of course SPD workflows are not portable.Dan Blakerhttps://www.blogger.com/profile/08279656667965249158noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-57667811760655857762009-09-16T08:29:13.325+10:002009-09-16T08:29:13.325+10:00Hmm. you know that people can subscribe to alerts ...Hmm. you know that people can subscribe to alerts on an individual item and not only on the whole list?<br />Although that will not have completely the desired effect as alerts will not be triggered on replies. But a clever event handler could take care of this (updating a hidden field on the main thread)Anonymoushttps://www.blogger.com/profile/17702856763799376939noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-73157484380116295212009-09-16T02:23:17.113+10:002009-09-16T02:23:17.113+10:00The main problem I want to solve is that team memb...The main problem I want to solve is that team members don't want to get alerts for <b>every</b> discussion item. In my approach (which is clearly flawed in a couple ways), the message creator can decide who should get a notification.<br /><br />Apparently I read your post too quickly and missed a bunch of things that will make my approach incomplete. Like you say, putting the reply link in the email solves half the problem; but I'm still trying to figure out the best way to populate/display the "distribution group" column.Dan Blakerhttps://www.blogger.com/profile/08279656667965249158noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-47087912147493244282009-09-14T09:26:29.696+10:002009-09-14T09:26:29.696+10:00Hey Dan,
Using a SPD Workflow is a nice and simple...Hey Dan,<br />Using a SPD Workflow is a nice and simple way to add some interactivity to the discussion board and although you might be able to get people notified, the reply will not work. There is a definite time stamp issue with the reply and you would have to create an eventhandler on the list to deal with the email responses correctly. <br />But if you simply put a link in the email pointing to the reply url and force them to reply online, you will at least have half the problem of notification solved. Although you hardly need a custom field when you have alerts for this kind of thing. Did you know that it is actually quite simple to change the alert templates and customise them?Anonymoushttps://www.blogger.com/profile/17702856763799376939noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-85102312317597886632009-09-11T15:26:10.854+10:002009-09-11T15:26:10.854+10:00I've been considering another approach, which ...I've been considering another approach, which is to send notification emails via a workflow. It would work like this:<br />- In the discussion forum list, there's a custom column for "distribution group". This custom column is either a people picker or a Choice type, with each user's name & email as a checkbox.<br />- A user creates a new discussion thread from the web interface, then either enters the email addresses or checks the appropriate boxes for the people she wants to send the message to.<br />- An SPD workflow based off <a href="http://www.codeplex.com/SPDActivities" rel="nofollow">this custom SPD action</a> is attached to the creation of a new item, which checks the email addresses in the "distribution group" and sends an email containing the body of the discussion message to all of them.<br />- The "From" address on the email is the discussion list's email address, so users can reply directly from email and it will thread them properly.<br /><br />This is still in the brainstorming phase right now. I still have to figure out how to ensure the same distribution group is used for reply notifications. <br /><br />On the other hand, maybe we force the users to reply on the site, where they can specify the distribution group; people are accustomed to this process on Facebook, for example, where you're notified of the response but can't reply directly via email.Dan Blakerhttps://www.blogger.com/profile/08279656667965249158noreply@blogger.comtag:blogger.com,1999:blog-908451797546196795.post-22105483045578003772009-08-19T02:24:13.008+10:002009-08-19T02:24:13.008+10:00since I wrote this article I've tried it out a...since I wrote this article I've tried it out and got as far as formatting the alerts to an absoulte minimum, sending them via system.net.mail and changing the reply-to address but the timestamp of the original post and the alert is different and thus the built in engine can not match up the email with the post and creates a new thread instead. <br />Effectively the next step would be to create your own email handler which is cleverer than the built in one for discussions.Anonymoushttps://www.blogger.com/profile/17702856763799376939noreply@blogger.com