I am writing a shell script to setup a few servers and once it is done, it will send an email to our help desk letting us know that the server is ready to be used.
I would like to use the following subject line:
New Space Loop Activated! 🎉
But I cannot for the life of me figure out how to make accept that emoji. I can use emojis on the email body, but it does not work on the subject.
# # Send an email to let us know that the server is ready to be used. # Credentials will be sent to Vault instead of being stored on the server # once the Vault server has been properly configured. # # @since 0.0.1 # mail -s 'New Space Loop Activated!' \ -a 'From:Kerb!am Man<firstname.lastname@example.org>' email@example.com << END_MAIL Delivery for The Humans, Your new space loop ($HOSTNAME) has been configured $(printf '\xf0\x9f\x8e\x89') and credentials are available at /home/gatekeeper/. Please remove them from the server once they have been placed in a secure location. Delivery fulfilled, Kerb!am Man $(printf '\xf0\x9f\xa4\x96\n') And remember: if you want it, Kerblam it! END_MAIL
I have tried a few ideas:
- Tried using encoded-character, but it does not seem to work for shell scripts — or I am too stupid to figure it out
- Tried using unicode and utf-8
- Tried using
But nothing seems to work. Is that even supported? I am using
mailutils, with Postmark as the SMTP relay.