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?
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?