P
peter
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
(e-mail address removed) 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('(e-mail address removed)', ['(e-mail address removed)']) do |
f|
f.puts "From: sender (e-mail address removed)"
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
except for one thing. In the example below I need to replace
(e-mail address removed) 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('(e-mail address removed)', ['(e-mail address removed)']) do |
f|
f.puts "From: sender (e-mail address removed)"
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