It's possible that you are sending it nowhere. The
SmtpClient
constructor you are using is based on assumption that you chose you SMTP server and all the parameter by writing appropriate configuration file:
http://msdn.microsoft.com/en-us/library/k1c4h6e2%28v=vs.110%29.aspx[
^].
Who knows what did you write in that configuration file, if it even exists? :-)
To explicitly choose the server or server with the port, you would need to use other constructors:
http://msdn.microsoft.com/en-us/library/k0y6s613(v=vs.110).aspx[
^],
http://msdn.microsoft.com/en-us/library/67w4as51(v=vs.110).aspx[
^].
Besides, if everything is done, I cannot be sure that you used correct parameters for the server and authentication. You can do this: try the server you have with some available mail client program, and when you make sure it really sends messages, mimic all the parameters in your code.
—SA