Get IP sender

Aug 22, 2014 at 10:18 AM
How get IP sender from e-mail ?
Coordinator
Aug 25, 2014 at 3:48 AM
You can get header info by below code.
If header include IP information, you can get it.
MailMessage mg = //Get from somewhere...
foreach(var item in mg.Headers)
{
    //Get header info and check by some logic...
}