MailMill COM 1.0 Documentation

Server Mail Property:
Gets or sets a string that specifies the SMTP relay server to use to send the message.
Syntax:
[C++]
HRESULT get_Server(BSTR *pVal);
HRESULT put_Server(BSTR newVal);
[VB]
Property Server As String
Remark:
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").
Example:
[VB]
Dim oMail As New Mail
oMail.Server = "server"
See also:
MailMill Component | Mail Object | Mail.Send

 

Copyright © Active+ Software 2005 - All rights reserved