DEV Community


Need help regarding mailgun api

vishal880288 profile image vishal kumar ・1 min read

howdy dev's
I need help related to mailgun API

curl -s --user 'api:YOUR_API_KEY' \ \
    -F from='Excited User <mailgun@YOUR_DOMAIN_NAME>' \
    -F \
    -F subject='Hello' \
    -F text='Testing some Mailgun awesomeness!'
Enter fullscreen mode Exit fullscreen mode

where is this '-s --user' part i have to place while requesting the post request using HTTPS core node module, can explain this in detail.

Important: I was restricted from using npm so can't use the mailgun-js module or any module,

Please Help 👽

Discussion (2)

andreidascalu profile image
Andrei Dascalu

You can use the -v param with curl to see the request as it's being transformed so that you can see what --user becomes.

vishal880288 profile image
vishal kumar Author

thanks for the help.. bro..✌

Forem Open with the Forem app