N
news.xs4all.nl
I'm using the following code to produce and send an email from ms-access:
================================================================
Dim stSql As String
Dim iIndex As Integer
Dim strHTML As String
Dim strHeader As String
Dim olApp As Outlook.Application
Dim olMail As Outlook.MailItem
Set olApp = CreateObject("Outlook.Application")
Set olMail = olApp.CreateItem(olMailItem)
strHeader = "<HEAD><title>Status</title><STYLE>"
strHeader = strHeader & gstrStyle
strHeader = strHeader & "</STYLE>"
strHeader = strHeader & "</head>"
strHTML = statusTabel()
olMail.To = getEmailAddress()
olMail.Subject = "Status"
olMail.HTMLBody = "<HTML>" & strHeader & "<BODY>"& strHTML &
"</BODY></HTML>"
olMail.SentOnBehalfOfName = "Info"
olMail.ReadReceiptRequested = True
olMail.BodyFormat = olFormatHTML
olMail.Display
==============================================================
But when i look into the source of de html-email there is a LOT of extra
style code introduced and even supersedes my onwn style?
What am I doing wrong.
Ernst
================================================================
Dim stSql As String
Dim iIndex As Integer
Dim strHTML As String
Dim strHeader As String
Dim olApp As Outlook.Application
Dim olMail As Outlook.MailItem
Set olApp = CreateObject("Outlook.Application")
Set olMail = olApp.CreateItem(olMailItem)
strHeader = "<HEAD><title>Status</title><STYLE>"
strHeader = strHeader & gstrStyle
strHeader = strHeader & "</STYLE>"
strHeader = strHeader & "</head>"
strHTML = statusTabel()
olMail.To = getEmailAddress()
olMail.Subject = "Status"
olMail.HTMLBody = "<HTML>" & strHeader & "<BODY>"& strHTML &
"</BODY></HTML>"
olMail.SentOnBehalfOfName = "Info"
olMail.ReadReceiptRequested = True
olMail.BodyFormat = olFormatHTML
olMail.Display
==============================================================
But when i look into the source of de html-email there is a LOT of extra
style code introduced and even supersedes my onwn style?
What am I doing wrong.
Ernst