EmailSMTPSetting Class |
Namespace: Velo.Services
The EmailSMTPSetting type exposes the following members.
| Name | Description | |
|---|---|---|
| EmailSMTPSetting |
Initializes a new instance of the SMTPSetting class.
Constructor without parameter.
Read setting from application configuration file app.config or web.config
|
| Name | Description | |
|---|---|---|
| Password |
SMTP user password
| |
| Port |
SMTP port example: 587
| |
| Server |
SMTP server example: smtp.gmail.com
| |
| SSL |
Is SMTP as SSL
| |
| User |
SMTP user name
|
| Name | Description | |
|---|---|---|
| ConvertDateFromSQL |
Convert SQL date include value null
(Defined by Extension.) | |
| ConvertDateToSQL |
Convert C# date type to SQL date type
(Defined by Extension.) |
<configuration>
<configSections>
...
<!-- SMTP configuration Velo.Services.Email -->
<section name="SMTPSetting" type="System.Configuration.NameValueSectionHandler"/>
...
</configSections>
...
<!-- SMTP configuration Velo.Services.Email -->
<SMTPSetting>
<add key="Server" value="smtp.gmail.com" />
<add key="Port" value="587" />
<add key="User" value="email" />
<add key="Password" value="password" />
<add key="SSL" value="true" />
</SMTPSetting>
...
</configuration>