HTML EMailBody

vince1818

Registered User.
Local time
Yesterday, 16:32
Joined
Apr 8, 2015
Messages
34
Hello,

I would like add a logo and table in an HTML EmailBody template, I am not sure how to do it right, I am hoping to get some tips from anyone.

Let me know, I can post the code I created.

Thanks,

Vincent
 
Post your code but note this is a VBA forum, not one for HTML.

On the occasional time I need to do what you want, I do a lot of Google searching to get the right HTML syntax. The following snippet from one of my applications might give you a steer.

Code:
   strMsg = "<!DOCTYPE HTML PUBLIC " & Chr(34) & "-//W3C//DTD HTML 3.2 Final//EN" & Chr(34) & ">" & vbCrLf & _
      "<HTML>" & vbCrLf & _
      "<BODY>" & vbCrLf & _
      "<style type='text/css'>" & _
      "p.tab { margin-left: 20px;} p.small {line-height:30%;} p.Indentsmall {margin-left: 20px; line-height:80%;}" & _
      "</style>" & _
      "<P font face='verdana'>Hi " & Left(Me.txtRecdFrom, n - 1) & ",</P>" & vbCrLf & _
      "<p></P><p></P>" & _
      "<P>Please find attached the following in relation to your booking at the lodge</P>" & _
      "<UL>" & strAttachments & "</UL>" & _
      "<p></P><p></P>" & _
      "<p>We look forward to seeing you in " & Format(Forms!frmBooking!txtDateIn, "mmmm") & ".</p>" & _
      "<p>Warm Regards</p>" & _
      "<p>Olivia</p><p></P>" & _
      "<IMG SRC='C:\Lodge\Templates\image001.jpg'/>" & _
      "</BODY>" & _
      "</HTML>"
 

Users who are viewing this thread

Back
Top Bottom