I'm trying to send an email from the command line with Ruby code on a Sinatra server. On the command line, I've successfully used:
smtpfree_mail.pl -from noreply@website.com -to testemail@gmail.com -subject "test msg" -body "message body" 
so could I possibly use:
%x(smtpfree_mail.pl -from noreply@website.com -to testemail@gmail.com -subject "test msg" -body "message body")
as suggested by this answer? I want to later input several variables into the email body.
 
     
     
     
    