SmtpServer property

This property contains the name or IP address of smtp server. When the Send method is called, the application will connect to that server via Smtp protocol and send the email message. You can use this property to use smtp server different from default one.

Note

Default value
The default value for SmtpServer property is defined by shotip.ini file located in the Windows root directory. This file is read once when the component starts, so if you change this file for server applications, like ASP, you should restart the affected application. The smtpserver value in the [Main] section defines the defaul value.

[Main]
smtpserver=mysmtp.server.com
If this information can not be retrieved that the default smtp server will be localhost.

Example

mail.SmtpServer = "127.0.0.1"