Does anyone know how to e-mail an attachment using VB code. Every time we do it the attachment come though in the body of the e-mail not as an attachment.
Glyons, Here is a module that I use to send email messages with attachments. It work just get and you should be able to incorporate into your application with small modifications to the code.
Sub SendMessage(Optional AttachmentPath, Optional AdditoinalAttachment, Optional HotelAttachment) Dim objOutlook As Outlook.Application Dim objOutlookMsg As Outlook.MailItem Dim objOutlookRecip As Outlook.Recipient Dim objOutlookAttach As Outlook.Attachment Dim strDeadline As String Dim strEmail As String Dim strBody As String Dim strContactFN As String
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.