Where can I find CGI Perl script for sending form content + attachment to e-mail?
I am looking for CGI script which is able to
send form contents (text) plus file, to an e-mail address.
Till now I found just seperate forms for uploading files, an for form content sending to e-mail.
Have anyone some ideas?
------------------
Rob Pengelly posted this at 13:28 — 30th November 1999.
They have: 850 posts
Joined: Jul 1999
hmmm, I am now sure about sending a file but I know Form Mail (http://www.worldwidemart.com/scripts/formmail.shtml) can send email you with form input to you.
You may also want to check out http://www.cgi-resources.com. I am sure they have a script that you are looking for.
[This message has been edited by robp (edited 30 November 1999).]
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
cds posted this at 19:01 — 30th November 1999.
They have: 359 posts
Joined: Mar 1999
Might check out a variation script of formmail called bformmail. It has some other features including sending an auto responder to the person filling out the form. This might be able to do what you are wanting to do or maybe the script can be modified a little.
www.infosheet.com/iScripts.html
------------------
Dan
CDS Web Design
Dan
Recycle Video Games Network
Stupidity killed the cat, curiosity was framed!
Ray Goniea posted this at 19:15 — 30th November 1999.
They have: 11 posts
Joined: Nov 1999
Hassan,
You might try looking at the MIME::Lite module. It allows you to easily attach files to emails as attachments. I believe even if your hosting company does not have it installed you can copy the file to your domain and use it that way. Below is basically what it looks like and it will do what you want.
$msg = new MIME::Lite
From =>'[email protected]',
To =>"$fields{'email'}",
Cc =>'[email protected]',
Subject =>'New Account Info',
Type =>'TEXT',
Data =>"Here is the new account info for $fields{fname}.
Account name $fields{acct_name}.";
# Attach a part:
attach $msg Type =>'text/plain',
Path =>"$path/$fields{acct_name}/file.txt",
Filename =>'file.txt';
[This message has been edited by Ray Goniea (edited 30 November 1999).]
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.