Uploading a Cv and attaching to an email

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 3rd, 2006, 08:47
Junior Member
Join Date: Mar 2006
Location: uk
Age: 26
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote

  #2 (permalink)  
Old Mar 3rd, 2006, 12:04
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbramz
Re: Uploading a Cv and attaching to an email

email....thats not an email script. have u pasted the wrong code..?
Reply With Quote
  #3 (permalink)  
Old Mar 3rd, 2006, 13:04
Junior Member
Join Date: Mar 2006
Location: uk
Age: 26
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Mar 3rd, 2006, 17:23
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbramz
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?
Reply With Quote
  #5 (permalink)  
Old Mar 3rd, 2006, 21:34
Junior Member
Join Date: Mar 2006
Location: uk
Age: 26
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Uploading a Cv and attaching to an email

yeh i have got permissions. i can send normal emails and have full access.
Reply With Quote
Reply

Tags
uploading, attaching, email

Thread Tools

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

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


All times are GMT. The time now is 15:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43