CDO Error

M

MDW

I'm trying to configure MS Access to send e-mails using CDO. When I try to
use the .Send method, I'm getting an error that says "The pickup directory
path was not specified."

Below is the relevant code....

Set objMsg = New CDO.Message

objMsg.Subject = strSubject & " - TEST (PLEASE IGNORE)"
objMsg.TextBody = strMessage
objMsg.From = "(e-mail address removed)"
objMsg.To = objAdmin(1).Value

' Set configuration.
Set objConfig = New CDO.Configuration
Set objFields = objConfig.Fields

Set objField =
objFields("http://schemas.microsoft.com/cdo/configuration/sendusing")
objField.Value = 1 ' Sets the configuration to use the local
SMTP server
objFields.Refresh

objMsg.Configuration = objConfig

objMsg.Send << ERROR
 

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

Similar Threads

Sending CDO E-mail 1
CDO Error 0
Still having problems with CDO 5
CDO W/O A Server? 0
CDO Message 1
CDOSYS 1
CDO Message Send Error 0x800ccc13 / 15 2
SendEmail with Embedded Graphics 0

Top