smtp.ocx

B

Brian Root

I am using smtp.ocx control to send emails from Access
2000. The code sample I am using is as follows:

With Me.SMTP1
.Server = strServer
.MailFrom = strFrom
.SendTo = strTo
.MessageSubject = "Test"
.MessageText = "Test"
.Attachments.Add strFileName

.Connect

End With

Emailing without an attachement works fine, but when I
try to add an attachment via the SMTP1.Attachments.Add
strFileName, I get a "Object doesn't support this
property or method" error.

Anyone know how to get around this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top