system %Q{echo "<html><body><b>BOLD</b></body></html>" | mutt -e "set content_type=text/html" -s "HTML content" -- #{email}}
#{foo}
is the Ruby way to add a value into a string. #{foo}
is only evaluated in strings with "
(not '
). Where %Q{}
does the same, but you do not have to escape "
inside the string.