JorisT
02-06-2008, 02:51 PM
Hi,
I hope someone here can answer this, cause I have no clue anymore;
I've created a script that sends out an HTML e-mail using CDOSYS. The e-mail includes some links to files on our file server.
My problem is that the link locations are stripped when I look at the resulting e-mail in Outlook.
Here's the script:
Set oMessage = CreateObject("CDO.Message")
With oMessage
.From = x@x.x
.To = y@y.y
.Subject = "zzzzz"
.HTMLBody = "Link: <a href=""h:\test.doc"">Test</a>"
'Provide the configuration information for the remote SMTP server
With oMessage.Configuration.Fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "server-01"
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Update
End With
.Send
End With
Set oMessage = Nothing
The resulting body of the e-mail I receive in Outlook is this (viewing the html source code):
Link: <a>Test</a>
If I change the link location to a web page address (http://....) the link is left intact. Also link locations starting with file:// get stripped.
I am sending this through an Exchange 2003 server. Could that have anything to do with it?
Any ideas / pointers are much appreciated!
Thanks.
I hope someone here can answer this, cause I have no clue anymore;
I've created a script that sends out an HTML e-mail using CDOSYS. The e-mail includes some links to files on our file server.
My problem is that the link locations are stripped when I look at the resulting e-mail in Outlook.
Here's the script:
Set oMessage = CreateObject("CDO.Message")
With oMessage
.From = x@x.x
.To = y@y.y
.Subject = "zzzzz"
.HTMLBody = "Link: <a href=""h:\test.doc"">Test</a>"
'Provide the configuration information for the remote SMTP server
With oMessage.Configuration.Fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "server-01"
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Update
End With
.Send
End With
Set oMessage = Nothing
The resulting body of the e-mail I receive in Outlook is this (viewing the html source code):
Link: <a>Test</a>
If I change the link location to a web page address (http://....) the link is left intact. Also link locations starting with file:// get stripped.
I am sending this through an Exchange 2003 server. Could that have anything to do with it?
Any ideas / pointers are much appreciated!
Thanks.