件名を文字列変数としてメールを送信する

件名を文字列変数としてメールを送信する

Ubuntu 初心者です。sh スクリプト内の変数から件名を取得してメールを送信したいのですが、以下のスクリプトで件名変数に注意してください。メールは送信されますが、件名は SSH ログインではなく「$subject」になります。

#!/bin/bash
##This script sends a message

    subject="SSH Login:"
    curl -s --user 'api:key-xxxxxxxxxxxxxxx' https://api.eu.mailgun.net/v3/adoptatias.com/messages -F from='Excited User <[email protected]>' -F to='[email protected]' -F subject='$subject' -F text='Detected succesfull SSH login'


exit 0;

何が間違っているのでしょうか?

関連情報