Dear All,
The Following is the Code iam using to send the File as attachment thru outlook, i require some reports to be sent thru body of the email in outlook. Can anyone help
Dim sFile As String
Dim sFolder As String
Dim sSubject As String
Dim sMessage As String
sFolder = Application.CurrentProject.Path & "\Reports"
sFile = Application.CurrentProject.Path & "\Reports" & "Report.html"
If FolderExist(sFolder) = False Then MkDir (sFolder)
DoCmd.OutputTo acOutputReport, "rptShipDue", acFormatHTML, sFile, False
sSubject = "Report "
sMessage = "<HTML><BODY> " & "Dear Sirs" & "<Br> <Br> Please find below the Report." & "<Br> <Br> Kindly advice of any Discrepancies." & "<Br> <Br> Regards," & "</body></html>"
Call SendHTMLMail(" ", sSubject, sMessage, True, , Array(sFile))
Awaiting your help
The Following is the Code iam using to send the File as attachment thru outlook, i require some reports to be sent thru body of the email in outlook. Can anyone help
Dim sFile As String
Dim sFolder As String
Dim sSubject As String
Dim sMessage As String
sFolder = Application.CurrentProject.Path & "\Reports"
sFile = Application.CurrentProject.Path & "\Reports" & "Report.html"
If FolderExist(sFolder) = False Then MkDir (sFolder)
DoCmd.OutputTo acOutputReport, "rptShipDue", acFormatHTML, sFile, False
sSubject = "Report "
sMessage = "<HTML><BODY> " & "Dear Sirs" & "<Br> <Br> Please find below the Report." & "<Br> <Br> Kindly advice of any Discrepancies." & "<Br> <Br> Regards," & "</body></html>"
Call SendHTMLMail(" ", sSubject, sMessage, True, , Array(sFile))
Awaiting your help