This is a discussion on "Uploading a Cv and attaching to an email" within the Classic ASP section. This forum, and the thread "Uploading a Cv and attaching to an email are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Uploading a Cv and attaching to an email
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Uploading a Cv and attaching to an email
I used this example from the forum http://www.webforumz.com/asp-forum/1...t=email+attach
The problem im getting is that when trying to send the email it can not find the path. the code for this is: If UploadRequest.Item("blob").Item("Value") <> "" Then contentType = UploadRequest.Item("blob").Item("ContentType") filepathname = UploadRequest.Item("blob").Item("FileName") filename = Right(filepathname,Len(filepathname)-InstrRev(filepathname,"\")) FolderName = UploadRequest.Item("where").Item("Value") Path = Mid(Request.ServerVariables("PATH_TRANSLATED"), 1, Len(Request.ServerVariables("PATH_TRANSLATED")) - Len(Request.ServerVariables("PATH_INFO"))) ToFolder = Path & "\" & FolderName value = UploadRequest.Item("blob").Item("Value") filename = ToFolder & "\" & filename Set MyFileObject = Server.CreateObject("Scripting.FileSystemObject") Set objFile = MyFileObject.CreateTextFile(filename) For i = 1 to LenB(value) objFile.Write chr(AscB(MidB(value,i,1))) the invalid path comes from this line: Set objFile = MyFileObject.CreateTextFile(filename) can anybody help? |
|
|
|
|||
|
Re: Uploading a Cv and attaching to an email
email....thats not an email script. have u pasted the wrong code..?
|
|
|||
|
Re: Uploading a Cv and attaching to an email
no that is part of the script. if you look at this link http://www.webforumz.com/asp-forum/1...t=email+attach
and see the two files/pieces of code rob posted. thats what i used. |
|
|||
|
Re: Uploading a Cv and attaching to an email
sorry, lol i only saw the "email" side of your question lol
ill have a proper look later, but have u got permissions on tht folder? |
![]() |
| Tags |
| uploading, attaching, email |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| attaching files | aashishahuja | PHP Forum | 2 | Jun 1st, 2008 02:42 |
| Problem attaching PHP to webpages | thumbliner | PHP Forum | 6 | Apr 20th, 2008 15:23 |
| PHP email form not sending email | Kurt | PHP Forum | 1 | Oct 12th, 2007 04:26 |
| Form submits to email via php, but email is blank!!?? | DH1234 | PHP Forum | 2 | Jun 18th, 2007 10:42 |
| Attaching styles/classes to Javascript. Help! | super8kid | Web Page Design | 1 | Sep 14th, 2006 14:53 |