Skip to content

Commit 9c3b2f6

Browse files
authored
Update README.md
1 parent 8705a5d commit 9c3b2f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ to get started install the package using the [NuGet](https://www.nuget.org/packa
1515

1616
when you will send an email, there are three component that you will interact with:
1717

18-
- **Message**: the email message content to be sent.
18+
- **EmailMessage**: the email message content to be sent.
1919
- **EmailService**: the email service.
2020
- **Edp**: the Email Delivery Provider.
2121

2222
you first compose your message, than you pass the message to the email service, than service will send the message using an EDP.
2323

24-
### 1. Message
24+
### 1. EmailMessage
2525

2626
the message contain your email content, which includes the following
2727

@@ -42,7 +42,7 @@ the message contain your email content, which includes the following
4242
now let see how can we compose a message:
4343

4444
```csharp
45-
var message = Message.Compose()
45+
var message = EmailMessage.Compose()
4646
4747
.WithSubject("test email")
4848
.WithPlainTextContent("this is a test email")
@@ -51,7 +51,7 @@ var message = Message.Compose()
5151
.Build();
5252
```
5353

54-
on the `Message` class you will find a method called `Compose()`, this method will give you a fluent API to compose your email so use the `'.'` and intellisense to see all the available function to compose you message, once you're done, call `Build()` to create an instance of the `Message`.
54+
on the `EmailMessage` class you will find a method called `Compose()`, this method will give you a fluent API to compose your email so use the `'.'` and intellisense to see all the available function to compose you message, once you're done, call `Build()` to create an instance of the `EmailMessage`.
5555

5656
now we have a message let's try to send it.
5757

@@ -127,7 +127,7 @@ var emailService = EmailServiceFactory.Instance
127127
.Create();
128128

129129
// create the message
130-
var message = Message.Compose()
130+
var message = EmailMessage.Compose()
131131
132132
.WithSubject("test email")
133133
.WithPlainTextContent("this is a test email")
@@ -173,7 +173,7 @@ public class IndexModel : PageModel
173173
public void OnGet()
174174
{
175175
/* compose the email message */
176-
var message = Message.Compose()
176+
var message = EmailMessage.Compose()
177177
178178
.WithPlainTextContent("this is a test email")
179179
.WithHtmlContent("<p>this is a test email</p>")

0 commit comments

Comments
 (0)