cmp1 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to find and use some code to use sendmail, in a webform and cgi to attache a file to an e-mail and send it. It is to run on a secure web site. I am not a programmer and have been trying to teach myself a crash course of Perl in like 4 days.
We have a Red Hat Linux running RH 7.2 and Apache 1.3 with a application using Tomcat. Send mail is also on and running on this machine. The one application running on the secure web takes an attachment already but converts it or runs it through a process for HIPPA. ( we process medical insurance claims) But we can not use this for just sending files / having people upload a file, so need to find something else to take care of all other files. The e-mail program from CPAN would be great.
My project is to have a means for people to upload a file to the server. It does not have to be by e-mail but being able to do it as an e-mail with an attachement would be the best way to go. SO this is what I am trying to do. I have been searching the net for code and also at CPAN. The biggest problem is I seem to see the solution, but it is in parts and peices and I am having troubles trying to put it all together into one cgi and html form. I have included a solution I want to use from CPAN. What I am looking for is a complete section of code to do the job and tell me to save it as file name "whaterver.cgi" and copy into my cgi-bin and then the other complete line of code that is the html form and to put that "html-form.html" into my apache/htmdocs.
I have purchased my Perl for Dummies book & Perl, CGI and Java Script book to try to read up on and to teach myself Perl. I am not having very good luck. I have been working on this for about 4 days. Again this just has to be simple, generate an e-mail and attach a file of any size such as word doc, *.XLS, *.PDF or what ever.
I wish I was skilled enough right now to pull out all the parts needed from the source below to make my cgi code that I need and then the simple htlm form that calls the cgi. I have lost the forest in the trees.
I am sorry for being so new and green and asking this question.
Sincerely,
Chad c-paul@netexpress.net
I tried to attach the code but it made the post look like junk. The code at CPAN that I want to use is called
NAME Mail::Sender - module for sending mails with attachments through an SMTP server
Version 0.8.10
http://search.cpan.org/~jenda/Mail-Sender-0.8.10/Sender.pm
20041011 Edit by ysth: add p tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sending mail with attachments
by cmp1 (Initiate) on Oct 11, 2004 at 16:22 UTC | |
by hsinclai (Deacon) on Oct 11, 2004 at 16:40 UTC | |
|
Re: sending mail with attachments
by Tii (Monk) on Oct 12, 2004 at 02:23 UTC | |
|
Re: sending mail with attachments
by gellyfish (Monsignor) on Oct 12, 2004 at 09:51 UTC |