You'll need the SMTP server information to be configurable by your customer, rather than hard-coded in your application. The following is pulled from a project currently open in VS. It's asp.net, but the priciple is the same for desktop appslications.
string MailHost = ConfigurationManager.AppSettings["MailHost"].ToString();
SmtpClient client = new SmtpClient();
client.Host = MailHost;
. . .