Skip to content

Instantly share code, notes, and snippets.

@rzvdaniel
Created January 31, 2024 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rzvdaniel/e2a14f24e1e7b683ecdc44e5a2f0ee08 to your computer and use it in GitHub Desktop.
Save rzvdaniel/e2a14f24e1e7b683ecdc44e5a2f0ee08 to your computer and use it in GitHub Desktop.
Giraffegram - Send Email Example 01
curl --location 'https://localhost:7160/api/email/send' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: 9yIQbmgbCdhpNDPcc3wutN2hH7cK==' \
--data-raw '{
"from": {
"email": "noreply@yourdomain.com",
"name": "Your App Name"
},
"to": {
"email": "tomjones@email.com",
"name": "Tom Jones"
},
"template": "Welcome!",
"variables": {
"fullname": "Tom J. Jones"
},
"server": {
"host": "youremailserver.com",
"port": 465,
"useSsl": true
},
"account": {
"userName": "noreply@yourdomain.com",
"userPassword": "*********"
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment