Nobuyoshi Nakada wrote: > I'd rather use popen. > >> rescue Exception => e >> if e >> puts e > > IO.popen("-", "w") do |mail| > mail or exec(*%w"/usr/sbin/sendmail -f my_server / gmail.com > john.smith / email.com") > mail.puts "Subject: Script Error: #{e.backtrace[0]}" > mail.puts > mail.puts e > # and anything what you want to send > end wow! so much better! thanks alot for showing me that jack -- Posted via http://www.ruby-forum.com/.