HTML body in email and very
HTML body in email and very
HTML body in email and very
HTML body in email and very
HTML body in email and very
HTML body in email and very HTML body in email and very HTML body in email and very HTML body in email and very HTML body in email and very HTML body in email and very HTML body in email and very HTML body in email and very
HTML body in email and very HTML body in email and very
HTML body in email and very
Go Back  Xtreme Visual Basic Talk > > > HTML body in email and very


Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2017, 02:32 PM
sal21 sal21 is offline
Junior Contributor
 
Join Date: Mar 2004
Posts: 260
Default HTML body in email and very


i make a string to insert in email body a value of recordset.
Now i need to set the table and cell of table with a very thin border...

i have see in googling:

<table style="border: 1px solid #0000FF">
...
</table>

this is a good option, but where in my code?

Code:
...
sT = "<table><strong><p style='font-family:ARIAL;font-size:10'>"
        sT = sT & "<td>   CONT.</td>"
        sT = sT & "<td>   DEN.</td>"
        sT = sT & "<td>   MAA</td>"
        sT = sT & "<td>   ND</td>"
        sT = sT & "<td>   DEN</td>"
        sT = sT & "<td>   CODLD</td>"
        sT = sT & "<td>   CODDO NEW</td>"
        sT = sT & "<td>   IBAN</td>"
        sT = sT & "<td>   IBAN</td>"
        sT = sT & "</tr></strong></p>"

        Do While Not RS1.EOF
            sT = sT & "<tr><p style='font-family:ARIAL;font-size:10'>"
            sT = sT & "<td>" & "   " & Format(RS1.Fields("a").Value, "#000000000") & "</td>"
            sT = sT & "<td>" & "   " & Trim(RS1.Fields("b").Value) & "</td>"
            sT = sT & "<td>" & "   " & Trim(RS1.Fields("c").Value) & "</td>"
            sT = sT & "<td>" & "   " & Format(RS1.Fields("d").Value, "#000000000") & "</td>"
            sT = sT & "<td>" & "   " & Trim(RS1.Fields("DEN").Value) & "</td>"
            sT = sT & "<td>" & "   " & Trim(RS1.Fields("COD_ACCORDO_OLD").Value) & "</td>"
            sT = sT & "<td>" & "   " & Trim(RS1.Fields("SPO").Value) & "</td>"
            sT = sT & "<td>" & "   " & Trim(RS1.Fields("IBAND").Value) & "</td>"
            sT = sT & "<td>" & "   " & Trim(RS1.Fields("IBANW").Value) & "</td>"
            sT = sT & "</tr></p>"
            RS1.MoveNext
        Loop
        sT = sT & "</table>"

MyHTMLString = MyHTMLString & "<p>" & sT
...
Reply With Quote
  #2  
Old 06-09-2017, 03:13 AM
Flyguy's Avatar
FlyguyHTML body in email and very Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,164
Default

Replace your current <table> part in the string
Reply With Quote
Reply

Tags
table, #000000000, iban, den, email, body, myhtmlstring, maa, cont, coddo, codld, formatrs1.fieldsd.value, trimrs1.fieldsiband.value, trimrs1.fieldsibanw.value, rs1.movenext, loop, trimrs1.fieldsspo.value, formatrs1.fieldsa.value, trimrs1.fieldsb.value, trimrs1.fieldsc.value, trimrs1.fieldsden.value, rs1.eof, option, set, cell


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
HTML body in email and very
HTML body in email and very
HTML body in email and very HTML body in email and very
HTML body in email and very
HTML body in email and very
HTML body in email and very HTML body in email and very HTML body in email and very HTML body in email and very HTML body in email and very HTML body in email and very HTML body in email and very
HTML body in email and very
HTML body in email and very
 
HTML body in email and very
HTML body in email and very
 
-->