I've got a form that sends results using code from
kav123 in a former post. (Thanks kav).
It works like a champ if I hard code the address for oMail.To. However if i try to use my session variable illustrated below, i get a big mess.
Is my syntax wrong? Calling that session variable elsewhere has seemed to work fine as a value submitted to a database, write to screen, etc. I wasn't sure why it messed this whole thing up.
thanks,
b
kav123 in a former post. (Thanks kav).
Code:
<%
Set oMail = Server.CreateObject("CDO.Message")
oMail.From = "your-email@your-domain.com"
oMail.To = "recipient@another-domain.com"
oMail.Subject = "Here goes the email subject..."
oMail.HTMLBody = "Here goes the email body..."
oMail.Send
Set oMail = Nothing
%>
Code:
<%
Set oMail = Server.CreateObject("CDO.Message")
oMail.From = "your-email@your-domain.com"
oMail.To = [b]<%response.write(Session("aubmail"))%>[/b]
oMail.Subject = "Here goes the email subject..."
oMail.HTMLBody = "Here goes the email body..."
oMail.Send
Set oMail = Nothing
%>
Is my syntax wrong? Calling that session variable elsewhere has seemed to work fine as a value submitted to a database, write to screen, etc. I wasn't sure why it messed this whole thing up.
thanks,
b