I downloaded the mailer from 'http://www.freevbcode.com/ShowCode.ASP?SearchString=vbSendMail.dll&ID=109'.
As mailer document said,
'Module Level Declaration (WithEvents optional but recommended)
Private WithEvents poSendMail as vbSendMail.clsSendMail
I got a error message 'Compile error:Only valid in object module', red highlight on 'WithEvents'
After I removed 'WithEvents' and tried to run the program, got a error message 'Compile error:User-defined type not defined',red highlight on 'poSendMail As vbSendMail.clsSendMail'.
Actually I already copied .dll to C:/WINDOWS, seems like I have trouble to introduce dll into my VB code.
As mailer document said,
'Module Level Declaration (WithEvents optional but recommended)
Private WithEvents poSendMail as vbSendMail.clsSendMail
I got a error message 'Compile error:Only valid in object module', red highlight on 'WithEvents'
After I removed 'WithEvents' and tried to run the program, got a error message 'Compile error:User-defined type not defined',red highlight on 'poSendMail As vbSendMail.clsSendMail'.
Actually I already copied .dll to C:/WINDOWS, seems like I have trouble to introduce dll into my VB code.