An open API service indexing awesome lists of open source software.

https://github.com/devandreacarratta/devandreacarrattait.mailgun

Azure Function (HTTP Trigger - post) Send mail via MailGun
https://github.com/devandreacarratta/devandreacarrattait.mailgun

azure-functions c-sharp emai mail mailgun netcore2 postman

Last synced: 6 months ago
JSON representation

Azure Function (HTTP Trigger - post) Send mail via MailGun

Awesome Lists containing this project

README

          

# DevAndreaCarrattaIT.MailGun

## local.setting.json
```json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"DEVAndreaCarratta.MailGun.BaseUri": "https://api.eu.mailgun.net/v3/",
"DEVAndreaCarratta.MailGun.Api": "",
"DEVAndreaCarratta.MailGun.Domain": "",
"DEVAndreaCarratta.MailGun.Expression": "",
"DEVAndreaCarratta.MailGun.AddHeaderNativeSend": "",
"DEVAndreaCarratta.MailGun.FromMail": "",
"DEVAndreaCarratta.MailGun.FromName": ""
}
}
```

## postman request

```json
{
"info": {
"_postman_id": "2c8bdb56-36e6-4e23-802a-f9ba5bd9710b",
"name": "DevAndreaCarrattaIT.MailGun",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "DevAndreaCarrattaIT.MailGun.Send",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\"Subject\":\"Test Mail Subject\",\n\"Text\":\"body plain text\",\n\"BodyHtml\":\"body html text\",\n\"To\":\"mail1@blablabla.fake;mail2@blablabla.fake\",\n\"Cc\":\"mail3@blablabla.fake;mail4@blablabla.fake\",\n\"Ccn\":\"mail5@blablabla.fake;mail6@blablabla.fake\",\n}"
},
"url": {
"raw": "http://localhost:7071/api/Send",
"protocol": "http",
"host": [
"localhost"
],
"port": "7071",
"path": [
"api",
"Send"
]
}
},
"response": []
}
]
}
```