Hi.
The CDO code requires that you specify the account information as well as the message.
Try adding the following just above the .send line. replace these with actual values
smtp.YourSMTP.com
YourAddress@blah.com
YourPassword
Remember this code is designed to create and send an e-mail with out utilizing your e-mail software, so you don't have to configure for use with Outlook or Express or anything else, just uses the internet connection.
Thanks,
ChaZ
objMessage.Configuration.Fields.Item _
("
= 2
objMessage.Configuration.Fields.Item _
("
= "smtp.YourSMTP.com"
'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
("
= cdoBasic
'Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
("
= "YourAddress@blah.com"
'Your password on the SMTP server
objMessage.Configuration.Fields.Item _
("
= "YourPassword"
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("
= 25
'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
("
= False
'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
("
= 60
objMessage.Configuration.Fields.Update
/
Code:
There Are 10 Types Of People In The world:
Those That Understand BINARY And Those That Don’t.