Hi there,
I can't seem to get this code to work, Does anyone know how to send an email attachment without using smtp?
Thanks,
Paul
Set objEmail = CreateObject("CDO.Message"
objEmail.From = "testsrv@co.oakland.mi.us"
objEmail.To = "user@co.oakland.mi.us"
objEmail.Subject = "testsrv Server down"
objEmail.Textbody = "Server1 is no longer accessible over the network."
objEmail.Configuration.Fields.Item _
(" = 2
objEmail.Configuration.Fields.Item _
(" = _
"emailbox.co.oakland.mi.us"
objEmail.Configuration.Fields.Item _
(" = 25
'*************************************8
Set objAttachment = objMessage.Attachments.Add("Attached File", , _
MsgFileData,"c:\data\Weekly.xls"
Set objAttachment = objMessage.Attachments.Add("Linked File", , _
MsgFileLink, "\\odin\xldata\Weekly.xls"
Set objAttachment = objMessage.Attachments.Add("Embedded File", , _
MsgOLE, "c:\data\Weekly.xls"
'objMessage.Update
'objMessage.Send
objEmail.Configuration.Fields.Update
objEmail.Send
I can't seem to get this code to work, Does anyone know how to send an email attachment without using smtp?
Thanks,
Paul
Set objEmail = CreateObject("CDO.Message"
objEmail.From = "testsrv@co.oakland.mi.us"
objEmail.To = "user@co.oakland.mi.us"
objEmail.Subject = "testsrv Server down"
objEmail.Textbody = "Server1 is no longer accessible over the network."
objEmail.Configuration.Fields.Item _
(" = 2
objEmail.Configuration.Fields.Item _
(" = _
"emailbox.co.oakland.mi.us"
objEmail.Configuration.Fields.Item _
(" = 25
'*************************************8
Set objAttachment = objMessage.Attachments.Add("Attached File", , _
MsgFileData,"c:\data\Weekly.xls"
Set objAttachment = objMessage.Attachments.Add("Linked File", , _
MsgFileLink, "\\odin\xldata\Weekly.xls"
Set objAttachment = objMessage.Attachments.Add("Embedded File", , _
MsgOLE, "c:\data\Weekly.xls"
'objMessage.Update
'objMessage.Send
objEmail.Configuration.Fields.Update
objEmail.Send