CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Jan 2012
    Posts
    35

    Prob using "Style" in HTML Body of Email

    I have the following HTML code in a VB5 program sending an Email that "does not" work:

    Code:
    .Subject = MsgSubject
            .HtmlBody = "<html><body style='background-color:FFFF99'>" _
                & HtmlBodyFirstPart _
                & "</br></br><p2 style=""font-family:arial;color:red;font-size:20px;"">HAPPY BIRTHDAY!</p2>" _

    I have the following code that "does" work:
    Code:
    .Subject = MsgSubject
            .HtmlBody = "<html><body style='background-color:FFFF99'>" _
                & HtmlBodyFirstPart _
                & "</br></br><p2><font size='7' color='red' face='arial'>HAPPY BIRTHDAY!</font></p2>" _
    What is wrong with the code using "Style"????

    Thanks for your help
    Last edited by PeejAvery; February 13th, 2012 at 04:46 PM. Reason: Added code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured