I am having an issue with a vb app that uses CDONTS to send attachments.
The app first goes and gets the directory name, grabs the files in the directory using
objNewMail.AttachFile nochange, File1.List(ii),
I then open a access database to associate an email address to the folder name. Once that is complete I execute
objNewMail.Send "test@test.com", email, "Sales for " &
Company & " "
I have a label on the form that let's me know what is sending and refreshing.
Each folder has 3 excel files. Ranging from 10kb to 750kb
My problem is that I get an a Run time error '61' Disk Full error.
If I step through it(F8), I seem to be getting further before it errors.
Is there an item with CDONTS that I need to close?
I am setting this after each objNewMail.Send
Set objNewMail = Nothing
Set objNewMail = CreateObject("CDONTS.NewMail"
I am at a loss. If I take the attachments out of the folders and send the e-mails without attachments, it works great, Also works great with 1 excel file in each folder.
Anyhelp would be greatly appreciated.
The app first goes and gets the directory name, grabs the files in the directory using
objNewMail.AttachFile nochange, File1.List(ii),
I then open a access database to associate an email address to the folder name. Once that is complete I execute
objNewMail.Send "test@test.com", email, "Sales for " &
Company & " "
I have a label on the form that let's me know what is sending and refreshing.
Each folder has 3 excel files. Ranging from 10kb to 750kb
My problem is that I get an a Run time error '61' Disk Full error.
If I step through it(F8), I seem to be getting further before it errors.
Is there an item with CDONTS that I need to close?
I am setting this after each objNewMail.Send
Set objNewMail = Nothing
Set objNewMail = CreateObject("CDONTS.NewMail"
I am at a loss. If I take the attachments out of the folders and send the e-mails without attachments, it works great, Also works great with 1 excel file in each folder.
Anyhelp would be greatly appreciated.