Is there any way to read mail contents using msbuild? Any custom tasks or community tasks available to achieve this?
Asked
Active
Viewed 111 times
1

Samselvaprabu
- 16,830
- 32
- 144
- 230
-
1Can I ask why you'd want to do this? – CharlesB Dec 18 '11 at 14:01
-
I want to pass properties to script through mail – Samselvaprabu Dec 18 '11 at 14:05
-
1Can I ask why you'd want to pass properties through email? sorry but I'm curious :) – CharlesB Dec 18 '11 at 14:06
-
we are having a target where based on property name different action will be done. So without giving permission to build machine ,we can ask them send mail to particular mail id. based on the property name they passed in mail , different action will be taken. – Samselvaprabu Dec 18 '11 at 14:12
-
4What can I say but [Zawinski's Law](http://en.wikipedia.org/wiki/Jamie_Zawinski), "Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can". – Ben Dec 18 '11 at 14:16
1 Answers
1
You can create your own custom task.
See these links for example code:
Read MS Exchange email in C#
C# MAPI to read exchange server inbox
Read Gmail Inbox