Gets or sets a string that specifies the SMTP relay server to use to send the message.
The default value for the Server property is the local machine name. Therefore you do not need to set this property if an SMTP server is running on the machine. You may specify a port different than 25 by adding a colon and a port number after the server name. (e.g. "servername:2500").
This sample shows how to specified an SMTP relay server.
Mail oMail = new Mail(); oMail.Server = "server:2525";
Mail Class | MailMill Namespace | Send