Hi
Recently we moved from win 2000 to win 2003 server.
At win 2000 IIS web server, I was using following asp code to attach a document with email
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = â
[email protected]â
objMail.To = â
[email protected]â
objMail.Subject = âTest emailâ
objMail.Body = âTest Email body textâ
objMail.AttachFile âd:\temp\A01BC.Docâ,âTest.docâ,1
objMail.Send
Now at Win 2003 Server I am using following code
Set objMail = Server.CreateObject("CDO.Message ")
objMail.From = â
[email protected]â
objMail.To = â
[email protected]â
objMail.Subject = âTest emailâ
objMail. TextBody= âTest Email body textâ
objMail.AddAttachment âd:\temp\A01BC.Docâ
objMail.Send
Here, I am not sure how to give Placeholder name to the attached document. Same as I was able to provide in CDONTS.NewMail
Documents are stored with some unique system name and are mapped to docs actual name in database.
While attaching the document in email I want to attach it with its actual name.
Please help!!!
Thanks