Click to See Complete Forum and Search --> : how to add to script


TinaBanana
10-07-2006, 12:56 PM
ive had a hard time finding a script that will email an attachment.
i found something that uploads it to the server, which is not exactly what i wanted but it works! and then it emails me to say that its been uploaded.

i need to include a few fields. name, comments etc. in one of 2 ways.

either modify the script so it emails the extra information, or somehow get the form attributes to do 2 things at once. (execute the cgi upload script and a seperate normal mailer script)

can anyone help? that or if anyone knows of a simple script that just emails comments and attachemnts.

it seems like just getting a text field to add would be easy but i dont know where to start.

here is a link to the page.
http://www.klearz.com/distinct/demo.html

here is the script
http://www.klearz.com/upload.txt

ericindc
10-10-2006, 12:21 PM
ive had a hard time finding a script that will email an attachment.
i found something that uploads it to the server, which is not exactly what i wanted but it works! and then it emails me to say that its been uploaded.

i need to include a few fields. name, comments etc. in one of 2 ways.

either modify the script so it emails the extra information, or somehow get the form attributes to do 2 things at once. (execute the cgi upload script and a seperate normal mailer script)

can anyone help? that or if anyone knows of a simple script that just emails comments and attachemnts.

it seems like just getting a text field to add would be easy but i dont know where to start.

here is a link to the page.
http://www.klearz.com/distinct/demo.html

here is the script
http://www.klearz.com/upload.txtLook into MIME::Lite (http://search.cpan.org/search?mode=module&query=MIME%3A%3ALite) for sending an email with an attachment. It's pretty straightforward.