May I know how to get user's email id by their name and send email with specified body?
The email address of the currently logged in user can be gotten with System.DirectoryServices.AccountManagement.UserPrincipal.Current.EmailAddress
How to send an email, i do not know offhand, but you would need the office outlook interop. the microsoft API documentation should help you there
There are examples in the API documentation included with PDM Professional. Look at Send Message to Users Example (VB.NET) or Send Message to Users Example (C#). In essence you create an IEdmUserMgr interface and user it to create an IEdmUser using the GetUser method then use the SendMsg method for the user.
Retrieving data ...