Fix attachment flag formatting in email sending logic for correct attachment handling
This commit is contained in:
parent
a989ddcff0
commit
7ff3703326
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ fi
|
|||
if [ ${#ATTACHMENTS[@]} -eq 0 ]; then
|
||||
echo "[!] No files to attach. Email not sent."
|
||||
else
|
||||
echo "$EMAIL_BODY" | mutt -s "$EMAIL_SUBJECT" "${ATTACHMENTS[@]/#/-a }" -- "$RECIPIENT"
|
||||
echo "$EMAIL_BODY" | mutt -s "$EMAIL_SUBJECT" "${ATTACHMENTS[@]/#/ -a}" -- "$RECIPIENT"
|
||||
fi
|
||||
echo "[+] Email sent to $RECIPIENT with attachments: ${ATTACHMENTS[*]}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue