Link to home
Start Free TrialLog in
Avatar of titorober23
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
ASKER CERTIFIED SOLUTION
Avatar of jlindler
jlindler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of titorober23
titorober23

ASKER

I tried that and when i received the message it shows <b> as text
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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>"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
never mind
I was missing quotes

It is working, this is exactly what i was looking for

thanks