Hai,
I need to send and receive Email's using VB and Ms-Access. Am using the following code. If i run this code, i has the error message as,
Compile Error
User-defined type not defined in the code for New clsSendMail
Private Sub Command0_Click( )
Set poSendMail = New clsSendMail
poSendMail.UseA uthentication = True
poSendMail.UseP opAuthenticatio n = True
poSendMail.POP3 Host = "pop.gmail. com"
poSendMail.User Name = "ttamilvana n81"
poSendMail.Pass word = "classic"
poSendMail.SMTP Host = smtp.gmail.com
poSendMail.SMTP Port = 465
poSendMail.from = "ttamilvanan81@ gmail.com"
poSendMail.From DisplayName = Tamilvanan
poSendMail.Reci pient = "ephrontamizhva nan@gmail.com"
poSendMail.Reci pientDisplayNam e = "EphronTamilvan an"
poSendMail.Repl yToAddress = "ttamilvanan81@ gmail.com"
poSendMail.Subj ect = "Test Mail for How to Send E-Mail"
poSendMail.Mess age = "This is a test"
poSendMail.send
End Sub
If anyone know how to run this code, if any components or tools can i installed?
if anyone knows, please let me know.
By
Tamilvanan
I need to send and receive Email's using VB and Ms-Access. Am using the following code. If i run this code, i has the error message as,
Compile Error
User-defined type not defined in the code for New clsSendMail
Private Sub Command0_Click( )
Set poSendMail = New clsSendMail
poSendMail.UseA uthentication = True
poSendMail.UseP opAuthenticatio n = True
poSendMail.POP3 Host = "pop.gmail. com"
poSendMail.User Name = "ttamilvana n81"
poSendMail.Pass word = "classic"
poSendMail.SMTP Host = smtp.gmail.com
poSendMail.SMTP Port = 465
poSendMail.from = "ttamilvanan81@ gmail.com"
poSendMail.From DisplayName = Tamilvanan
poSendMail.Reci pient = "ephrontamizhva nan@gmail.com"
poSendMail.Reci pientDisplayNam e = "EphronTamilvan an"
poSendMail.Repl yToAddress = "ttamilvanan81@ gmail.com"
poSendMail.Subj ect = "Test Mail for How to Send E-Mail"
poSendMail.Mess age = "This is a test"
poSendMail.send
End Sub
If anyone know how to run this code, if any components or tools can i installed?
if anyone knows, please let me know.
By
Tamilvanan
Comment