Providing two versions since you did not indicate what version of Win you have, NT vs Win2k. I use CDONTS on my NT box and CDOSYS on my 2k systems.
HTH
DougCranston
'Sending a text email with an attached file
' If used on WIN2 Server/WS remove the double ''
' and then comment out the CDODNTS
''Set objMessage = CreateObject("CDO.Message"
'Sending a text email using a remote server
''Set objMessage = CreateObject("CDO.Message"
''objMessage.Subject = "Callout.xls Update"
''objMessage.Sender = "me@myemail.com"
''objMessage.To = "enduser@mymail.xxxx.com"
''objMessage.Cc = "me@myemail.com"
''objMessage.AddAttachment "c:\cmdfiles\tempfile\callout.xls"
''objMessage.TextBody = "The attached file is the latest listing."
'==This section provides the configuration information for the remote SMTP server.
'==Normally you will only change the server name or IP.
''objMessage.Configuration.Fields.Item _
''("
= 2
'Name or IP of Remote SMTP Server
''objMessage.Configuration.Fields.Item _
''("
= "smtp.tel.xxxx.com"
'Server port (typically 25)
''objMessage.Configuration.Fields.Item _
''("
= 25
''objMessage.Configuration.Fields.Update
'==End remote SMTP server configuration section==
''objMessage.Send
' CDONTS email for NT
Dim MyBody
Dim MyCDONTSMail
set MyCDONTSMail = CreateObject("CDONTS.NewMail"
MyCDONTSMail.Subject = "Callout.xls Update"
MyCDONTSMail.From = "me@myemail.com"
MyCDONTSMail.To = "enduser@myemail.com"
MyCDONTSMail.Cc = "me@myemail.com"
MyCDONTSMail.AttachFile("c:\cmdfiles\tempfile\callout.xls"

MyCDONTSMail.Body = "The attached file is the latest listing." & VbCrLf
MyCDONTSMail.Send
set MyCDONTSMail=nothing