Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: how can send an email with attachment from an html form

by ph0enix (Friar)
on Nov 29, 2002 at 09:36 UTC ( [id://216455]=note: print w/replies, xml ) Need Help??


in reply to how can send an email with attachment from an html form

Email must be send directly from form? Your browser must be properly configured - main problem

<form action='mailto:address@somewhere.com' method='post' name='myfrm' + enctype='multipart/form-data'> <input type='file' name='file1'> <input type='submit' name='submit' value='send email'> </form>

I suggest to use perl script on server side.Web servers are usually properly configured, but web browsers not...

<form action='emailsend.pl' method='post' name='myfrm' enctype='multip +art/form-data'> ...

For simple sending email with attachement is usable high level module Mail::Sender

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://216455]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found