[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-06 Thread Furry, Tim
jac wrote:
  OK I'm gonna scream!!! this thing is driving me mad for the last 3
hours.

Stephen responded:
  It looks to me like you're missing a step.  This is all theory,
because I've never had reason to send an attachment in an automated
email, but...  I'm pretty sure all that the script will have access to
is what is on the server (or depending on your configuration, the local
network).  I believe you'll need to upload the document via a separate
script, then point your cdosys routine at the local copy of this
attachment, after which you could use fso to delete the file or just
archive it, whichever you desire.

Tim adds:
You might consider looking at ASPUpload (www.aspupload.com) - it's an
ASP component by Peter Persits that allows uploading files to either
memory or hard drive.  I've had good success uploading data and files to
memory and then storing them in a database without writing anything to
the drive...you could probably adapt that method to upload the
attachment from the user to memory and attach it directly to the CDO
email.  It has a fully-functioning trial period that lets you set it up
and test it before buying.  Only problem is that you'll have to install
it on the production server (some hosts already provide it).

Tim
___ 
Tim Furry
Web Developer 
Foulston Siefkin LLP 




 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-06 Thread darren
On Wednesday, November 5, 2003 at 21:52, jac - WDVL wrote:

jW> you seem to understand what I'm trying to do but I find it hard to
jW> believe that I'd have to get the file uploaded to the server & then in a
jW> separate step - email it on to my client :o(

why??  you can't just rip the file off of the users machine as then you'd
be able to get at any file you knew the location of.  making use of the
file input type includes the file when the user submits the form.  then
have to parse this input, extract the file and all the other variables and
then send the email.

a good link on how to do this in pure script is at:

   http://www.asp101.com/articles/jacob/scriptupload.asp

if you can install components on the server then software artisans' fileup
is one of the better ones.

jW> Definitely thought there would be a more direct way to doing this. But
jW> I'm not saying you're wrong...Is that how all the recruitment sites out
jW> there deal with their jobseekers adding their CV's to the job
jW> applications?

all the job sites i've used (and that was quite a lot just a few months
ago) allow you to upload your cv which is then attached to any application
you make from the site.

i haven't seen any way of doing it the way you want to.

hth,

darren


 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-05 Thread Bj
> if Bj is reading this - remember the site you did for an Irish
> recruitment co. did they have this function on their site?

No, and for most sites I've done that let users upload files, I used Perl or
php, but I have done file uploads using ASP (much harder!)

You need to stop and realise you are doing two different things here - a
file upload *followed* by an email.  Your form needs to be specified as a
multipart form with a 'file' type input to get the attachment.  ASP itself
doesn't understands file uploads and has no buit-in way of dealing with
them, so in the ASP page that processes the form, you then need to call a
file upload component like ASPUpload to process the uploaded file, then pass
it to an email component to send it with the email.  You'll have to find
whether your ISP has a file upload component and how to use it - my guess it
will take you days and days to master it :-/  Sorry!  The alternative is
just to use a mailto: and let the user attach the file and send using their
own email client of choice.


 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-05 Thread jac - WDVL
Hi Darren,
you seem to understand what I'm trying to do but I find it hard to
believe that I'd have to get the file uploaded to the server & then in a
separate step - email it on to my client :o(
Definitely thought there would be a more direct way to doing this. But
I'm not saying you're wrong...Is that how all the recruitment sites out
there deal with their jobseekers adding their CV's to the job
applications?

thanks again... 

jac.




you need to use a file input box to submit the file to the server and
then
attach it to your email.  this is pretty much the method that most of
the
web-based email services use.



 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-05 Thread darren
On Wednesday, November 5, 2003 at 19:05, SsolSsinclair wrote:

S> 
S> Once the client hits "enter", you expect a CDOSYS script to be activated
S> [which was just priorly downloaded] which interprets the directory path the
S> client has just established during reader reception time. The CDOSYS script
S> then uses this path to access and upload the script. This is the solution
S> you/we/i seek
S> 

S> is it possible to keep a script actively running once downloaded, or does it
S> require activation [it would be better - in my immature obinion] to have the
S> script actively running when the client performs this task.

chances are, if you're using cdosys, you're probably using asp.  this runs
on the server.  there's no way (as far as i'm aware) to keep this script
running.

why would you want it actively running??

S> is the "directory path" the client establishes accessible on the OS's hard
S> disk being used in the scenario? IOWs, Do you know where this information
S> can be retrieved from on the OS

no! :>  the problem here is security, you're not allowed to read files off
of the clients pc.

you need to use a file input box to submit the file to the server and then
attach it to your email.  this is pretty much the method that most of the
web-based email services use.

S> can tou activate the script using mouse motion as detection

the script is running on the server, so unless you want to use javascript
to do something funky.

hth,

darren.


 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-05 Thread SsolSsinclair
i don't think that you're going to be able to do this as
directly
as you want.  you're going to have to do it in two steps.  first you have
to upload the file to your server and then send the email using the path to
the file you've just uploaded.

for file upload you can either use a component on the server, or use a pure
asp upload script.  the script works ok if the file you want to upload is
smallish.  if you're regularly wanting to upload large files look at using
a proper component if you can.

once the file is on your server you can attach it to the email and send.
don't forget to delete the file afterwards!




 I don't know how to phrase the code so that it will read in the
input box containing the file name from the form.


Once the client hits "enter", you expect a CDOSYS script to be activated
[which was just priorly downloaded] which interprets the directory path the
client has just established during reader reception time. The CDOSYS script
then uses this path to access and upload the script. This is the solution
you/we/i seek


is it possible to keep a script actively running once downloaded, or does it
require activation [it would be better - in my immature obinion] to have the
script actively running when the client performs this task.

is the "directory path" the client establishes accessible on the OS's hard
disk being used in the scenario? IOWs, Do you know where this information
can be retrieved from on the OS

can tou activate the script using mouse motion as detection

Questions


 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-05 Thread darren
On Wednesday, November 5, 2003 at 17:12, SsolSsinclair wrote:

S> how does this work?

how does what work??

S> all the examples I've come across are for the situation
S> where you want to send out an email with the specified path to the
S> attachment included in the ASP code

S> what resulting situation does it arrive at?

most of the examples when you're trying to get cdo to send an email with an
attachment, have the attachment path hardcoded into the example.  the path
is where the file is on the server, cdo then sends the email with the file
attached.  it all works rather nicely...unless you want to upload the file
to the server in the first place! :>

hth,

darren.


 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-05 Thread SsolSsinclair
how does this work?

all the examples I've come across are for the situation
where you want to send out an email with the specified path to the
attachment included in the ASP code

what resulting situation does it arrive at?
 

 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-05 Thread darren
On Wednesday, November 5, 2003 at 16:31, jac - WDVL wrote:

jW> I found an example of what I need here: http://www.valcom.tv/jobs.asp

note: if you want to see the source to this page, try viewing it in
firebird! :>

jW> you see on the form you have the option of browsing your hardrive for
jW> your resume and then attach the resume... well that's what I'm looking
jW> for in CDOSYS. this is turning into a right pain in the @ss. 

i haven't been reading this, so apologies if this has already been
mentioned.

anyway, i don't think that you're going to be able to do this as directly
as you want.  you're going to have to do it in two steps.  first you have
to upload the file to your server and then send the email using the path to
the file you've just uploaded.

for file upload you can either use a component on the server, or use a pure
asp upload script.  the script works ok if the file you want to upload is
smallish.  if you're regularly wanting to upload large files look at using
a proper component if you can.

once the file is on your server you can attach it to the email and send.
don't forget to delete the file afterwards!

hth,

darren.


 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-05 Thread jac - WDVL
folks
thanks for all the suggestions... I really appreciate your time &
effort. But all the examples I've come across are for the situation
where you want to send out an email with the specified path to the
attachment included in the ASP code. not what I need :o( 
I found an example of what I need here: http://www.valcom.tv/jobs.asp
you see on the form you have the option of browsing your hardrive for
your resume and then attach the resume... well that's what I'm looking
for in CDOSYS. this is turning into a right pain in the @ss. 

Any further suggestions?
 
if Bj is reading this - remember the site you did for an Irish
recruitment co. did they have this function on their site? 

tia,
jac.



 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-05 Thread sonja . vanderwesthuizen

Hi Jac,

I don't know if you sorted it out already, but maybe this link will help

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/_cdosys_adding_attachments.asp

tx
Sonja van der Westhuizen

Tel.:  011 282-1843
Fax:  011 282-4529
Cell:  083 256 0810
email:   [EMAIL PROTECTED]


|+--->
||  "jac - WDVL" |
||  <[EMAIL PROTECTED]|
||  s.com>   |
||   |
||  2003/11/05   |
||  12:45 AM |
||  Please   |
||  respond to   |
||  wdvltalk |
||   |
|+--->
  
>-|
  |
 |
  |   To: [EMAIL PROTECTED]
   |
  |   cc:  
 |
  |       Subject:     [wdvltalk] RE: CDOSYS email form & adding attachment
 |
  
>-|




Just reviewing what I wrote in my first post and I think I could have
been clearer on what I need to happen :o)

for example ... A Job Recruitment website - the user fills out their
details in the online form & also on the form would be a "Browse your
hard drive" button so that they could attach their CV to the form. The
find their CV on their HD and the path to the file appears in the
"attachment" input field in the form.

how do I get that (the CV) to send with the rest of the info in the form
using CDOSYS.

any help what so ever is apprecaited

jac





 ? The WDVL Discussion List from WDVL.COM ? 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the
words: "set WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]





 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-05 Thread Stephen Caudill
jac - WDVL on Tuesday, November 04, 2003 4:56 PM said:

: OK I'm gonna scream!!! this thing is driving me mad for the last 3
: hours.

Jac,

  It looks to me like you're missing a step.  This is all theory, 
because I've never had reason to send an attachment in an automated
email, but...  I'm pretty sure all that the script will have access 
to is what is on the server (or depending on your configuration, the
local network).  I believe you'll need to upload the document via a
separate script, then point your cdosys routine at the local copy of
this attachment, after which you could use fso to delete the file or
just archive it, whichever you desire.  Here's a link to a script-only 
upload routine which uses ADO streams to make for very fast uploads:



HTH,
Stephen Caudill
http://www.mechavox.com/

 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


[wdvltalk] RE: CDOSYS email form & adding attachment

2003-11-04 Thread errow
OK I'm gonna scream!!!




>

OUCH!!! THAT Hhurt




>...

i have not investigated this further but intend to

for the moment, and anticipating problems relating to the fact that i am not
familiar with your server, i am passing this link to you, which may contain
the sought after solution

http://www.codeproject.com/info/search.asp

Nnote: you may need to perform a search for "attachments" or perhaps "else"

in the event, a solution is not found, i will cotinue plodding for such the
event, on my own time

this thing is driving me mad


 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]