|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
I have a form on my web site that visitors can complete and the results are sent to me via e-mail. I'd like to add a 'browse' field to the form so that when the visitor submits the form, the e-mail is sent with their chosen text, wordprocessor or other file (if they chose one) included as an attachment.
Can anyone help please? |
|
#2
|
|||
|
|||
|
Try Sender.pm. Get it from -> http://www.perl.com/CPAN-local/modules/by-module/Mail/Mail-Sender-0.7.04.tar.gz
Download such file and extract it, then you will find examples. |
|
#3
|
|||
|
|||
|
Thank you, I downloaded this but I'm on a virtual server that doesn't have Telnet access so I couldn't install it URL
Thanks again anyway URL |
|
#4
|
|||
|
|||
|
You might not need to install it. If you extracted Mail-Sender-0.7.04.tar.gz, you should see a file called "Sender.pm", that is the one you needed. You can simply upload this file to your server but be sure to create a Mail directory and place Sender.pm in it.
i.e. /data/vhost/actionpoint.com/lib/Mail/Sender.pm In your script, add a "use lib" line like so: use lib '/data/vhost/actionpoint.com/lib'; use Mail::Sender; You should check -> http://www.devshed.com/Talk/Forums/Forum6/HTML/000340.html and see if your server already have Mail::Sender installed or not. Anyway, you can try to use it by specifying the use Mail::Sender; line without the "use lib" line and see if it produces any error "@INC...". |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > form-email with attachment |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|