TheArKa

SendMail

Nov 11th, 2021 (edited)
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.41 KB | None | 0 0
  1. curl --location -g --request GET 'https://mailsrv.meetaza.com:6789/email/send' \
  2. --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIzIiwianRpIjoiNGY1YzMxZjU2MjYwMzQzMjM3OGUyODExODJmZmFmZmM0YjBmNTU3OGI1OTQ3YTc0NzBmOWRlN2NkM2E3ZGZkNjQwYWJmMTE4NTFiYjg0ODYiLCJpYXQiOjE2MzY1MTE3NDUsIm5iZiI6MTYzNjUxMTc0NSwiZXhwIjoxNjY4MDQ3NzQ1LCJzdWIiOiI0Iiwic2NvcGVzIjpbXX0.TxAxzCZzBK7_fcvG2zkZPeu4INDhthcchULtuoRH-L8Z2Uwqq524UP7El6YGPlj8NTM7G9owpT0SWUm5P7BB5w' \
  3. --header 'Content-Type: application/json' \
  4. --data-raw '{
  5.    "to": [
  6.        {
  7.            "email": "arka.progammer@gmail.com",
  8.            "name": "TheArKa"
  9.        }
  10.    ],
  11.    "subject": "Mail Mail",
  12.    "content": {
  13.        "type": "text/html",
  14.        "value": "<img src='\''cid:logo.png'\'' width='\''200px'\''><br>Here we Go</h3>"
  15.    },
  16.    "attachments": [{
  17.        "content": "bnB4IHNlcXVlbGl6ZS1jbGkgbW9kZWw6Z2VuZXJhdGUgLS1uYW1lIFVzZXIgLS1hdHRyaWJ1dGVzIGNyZWF0ZWRfdGltZTpkYXRlLGNyZWF0ZWRfYnk6c3RyaW5nLHVwZGF0ZWRfdGltZTpkYXRlLHVwZGF0ZWRfYnk6c3RyaW5nDQpucHggc2VxdWVsaXplLWNsaSBtaWdyYXRpb246Z2VuZXJhdGUgLS1uYW1lIG1pZ3JhdGlvbi1za2VsZXRvbg0KbnB4IHNlcXVlbGl6ZS1jbGkgZGI6bWlncmF0ZTp1bmRvDQpucHggbW9jaGEgLS10aW1lb3V0IDIwMDAwIHRlc3QvUGFydG5lci9JbnZvaWNlT3JkZXJzLmpzIC0tZXhpdA0KDQpob3N0IA0KbWVzc2FnZQ0KdXNlcm5hbWUNCnNlY3JldA0KcG9ydA0KdGxz",
  18.        "filename": "cli.text",
  19.        "type": "text/plain",
  20.        "disposition": "attachment"
  21.    }]
  22. }'
Add Comment
Please, Sign In to add comment