Monday

get country name in winforms c#


// return two letter iso number like :"ES", "SE", "CA", "BE", "DE", "AT", "NL", "NO", "CH", "FI", "FR", "IR", "LU", "SW", "AU", "UK",
public string getCountry()
{
return RegionInfo.CurrentRegion.TwoLetterISORegionName.ToUpper();
}

No comments:

test smtp server with powershell

Send-MailMessage -SMTPServer smtp.domain.com -To [email protected] -From [email protected] -Subject "This is a test email" -Body ...