HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
HTML Email Form; Image Attach
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Tools
View previous topic :: View next topic  
Author Message
jc11539



Joined: 03 Apr 2005
Posts: 4

PostPosted: Sun Apr 03, 2005 11:27 am     HTML Email Form; Image Attach Reply with quote

I have found a HTML mailform:

Code:
<form action="http://drizzt2.inn.no/servlets/MailSkjema" method="POST"><input type=hidden name="recipient" value="EMAIL OF RECIEVER"><input type=hidden name=subject value="SUBJECT"><input type=hidden name=success value="URL OF SUCCESS PAGE">Your Name:<br><input type=text name=Name><br>E-mail:<br><input type=text name=E-mail>Comments:<br><textarea name=Comments></textarea><br><input type=submit value="Send"></form>


I would like to know if there is a way to add a file selector to this so you would be able to select a file and it would go into the users inbox as an attachment. Is there a way to do this?
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Sun Apr 03, 2005 2:28 pm     Reply with quote

Does the script support attachments?

It's easy to add the file input box, but the script needs to support the sending of attachments.

Jack's Formmail PHP supports attachments.
http://www.dtheatre.com/scripts/formmail

or here is a sample script
http://www.webdeveloper.com/forum/showthread.php?s=ad0f3c07eb87b6a875d31931cfca5400&p=344578#post344578
jc11539



Joined: 03 Apr 2005
Posts: 4

PostPosted: Sun Apr 03, 2005 3:26 pm     Reply with quote

Thank-you, that helped a whole lot!
jc11539



Joined: 03 Apr 2005
Posts: 4

PostPosted: Sun Apr 03, 2005 4:46 pm     Reply with quote

except, it didn't work...I want it to attach the email and all it does is show me the location that the file was in...I would like to have it attached to the message, can someone give me an attachment HTML code to add to the sode I have already posted above? So I can still use all the features in the code I have above...Thanx
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Sun Apr 03, 2005 6:05 pm     Reply with quote

We don't know how or where you got that code.
It could be a completely different scripting language and so it is hard to give you direct solutions.
jc11539



Joined: 03 Apr 2005
Posts: 4

PostPosted: Mon Apr 04, 2005 1:04 pm     Reply with quote

then can you get me an HTML code that works, is free, and isn't PHP, and let's the user send pictures that send as attachments to a certain email address...?
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Mon Apr 04, 2005 1:27 pm     Reply with quote

http://commondrops.com/mail.htm

Haven't tried it though.
raphaelp



Joined: 21 Apr 2005
Posts: 48

PostPosted: Fri Apr 22, 2005 11:39 am     Reply with quote

Code:
<form action="http://drizzt2.inn.no/servlets/MailSkjema" method="POST">


will never send an attachment, no matter what kind of tool you have running behind it...

Code:
<form action="http://drizzt2.inn.no/servlets/MailSkjema" method="POST" enctype="multipart/form-data">


That one will Wink
hydes



Joined: 17 Jun 2005
Posts: 1

PostPosted: Fri Jun 17, 2005 8:41 am     HI Reply with quote

I want to do exactly thew same thing, does anybody know how?? I want users to attach a document to a form on my website and then click send and have it in my inbox, this MUST be possible??
raphaelp



Joined: 21 Apr 2005
Posts: 48

PostPosted: Fri Jun 17, 2005 10:52 am     Reply with quote

Hi Simon,

It's possible, but not that easy Wink My service (Whiz-Mail) makes it very easy, but if you want to do the programming by yourself, then I can assure you there is not a simple way to attach a file to an e-mail message, since the file needs to get encoded (base64-encoding, to be precise) and get embeded into a boundary in the e-mail. Both, the base64-encoded version of the uploaded file, plus the boudaries must be created by the coder. Anyways, to make a long story short:

If you have a form with file submissions, you yourself (or one of my support staff can help you) can make it work through my service. There are also other services that provide so-called "remotely hosted form processing", the most extensive list I have found so-far is at:

http://cgi.resourceindex.com/Remotely_Hosted/Form_Processing

HTH
RoyGbiV



Joined: 01 Aug 2007
Posts: 1

PostPosted: Wed Aug 01, 2007 10:02 am     Reply with quote

I would like to learn how to attach a file to an email from a form like jc11539, but I would like to use PHP and would like to know more about how this could be done.

raphaelp you spoke of this, any way you could lend hand?

anything to help would be great!

thanks in advance!
subintraj



Joined: 18 Nov 2007
Posts: 6

PostPosted: Mon Nov 19, 2007 12:28 am     Re: HTML Email Form; Image Attach Reply with quote

This is really good,a simple and elegant one. But when we click the submit button to where does this data goes? Where are we specifying the email address of the reciever.


jc11539 wrote:
I have found a HTML mailform:

Code:
<form action="http://drizzt2.inn.no/servlets/MailSkjema" method="POST"><input type=hidden name="recipient" value="EMAIL OF RECIEVER"><input type=hidden name=subject value="SUBJECT"><input type=hidden name=success value="URL OF SUCCESS PAGE">Your Name:<br><input type=text name=Name><br>E-mail:<br><input type=text name=E-mail>Comments:<br><textarea name=Comments></textarea><br><input type=submit value="Send"></form>


I would like to know if there is a way to add a file selector to this so you would be able to select a file and it would go into the users inbox as an attachment. Is there a way to do this?
meghan



Joined: 25 Feb 2008
Posts: 2

PostPosted: Mon Feb 25, 2008 5:51 pm     attach an email to a html form. Reply with quote

Has anyone figured out how to open your inbox via a form page and attach an email to the form submission.

thanks
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8431
Location: Castle Pines North, CO USA

PostPosted: Tue Feb 26, 2008 9:05 am     Reply with quote



Form Submission can be found in the HTML Form Zone.

_________________
Corey
Hosting Solutions | Mile High Merchant Accounts | Expression Web Blog
meghan



Joined: 25 Feb 2008
Posts: 2

PostPosted: Wed Feb 27, 2008 6:30 am     Reply with quote

Thanks. I am able to have the form email me, however I want the user to be able to attached an another email to the form that is being submitted. So bascily, they would click on the button on the form and it would then pop up the users inbox which they would then be able to find an email and attach it to the form.
Is this possible?
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Tools All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial