Access 2003.
How to send an email without Outlook showing a dialog box, and with attachment.
The code below will send an email without showing the big
window, but it did not have a file attachment although
I did specify the name of the file which is
"Report_Drawing".
///////////////////////////////////////////
Private Sub Send_Email_To_A_Recipient_Automatically()
Dim stDocName As String
Dim Send_Email_To As String
Dim cc_field As String
stDocName = "Report_Drawing"
Send_Email_To = "john_Doe@abc.com"
cc_field = ""
DoCmd.SendObject , stDocName, "Snapshot Format",
Send_Email_To, cc_field, , _
"NCR Subject", "Hi. A Sales number " & Me!NCR & "
have just been generated.", False, "Clear Day"
End Sub
How to send an email without Outlook showing a dialog box, and with attachment.
The code below will send an email without showing the big
window, but it did not have a file attachment although
I did specify the name of the file which is
"Report_Drawing".
///////////////////////////////////////////
Private Sub Send_Email_To_A_Recipient_Automatically()
Dim stDocName As String
Dim Send_Email_To As String
Dim cc_field As String
stDocName = "Report_Drawing"
Send_Email_To = "john_Doe@abc.com"
cc_field = ""
DoCmd.SendObject , stDocName, "Snapshot Format",
Send_Email_To, cc_field, , _
"NCR Subject", "Hi. A Sales number " & Me!NCR & "
have just been generated.", False, "Clear Day"
End Sub