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
|