Using Auron E-mail Component in Visual Basic .Net
To use the E-mail Component objects in Visual basic .Net make sure the component has been installed on the server.
You can find working examples of how to use the Auron E-mail Component in VB.Net on github.
Add a reference to the E-mail Component object using the Visual Basic Solution Explorer:
- Start the Solution Explorer view, go to the project’s ‘References’ container
- Choose ‘Add Reference’ from the context menu
- Select the COM tab, choose the ‘Auron E-mail Component’ component
The following code shows how to declare, create and use one of the E-mail Component objects:
Imports AxEmail
...
Dim objSmtp As AxEmail.Smtp ' Declaration
objSmtp = New AxEmail.Smtp() ' Creation
' Display version information
Console.WriteLine("Auron Email Component {0}" & vbLf, objSmtp.Version)