Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP CDO
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 13th, 2005, 07:58 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CDONTS.NewMail VS CDO.Message doc attachment

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
EMail (CDONTS) File Attachment is blank Jorge Classic ASP Components 1 March 11th, 2004 03:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.