-
-
Save wolfedale/8f32d6db91ce1b7362d353a440d6ff2a to your computer and use it in GitHub Desktop.
sendmail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sendmail | |
ARGV.each { |x| @s.concat("#{x} ") } | |
IO.popen("/usr/sbin/sendmail -G -i #{@s}", "w") do |pipe| | |
pipe.puts @mail_content | |
pipe.close_write | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment