Using Auron E-mail Component in C# .Net
To use the E-mail Component objects in C# 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 C# on github.
To use the E-mail component in a new C# project first add a reference to the E-mail Component object using the Visual C# 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 Email Component’ component
The following code shows how to declare, create and use one of the E-mail Component objects:
using AxEmail;
...
AxEmail.Smtp objSmtp; // Declaration
objSmtp = new AxEmail.Smtp(); // Creation
// Display version information
Console.WriteLine("Auron Email Component {0}\n", objSmtp.Version);