Created
January 31, 2024 10:02
-
-
Save rzvdaniel/e2a14f24e1e7b683ecdc44e5a2f0ee08 to your computer and use it in GitHub Desktop.
Giraffegram - Send Email Example 01
This file contains hidden or 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
curl --location 'https://localhost:7160/api/email/send' \ | |
--header 'Content-Type: application/json' \ | |
--header 'X-Api-Key: 9yIQbmgbCdhpNDPcc3wutN2hH7cK==' \ | |
--data-raw '{ | |
"from": { | |
"email": "[email protected]", | |
"name": "Your App Name" | |
}, | |
"to": { | |
"email": "[email protected]", | |
"name": "Tom Jones" | |
}, | |
"template": "Welcome!", | |
"variables": { | |
"fullname": "Tom J. Jones" | |
}, | |
"server": { | |
"host": "youremailserver.com", | |
"port": 465, | |
"useSsl": true | |
}, | |
"account": { | |
"userName": "[email protected]", | |
"userPassword": "*********" | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment