titorober23
asked on
bold in ASp text
Hi guys
I found an script abput ASpemail, I am using it in a contact.asp form
Now in the body of the email i would like to include son text in bold, I am not sure how to do it
this is the libe for the body message
' Message body
objMail.Body = "You have received a new message from " & a & Request("Name") & chr(13) & "e-mail:" & Request("email") & chr(13) & chr(10) & Request("phone") & Request("txtBody")
I would like to show Name: request("Name")
where name should be bold
i try <b> "Name: " </b>
but did not work
any suggestion, do i have to use a specific constant for bold
please help
thanks
I found an script abput ASpemail, I am using it in a contact.asp form
Now in the body of the email i would like to include son text in bold, I am not sure how to do it
this is the libe for the body message
' Message body
objMail.Body = "You have received a new message from " & a & Request("Name") & chr(13) & "e-mail:" & Request("email") & chr(13) & chr(10) & Request("phone") & Request("txtBody")
I would like to show Name: request("Name")
where name should be bold
i try <b> "Name: " </b>
but did not work
any suggestion, do i have to use a specific constant for bold
please help
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I got this error
Microsoft VBScript compilation error '800a03ea'
Syntax error
/demo_simple.asp, line 38
objMail.Body = "<html><body><b>You have received a new message from </b>" & Request("Name") & chr(13) & "e-mail:" & Request("email") & chr(13) & chr(10) & "Phone: " & Request("phone") & chr(13) & chr(13) & "message: " & chr(13) & chr(9) & Request("txtBody") & </body></html>"
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------^
Microsoft VBScript compilation error '800a03ea'
Syntax error
/demo_simple.asp, line 38
objMail.Body = "<html><body><b>You have received a new message from </b>" & Request("Name") & chr(13) & "e-mail:" & Request("email") & chr(13) & chr(10) & "Phone: " & Request("phone") & chr(13) & chr(13) & "message: " & chr(13) & chr(9) & Request("txtBody") & </body></html>"
--------------------------
ASKER
never mind
I was missing quotes
It is working, this is exactly what i was looking for
thanks
I was missing quotes
It is working, this is exactly what i was looking for
thanks
ASKER