Wrox Programmer Forums
|
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 8th, 2005, 02:25 AM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Send Attachement by email in asp

hi ,
I am trying to send an attachment by email using CDONT
I have written a statement. PDF is directory name where the file is kept.

strPDF = "PDF/filename.pdf"
MailObj.Attachfile(strPDF)


It gives me error as
(0x80004005)
Unspecified error

But if i write
strPDF = "G:/Ranjana/PDF/filename.pdf"
MailObj.Attachfile(strPDF)
It gives no error , when i specify the whole physical path

If i write
strPDF = "http://localhost/Conn/PDF/filename.pdf"
MailObj.Attachfile(strPDF)
It givers me error.

What Should i Write.

Regards,
Devyani


 
Old February 8th, 2005, 01:04 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

This parameter needs full path and file name of the file to be attached to the message.

strPDF = "G:/Ranjana/PDF/filename.pdf"



Om Prakash





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP VB.Net send email Greavr ASP.NET 2.0 Basics 3 August 26th, 2008 07:59 PM
send email by asp phuc2583 Classic ASP Basics 6 December 17th, 2007 10:52 PM
Can we send ASP Page as Attachement lakshmi_annayappa ASP.NET 1.0 and 1.1 Basics 2 May 5th, 2007 11:11 PM
Mail.send error (attachement > 100KB) max_manu Classic ASP Basics 0 June 27th, 2006 12:57 PM
How to send email through exchange from ASP + C# sdh C# 0 October 22nd, 2005 01:33 PM





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