Finding the SMTP server address through code in SharePoint 2010
If anyone knows a better way then let me know.
1 | string smtp = string.Empty; |
I use a ForEach extension which I’ve included below
1 | public static void ForEach<T>(this IEnumerable<T> enumerable, Action<T> action) |