Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15079

Send Email

$
0
0
Sorry but I have a new thread for a similar problem. Can anyone see why this code will not send email. Outlook mail pops up and the attachment is there but when I send it, it doesn't show up in mailbox.

Dim myItem As Outlook.MailItem
Dim myAttachments As Outlook.Attachments
Set myItem = Application.CreateItem(olMailItem)
Set myAttachments = myItem.Attachments
myAttachments.Add "C:\my file", _
olByValue, 1, "Electricity Usage"
myItem.Display

Viewing all articles
Browse latest Browse all 15079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>