Hello,
To some this will be easy, and I will be ashamed of my lack of knowledge, but...
I've got the following code.
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Register interest"
myMail.From="some@emailaddy"
myMail.To="some@email"
myMail.TextBody=response.write("Name: " & fullname & "Address: "& address & "Email: " & email & "Name of Degree: " & degree & "Graduation Date: " & ddate & "Degree content: " & content & "Specialism: " & spec)
myMail.Send
Set myMail=nothing
when the mail gets sent, the email is blank (the heading and from do show, just the content is blank).
What am I missing? The response.write on it's own works, its just doesn't work assigning it to a variable. How can I get this to work?
Also, does anyone know how I can format the response.write to put line breaks in it? something like \n in php.
Thank you
To some this will be easy, and I will be ashamed of my lack of knowledge, but...
I've got the following code.
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Register interest"
myMail.From="some@emailaddy"
myMail.To="some@email"
myMail.TextBody=response.write("Name: " & fullname & "Address: "& address & "Email: " & email & "Name of Degree: " & degree & "Graduation Date: " & ddate & "Degree content: " & content & "Specialism: " & spec)
myMail.Send
Set myMail=nothing
when the mail gets sent, the email is blank (the heading and from do show, just the content is blank).
What am I missing? The response.write on it's own works, its just doesn't work assigning it to a variable. How can I get this to work?
Also, does anyone know how I can format the response.write to put line breaks in it? something like \n in php.
Thank you