You'll have to get Tuicemen to chime in here, but I'm pretty sure the DS10's and DS12's won't "talk" to a SDK created program. You could set up macros to "map" a security type sensor to an X10 address, but what I propose is more simplistic. I use DS10's on my closet doors to turn on and off the closet lights via a macro in AHP. I know for a fact that "send email" is included in the macro commands, but I believe you have to have the Smart Macros plug-in for AHP.
You have to tick the "use security" tab on the macro instead of the X10 address for a trigger.