You would think this would be quite a simple task right. It probably is if you are some SQL guru I imagine, this whole sending mail from a db is a new concept to me, and I may have missed something very basic (wouldn’t be the first time, and certainly not the last).. it does not seem to be all that straight forward.
My first thought was to go with Database Mail. Well, Database Mail is nice enough, I set it all up nicely following the msdn walkthrough here, the test email fired off fine.. I thought all was good and well until I thought my problem through a bit further. I will have a recordset where each row is associated with someone to email with information in that row. So to use the sp_send_dbmail procedure would involve some kind of cursor/crazy stored procedure that I just wasn’t all that keen on writing. Like I said. Im no SQL guru.
So then one of my collegaues said what about Notification Services. I thought, hey cool, I love the BI tools that come with SQL 2005 (especially reporting services <3) and Notification Services I would love to learn about. So I spent 20 mins googling it and then I find out Notification Services does not ship with SQL 2008. Well that kind of pissed me off a bit because I didnt want to implement some solution that would get scrapped in a few months when we upgrade to SQL 08. Not that my workplace is likely to do that anytime soon.. haha.
Anyway, so then I discovered this awesome, and I mean awesome tutorial that basically explains to do exactly what I wanted. One thing I have learnt though, is that delaying validation on the send mail task will allow you to set the ToLine property using an expression. This is the perfect solution for my problem, and means that for every row in the table/recordset I can send a new email to the required person with information from that row.
Another caveat was that to get exchange to act as a SMTP relay so you can fire off the Send Mail task you need to tweak the default settings a bit. The official word on how to do that is here, basically just add the IP address of your Exchange server to the Relay settings in your exchange system manager.
Now I can spam emails to my co workers when I test this on Monday 😀
Im having issues with .NET 2.0 WSE 3… My web services respond fine to one client but not another. Both of which are on my local machine. So you think it would be an easy fix…
The request failed with HTTP status 415: Unsupported Media Type.
I have seen all the advice saying to add <soapServerProtocolFactory type=”Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35”/> to web.config… But my configs are all looking good so what gives.
Well it appears it was something funky to do with MTOM – I had MTOM settings off on the client and on on the server. Switching it off appears to have worked
Now onto the next issue. Sigh. Do not install .NET 3.5 if you still need to publish .NET 2 Web Services….epic issues ftl.
Well having just spent 5 hours of my life trying to work a Vista MCE remote I am asking myself why, why did I not research this more before I did it. Sigh.
I bought the Hauppauge PVR150MCE edition. Why did I not just get the normal edition? I think the name sounded cooler at the time or something. Sigh.
well this week I did a bit of a crazy… me and 2 of the other guys at work somehow ended up working thru most of the night and cramming 2 hours of sleep in before waking up for another full days work :S
well, thats not entirely true, its not like we worked entirely thru the night… we had many breaks to retain some sanity that involved…
- quake 3 LAN
- swiss ball soccer (highly recommended – just make sure not to do indoors over other peoples desks..)
- wrapped one dudes entire desk and everything located on it in newspaper
- a multitude of drinking games…
Ok that sounds like we didnt do much work but I swear we did. I probably got another whole days work in. However this was possibly counteracted a tad by the fact that the next day I was only at 1/2 productivity or so, sleeping on the meeting room floor on 2 couch cushions with NO air conditioning was definitely the low light.
And even better, there is still crap loads of work to do. Ahh. Thank goodness its Friday, woot. I can guarantee I wont be doing that again though. I have missed 4 gym sessions in a row this week
Last week I picked up an old Dell PC from my Parents place. Now don’t get me wrong, normally I hate Dells but I had a higher purpose for this one…
My new home theatre PC!! I have no idea why it has taken me so long to get this up and running. I guess a lack of free PC carcasses!!