# send a message back to the administrator
RECIPIENTS="$SENDER_ADDRESS"
SUBJECT="admin request results"
+ CreateMessageBodyPart
MimeWrapMessage
echo "$MESSAGE" | $MAIL_AGENT $MAIL_AGENT_ARGS $SENDER_ADDRESS
else
boundary=\"${boundary}\"
Content-Disposition: inline"
- # this is the body of the message to be sent, so no indentation here
- MESSAGE_BODY="\
-Content-Type: text/plain; charset=iso-8859-1
-Content-Disposition: inline
-
-$MESSAGE_BODY"
-
GPG_MESSAGE="`echo -e "${PASSPHRASE}\n${MESSAGE_BODY}" | $GPG_ENCRYPT --recipient $RECIPIENTS`"
# this is the body of the message to be sent, so no indentation here
${MESSAGE_BODY}"
}
+
+function CreateMessageBodyPart {
+ #-------------------------------------------------------------
+ # create a message body part
+ #
+ # parameter(s): none
+ # depends on variable(s): MESSAGE_BODY
+ #
+ # returns: 0
+ #-------------------------------------------------------------
+
+ # this is the body of the message to be sent, so no indentation here
+ MESSAGE_BODY="\
+Content-Type: text/plain; charset=iso-8859-1
+Content-Disposition: inline
+Content-Transfer-Encoding: quoted-printable
+
+$MESSAGE_BODY"
+}
+
#-------------------------------------------------------------
# main()
#-------------------------------------------------------------