If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > CDONTS.NewMail VS CDO.Message doc attachment

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-05, 20:23
shivForum shivForum is offline
Registered User
 
Join Date: Apr 2003
Posts: 3
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 = “xyz@abc.com”
objMail.To = “xyz123@abc.com”
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 = “xyz@abc.com”
objMail.To = “xyz123@abc.com”
objMail.Subject = “Test email”
objMail. TextBody= “Test Email body text”
objMail.AddAttachment “d:\temp\A01BC.Doc”
objMail.Send

ISSUE:
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On