http://www.perlmonks.org?node_id=216455


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