MailMessage msg = new MailMessage("myAddress@hotmail.com", txtTo.Text, txtSubject.Text, txtBody.Text);
SmtpClient client = new SmtpClient("something");
client.Send(msg);
Both the address "to" and "from" are hotmail addresses.
Instead of "something" I tried pop3.live.com and smtp.live.com, but they both didn't work. Can someone help me?
And I have a second question. If my "from" e-mail address was hotmail, and my "to" e-mail address was gmail for example, in the constructor of SmtpClient - should I use value for hotmail or gmail?