We help IT Professionals succeed at work.

300 points - CGI Mail Script with Attachment capabilitry needed

Fatlog
Fatlog asked
on
I need a CGI script, preferrably written in C/C++, but perl will do, for a windows server that will allow a user to enter a coule of details into a form and then select an attachment from their hard drive to send along with the mail. The user needs only the capability to send one mail attachment. Im basically looking for a simple email script that you would find on hotmail or yahoo. Ive searched everywhere to no avail. Scripts would be hugely appreciated. i will give 300 points to a good script
Comment
Watch Question

Commented:
my c++ isn't good enough.

with perl, you need to use a module called MIME::Lite

which you can get at activestate.com

if you install this, I will provide a script...or anyone here can...it is pretty easy provided you use this module.

Commented:
you go to the site and download the perl 5 ppm packages, then at your command promt you type ppm
then
install MIME::Lite

you can also type

ppm install MIME::Lite

Bob
CERTIFIED EXPERT

Commented:
Fatlog,

"... The user needs only the capability to send one mail attachment. Im basically
                     looking for a simple email script that you would find on hotmail or yahoo...."

What OS are you on?

What version of PERL are you using?

I have a script that will work for you. I have been using it for more than 1 yr now.
i have tested this script on IE and NS and the attachment can be ready by hotmail, yahoo, Eudora, Outlook & Pine.

Let me know if you would like to have the script.

Thanks,

Commented:
maneshr, it is too good to see you!
 
is it

=========attach_cv_details.html?
quoted it more than 5 times since you left!!


good old Mr. Manesh

c'mon answer some q's now! really ... your quota was at least 1000+ pts a week


CERTIFIED EXPERT

Commented:
bebonham,

"maneshr, it is too good to see you!..."

Thanks :-)

"..quoted it more than 5 times since you left!!..."

Yes. That is correct.

"..c'mon answer some q's now! really ... your quota was at least 1000+ pts a week..."

Will try my best, though i am not sure if i can really do that.
CERTIFIED EXPERT

Commented:
Fatlog,

"... The user needs only the capability to send one mail attachment. Im basically
looking for a simple email script that you would find on hotmail or yahoo...."


What version of PERL are you using?

I have a script that will work for you. I have been using it for more than 1 yr now.
i have tested this script on IE and NS and the attachment can be ready by hotmail, yahoo, Eudora, Outlook
& Pine.

Let me know if you would like to have the script.

Thanks,

Author

Commented:
maneshr

post that script and ill have a go with it. what platform does it run on?
do i need to upload the file first or does it do that also?
CERTIFIED EXPERT

Commented:
Fatlog,

"..d ill have a go with it. ..."

Before i do that i need to know the following things.

* What version of PERL are you using?
* Do you have an email server installed?
* Do you have an Mail Transfer Agent (MTA) like blat or sendmail for Windows installed on your system?
* What are the PERL modules installed on your system? Do you have CGI module installed?

"..what platform does it run on?.."

Since PERL is a platform independent language this script will work on any system that has all the proper PERL modules installed. That is the reason i would like to know the answer to the above questions.

"..do i need to upload the file first or does it do that also? ..."

Yes. You need to upload the file first. This script will NOT automatically do that for you.

The way this script works is you enter an email id where you want to send the message and attachement, type the subject and the message, upload the file and click "Send".

Let me know if this is in line with your expectations, or if you want the above flow changed.
CERTIFIED EXPERT

Commented:
Fatlog,

Did you get the solution you were looking for?

Let us know.

Author

Commented:
no

still looking. my perl skills are poor(practically non existent) so i dont know if a perl script would be of any use to me.
do you have an upload script?

is your perl script easily modifiable. would i need to change much to get it working. my site is going up on a professional web host. i presume they have the latest version of perl running and its a windows based server.

could i put your perl script up there and perhaps change only the smtp variable and a few others.
CERTIFIED EXPERT

Commented:
Fatlog,

"..do you have an upload script?

is your perl script easily modifiable. would i need to change much to get it working. my site is going
up on a professional web host. i presume they have the latest version of perl running and its a windows
based server...."

Yes. The Perl is well commented and should work on your server, provided you have Perl installed, with the CGI & SMTP modules. Can you confirm from your hosting service provider what version of Perl they have? & if they have CGI & SMTP modules installed? Also, let me know what MTA or SMTP server you are using.

This will help me give you a close to out-of-the-box solution for you.

"..could i put your perl script up there and perhaps change only the smtp variable and a few others. .."

Absolutely!! My script is meant for exactly people like yourself. I have posted it quite a few times here in EE & know of at least 10 sites using it.
CERTIFIED EXPERT

Commented:
Fatlog,

                     Did you get the solution you were looking for?

                     Let us know.
CERTIFIED EXPERT
Commented:
Fatlog,

Did you get the solution you were looking for?

What solution, if any, did you use?

Please let us know.

Thanks,

Author

Commented:
i used php instead. i gave up on the cgi version. too messy.
thanks for all your help. ive accepted one of your comments as an answer.
cheers

Explore More ContentExplore courses, solutions, and other research materials related to this topic.