From: peter Date: 2007-03-12T00:13:21+09:00 Subject: Help with NET::SMTP I'm trying to use Net::SMTP which appears to do most everything I need except for one thing. In the example below I need to replace recipient@host.com with a variable based on the submitting users email address #{email) but nothing I have tried works. In most cases I get a tainted sender error. How can I use this and have a variable recipient? Net::SMTP.start('mail', 25) do |smtp| smtp.open_message_stream('sender@mail.com', ['recipient@host.com']) do | f| f.puts "From: sender sender@mail.com" f.puts "To: #{name} #{email}" f.puts "Subject: Test" f.puts "Date: #{t}" f.puts f.puts "#{name}\n\nTest Email!\n\n" end Thanks in advance! Peter