From: Brantley Shields Date: 2008-04-24T11:28:16+09:00 Subject: Email/SMTP::NET Problems Greetings, This is my first time posting but this problem I am having is really annoying. Here is a section of my code: fname = cgi['fname'] lname = cgi['lname'] pw = cgi['password'] em = cgi['email'] buf = "
" myMessage = < To: #{fname} #{lname} <#{em}> Subject: HPU Alumni Verification Thank you for registering with Highpoint Alumni. Please click the following link in order to activate your account. Your password is: #{pw} END_OF_MESSAGE Net::SMTP.start('linus.xxxxxx.edu') do |smtp| smtp.send_message myMessage, 'hpualumni@xxxx.edu', em end end I've x'd out some of the information. But the problem I am having I think is that it will not allow me to use "em" as an email address to send. I can physically change em to 'whateveriwant@whatever.com' and it will work perfectly fine. I'm taking this email address out of a POST-REQUEST form so I need the flexibility to store it as a variable and send whatever that variable the email is. Any suggestions would be awesome, and if you need more information please let me know. Brantley -- Posted via http://www.ruby-forum.com/.