I have been trying for some time to create a routine that will provide for sending multiple email & attachments from within a Mail List program I have. I have settled on a modification of vbSendEmail which I have tailored to my requirements. The program has a single form and uses a class DLL named vbsendmail.dll . I have registered the DLL and have created a test program that uses it. It works just fine. The test program contains the statement Private WithEvents poSendMail As vbSendMail.clsSendMail" in the General Section and the statement " Set poSendMail = New clsSendMail" in the Form Load.
I am attempting to add the this form to the existing MailList program but when I try to run the program I get the error "User Defined type not defined" on the "Private WithEvents poSendMail As vbSendMail.clsSendMail
" statement.
I am at a loss to understand why it works in one program but not another. This is the first attempt to work with a class module so any thoughts as to what I should be looking for would be appreciated.
I am attempting to add the this form to the existing MailList program but when I try to run the program I get the error "User Defined type not defined" on the "Private WithEvents poSendMail As vbSendMail.clsSendMail
" statement.
I am at a loss to understand why it works in one program but not another. This is the first attempt to work with a class module so any thoughts as to what I should be looking for would be appreciated.