Possible Duplicate:
How to Query an NTP Server from C#
I try send email with my program but if time and date not set, sending is be fail.
How to update system time and date from internet in C#?
The answers to this question show you how to retrieve the time from a time server.
Are you sure you want to update the system time? Maybe it is sufficient to use the retrieved time in the email.