Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void MessageSend(string userName)
- {
- string userName = "test_1_2";
- string password = "Q1W2e3r4";
- string userpochata = "losevdl@iek.ru";
- HttpWebRequest request =
- WebRequest.Create("https://" + userName + ":" + password + "@wunderlust.iek.local/ews/exchange.asmx/s/GetUserPhoto?email=" + userpochata + "&size=HR120x120")
- as HttpWebRequest;
- using (HttpWebResponse resp = request.GetResponse() as HttpWebResponse)
- {
- Bitmap image = new Bitmap(resp.GetResponseStream());
- image.Save("Sadie.jpg");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement