newfrontiers
Programmer
Can anyone direct me to a solution to add multiple files to an email. I need the user to be able to select the files in an Explore type environment.
Thanks for your help.
Thanks for your help.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim objOutlook
Dim ItmNewEmail
Dim folderspec As String
Dim filedate, fnamedate As String
Dim fdir As String
Dim OutputFileName As String
filedate = Date
fnamedate = Format(filedate, "mmddyy")
OutputFileName = "somefilename"
fdir = "somedirectory\"
Set objOutlook = CreateObject("Outlook.Application")
Set ItmNewEmail = objOutlook.CreateItem(olMailItem)
With ItmNewEmail
.To = "someadd@domain.com"
.CC = "somemoreadds@domain.com"
.Subject = "Your Subject Reports " & filedate
.Body = "Attached please find today's reports." _
& Chr(13) & Chr(13) & "Thank You."
[b].Attachments.Add [/b](fdir & OutputFileName)
[b].Attachments.Add [/b]fdir & "some other file" & fnamedate & ".xls"
.Send
'send files and notification
End With