jetspin
Programmer
- Mar 5, 2002
- 76
Hi.
I can send mail using the SendObject Method, but I cannot send mail in an html format. Can someone tell me what I'm missing? Thanks. Here is my code.
Dim strToWhom As String
Dim strMsgBody As String
Dim strMsgSubject As String
strToWhom = "vern@mydomain.com"
strMsgSubject = "Confirmation"
strMsgBody = "<HTML><HEAD><TITLE></TITLE></HEAD><BODY><FONT face=Arial size=2><STRONG>" & vbCrLf
strMsgBody = strMsgBody & "Thank You for using our service!<BR><BR>" & vbCrLf
strMsgBody = strMsgBody & "Vern<BR>80 Main St<BR>Somewhere, TXC 11111<BR>V. 111.111.2222<BR>F.333.4444.4444" & vbCrLf
strMsgBody = strMsgBody & "</STRONG></FONT></BODY></HTML>" & vbCrLf
DoCmd.SendObject , acSendNoObject, acFormatHTML, strToWhom, , , strMsgSubject, strMsgBody, True
I can send mail using the SendObject Method, but I cannot send mail in an html format. Can someone tell me what I'm missing? Thanks. Here is my code.
Dim strToWhom As String
Dim strMsgBody As String
Dim strMsgSubject As String
strToWhom = "vern@mydomain.com"
strMsgSubject = "Confirmation"
strMsgBody = "<HTML><HEAD><TITLE></TITLE></HEAD><BODY><FONT face=Arial size=2><STRONG>" & vbCrLf
strMsgBody = strMsgBody & "Thank You for using our service!<BR><BR>" & vbCrLf
strMsgBody = strMsgBody & "Vern<BR>80 Main St<BR>Somewhere, TXC 11111<BR>V. 111.111.2222<BR>F.333.4444.4444" & vbCrLf
strMsgBody = strMsgBody & "</STRONG></FONT></BODY></HTML>" & vbCrLf
DoCmd.SendObject , acSendNoObject, acFormatHTML, strToWhom, , , strMsgSubject, strMsgBody, True