#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    2
    Rep Power
    0
    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. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Try Sender.pm. Get it from -> http://www.perl.com/CPAN-local/modul...-0.7.04.tar.gz

    Download such file and extract it, then you will find examples.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    2
    Rep Power
    0
    Thank you, I downloaded this but I'm on a virtual server that doesn't have Telnet access so I couldn't install it

    Thanks again anyway

  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    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/F...ML/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...".

IMN logo majestic logo threadwatch logo seochat tools logo