-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated versions and metadata. Fixed mailgun tests.
- Loading branch information
Showing
16 changed files
with
81 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#:C:\Data\Projects\FluentEmail\src\Senders\FluentEmail.Mailgun\FluentEmail.Mailgun.xproj | ||
C:\Data\Projects\FluentEmail\src\Senders\FluentEmail.Mailgun\FluentEmail.Mailgun.xproj|C:\Data\Projects\FluentEmail\src\FluentEmail.Core\FluentEmail.Core.xproj | ||
#:C:\Data\Projects\FluentEmail\FluentEmail.Mailgun.Tests\FluentEmail.Mailgun.Tests.xproj | ||
C:\Data\Projects\FluentEmail\FluentEmail.Mailgun.Tests\FluentEmail.Mailgun.Tests.xproj|C:\Data\Projects\FluentEmail\src\Senders\FluentEmail.Mailgun\FluentEmail.Mailgun.xproj | ||
C:\Data\Projects\FluentEmail\src\Senders\FluentEmail.Mailgun\FluentEmail.Mailgun.xproj|C:\Data\Projects\FluentEmail\src\FluentEmail.Core\FluentEmail.Core.xproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Fluent Email - MailGun | ||
|
||
Send email via the MailGun REST API. | ||
|
||
## Packages | ||
|
||
`FluentEmail.Mailgun` | ||
|
||
## Usage | ||
|
||
Create a new instance of your sender and add it as the default Fluent Email sender. | ||
|
||
var sender = new MailgunSender( | ||
"sandboxcf5f41bbf2f84f15a386c60e253b5fe9.mailgun.org", // Mailgun Domain | ||
"key-8d32c046d7f14ada8d5ba8253e3e30de" // Mailgun API Key | ||
); | ||
Email.DefaultSender = sender; | ||
|
||
/* | ||
You can optionally set the sender per instance like so: | ||
email.Sender = new MailgunSender(...); | ||
*/ | ||
|
||
Send the email in the usual Fluent Email way. | ||
|
||
var email = Email | ||
.From(fromEmail) | ||
.To(toEmail) | ||
.Subject(subject) | ||
.Body(body); | ||
|
||
var response = await email.SendAsync(); | ||
|
||
|
||
## Further Information | ||
|
||
Don't forget you can use Razor templating using the [FluentEmail.Razor]() package as well. | ||
|
||
If you'd like to create your own sender for another service, check out the source code. All you need to do is implement the `ISender` interface :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,10 @@ | |
"include": [ | ||
"*.txt" | ||
] | ||
} | ||
}, | ||
"copyToOutput": [ | ||
"*.txt" | ||
] | ||
} | ||
} | ||
|