Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27196

CDO Email Attachments

$
0
0
I am having issues hashing out this little bit of code

I have got a list box where I want to be able drag and drop files or list of files into the box and then have the files email via cdo and an smtp server.

Everything works so far except I cant get it to attach any thing not even if I directly reference the file in stead of using a variable.

This doesn't work no attachment
ObjSendMail.To = email.Text 'Get's email from form
ObjSendMail.Subject = infoUrequested
ObjSendMail.From = maskedemail
ObjSendMail.addattachment = ListBox1

This also doesn't work no attachment
ObjSendMail.To = email.Text 'Get's email from form
ObjSendMail.Subject = infoUrequested
ObjSendMail.From = maskedemail
ObjSendMail.addattachment = "Some Path Name"

Yeah Yeah I know search - I am searching :)

Viewing all articles
Browse latest Browse all 27196

Trending Articles



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