You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/dotnet-templates/fundamentals/mail-service.md
+87-1Lines changed: 87 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,4 +15,90 @@ weight: 11
15
15
toc: true
16
16
---
17
17
18
-
Documentation Coming Soon!
18
+
Mail Service in Genocs Library's Web API is a service that allows you to send emails from your application.
19
+
20
+
There are two ways to send emails using the Mail Service:
21
+
- By using [Sendgrid](https://sendgrid.com/)
22
+
- By using SMTP with [MailKit](https://mimekit.net/)
23
+
24
+
25
+
## Sendgrid
26
+
27
+
Sendgrid is a cloud-based email service that provides reliable transactional email delivery. It is a popular choice for sending emails from your application. To use Sendgrid with the Mail Service, you need to configure the Sendgrid API key in the `appsettings.json` file.
28
+
29
+
### Configure Sendgrid API Key
30
+
31
+
1. Sign up for a [Sendgrid account](https://sendgrid.com/).
32
+
2. Create a new API key in the Sendgrid dashboard.
33
+
3. Add the Sendgrid API key to the `appsettings.json` file.
34
+
35
+
```json
36
+
{
37
+
"Sendgrid": {
38
+
"ApiKey": "YOUR_SENDGRID_API_KEY"
39
+
}
40
+
}
41
+
```
42
+
43
+
### Send Email using Sendgrid
44
+
45
+
To send an email using Sendgrid, you need to create an instance of the `SendgridMailService` class and call the `SendEmailAsync` method.
46
+
47
+
48
+
This code snippet is used to send an email using SendGrid. The code snippet is written in C# and uses the SendGrid NuGet package. The code snippet is used to send an email to multiple recipients. The code snippet is written in C# and uses the SendGrid NuGet package. The code snippet is used to send an email to multiple recipients.
Copy file name to clipboardExpand all lines: content/en/dotnet-templates/tutorials/database-migrations/index.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,7 +203,7 @@ Below are some sample configurations for MySQL Provider. The above is applicable
203
203
204
204
The Provider values for other supported DBs are as follows.
205
205
- MSSQL - **mssql**
206
-
- MYSQL - **mssql**
206
+
- MYSQL - **mysql**
207
207
- Oracle - **oracle**
208
208
- PostgreSQL - **postgresql**
209
209
- SQLite - **sqlite**
@@ -212,6 +212,8 @@ Once your connection strings are all updated in the mentioned configuration file
212
212
213
213
As mentioned earlier, since we have 2 Db Contexts defined in our application, we will have seperate commands for each of the available context classes.
214
214
215
+
**Move to the WebAPI project directory and run the following commands.**
216
+
215
217
The generic command to add migrations over the **Application Db Context** goes like this:
Copy file name to clipboardExpand all lines: content/en/library/messaging/index.md
-52Lines changed: 0 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,55 +16,3 @@ toc: true
16
16
---
17
17
18
18
19
-
This code snippet is used to send an email using SendGrid. The code snippet is written in C# and uses the SendGrid NuGet package. The code snippet is used to send an email to multiple recipients. The code snippet is written in C# and uses the SendGrid NuGet package. The code snippet is used to send an email to multiple recipients.
0 commit comments