EmailDLL Online Manual
Purpose: Sets the SMTP server to send email through.
Handle: The unique ID identifying the email object
Operator: val_SetMailServer = 2
Data: SMTP mail server name or IP address
Returns: Success or Error Status
This operator sets the server address. The string value passed can be either a domain name (e.g. mail.mycompany.com), or a legal IP address (e.g. 22.214.171.124). But, it must be a reachable email server, that will accept email from the address you set with val_SetFrom . You must set an email server address.
Note that more frequently, commercially run SMTP servers are set to require the SENDING node be a real node that can be found through a DNS lookup. If the mail server cannot locate the IP address of the sender via DNS, it may refuse to transfer the email. So, be sure the SMTP server knows about your IntraBuilder sever node in the network you're using. There are other anti-spamming measures being put in place as well. You should contact the systems administrator of your SMTP server, and discuss what current future plans they have which might prevent your application from sending email. Shame on you if you spam using this DLL.
This operator will return an error status, but usually the status indicating the server can't be reached won't be returned until you attempt to send a message.