Hi.

I have a problem. when I use this VB Script it works fine
But when I add the line
.AddAttachment "c:\MyDocument\test.txt"
it stopped worked, it hangs with no error at all.
If I change the line to a URL it works again
.AddAttachment http://www.google.com
But I want to send the file.



Dim objMessage
Set objMessage = Server.CreateObject("CDO.Message")
With objMessage
.To = "MyEmail.com"
.From = "MyEmail.com"
.Subject = "Testing Email"
.TextBody = "testing 123"
.AddAttachment "c:\MyDocument\test.txt"
.Send
End With
Set objMessage = Nothing

Please help me.
Christer J