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 :)
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 :)