B
Brantley Shields
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 = "<body bgcolor=gray><br>"
myMessage = <<END_OF_MESSAGE
From: Highpoint Alumni <[email protected]>
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,
'(e-mail address removed)', 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 '(e-mail address removed)' 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
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 = "<body bgcolor=gray><br>"
myMessage = <<END_OF_MESSAGE
From: Highpoint Alumni <[email protected]>
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,
'(e-mail address removed)', 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 '(e-mail address removed)' 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