djdavedawson
01-17-2004, 02:39 PM
I have created an email form that will attach a pdf document from my server when sent. However, when I recieve the email, the attachment is called "attach.pdf" rather than the file name. On some email programs it is attached as "Part 001" and acrobat wont open it when it's double clicked. Here is the code I am using:
<%
Dim myMessage
Set myMessage = Server.CreateObject("CDO.Message")
myMessage.To = Request.Form("T1")
myMessage.From = "res@resorts.com"
myMessage.Subject = Request.Form("T2")
myMessage.TextBody = Request.Form("S1")
myMessage.AddAttachment ("http://Res/Brand%20RFTS/waiver.pdf")
myMessage.Send
Set objMessage = Nothing
%>
I want to be able to name the attachment and I don't get the "Part 001" thing. Please Help
<%
Dim myMessage
Set myMessage = Server.CreateObject("CDO.Message")
myMessage.To = Request.Form("T1")
myMessage.From = "res@resorts.com"
myMessage.Subject = Request.Form("T2")
myMessage.TextBody = Request.Form("S1")
myMessage.AddAttachment ("http://Res/Brand%20RFTS/waiver.pdf")
myMessage.Send
Set objMessage = Nothing
%>
I want to be able to name the attachment and I don't get the "Part 001" thing. Please Help