Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by ph0enix (Friar)
on Nov 29, 2002 at 09:36 UTC ( #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
Node Status?
node history
Node Type: note [id://216455]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2020-06-03 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (27 votes). Check out past polls.

    Notices?