Stuart,
Running your test code (no attachments):
Sub test1()
'Send a single message
With New clsCDO
.Server = "smtp.psln.com" 'Specify correct
server name or IP
.Sender = "
[email protected]" 'Sender's email
address
.SenderName = "Bill Stanton" 'Sender's name
.Receiver = "
[email protected]" 'Receiver's email address
.ReceiverName = "GraeagleBill" 'Receiver's name
.Subject = "A test subject" 'Message Subject
line
.Text = "This is a test message body" 'Message text
'.Files.Add "c:\temp\test1.zip" 'Add a couple of
attachments
'.Files.Add "c:\temp\test2.zip"
.SendMail 'Send the message
End With
End Sub
I got a runtime error:
Run-time error '-2147220975(80040211)':
The message cound not be sent to the SMTP server.
The transport error was 0x80040217. The server
response was not available.
With my ISP's SMTP properties my SMTP server requires
authentication. I see where you've enumerated "AuthTypes"
in clsCDO, but I couldn't figure out if that was playing a role
in causing the run-time error.