Simple HTML question. Can u help me out?

  • Thread starter Miguel Dias Moura
  • Start date
M

Miguel Dias Moura

Hi,

i created a script to send form values by email. I am working in ASP.net /
VB.
The email is sent in HTM format.

Well, i everything is working fine but i am getting an error in the
msg.Body. Can you tell me what i am doing wrong?

Ln1 - msg.Body = "<html><head><style type='text/css'> {font-family: Verdana,
Arial, Helvetica, sans-serif; font-size: 11px;color: #333333;
background-color: </style></head><body>" &_
Ln2 - "<strong>New Message</strong>" &_
Ln3 - "<br><strong>&nbsp;» From: </strong>" & msgFrom &_
Ln4 - "<br><strong>&nbsp;» Name: </strong>" & msgName &_
Ln5 - "<br><strong>&nbsp;» To: </strong>" & msgTo &_
Ln6 - "<br><strong>&nbsp;» Subject: </strong>" & msgSubject &_
Ln7 - "<br><strong>Message Text</strong>" &_
Ln8 - "<br> " & msgMessageField &_
Ln9 - "</body></html>"

The error i get is the following:
BC30203: Identifier expected. Line 1

Thank You,
Miguel
 
M

Miguel Dias Moura

It's solved...stupid thing: used &_ instead of & _

Thanks Anyway,
Miguel

Bin Song said:
Use the line-continuation character, which is a space followed by an
underscore ( _), at the point at which you want the line to break. In the
following example, the statement is broken into three lines with
line-continuation characters.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top