| View previous topic :: View next topic |
| Author |
Message |
jc11539
Joined: 03 Apr 2005 Posts: 4
|
Posted: Sun Apr 03, 2005 11:27 am HTML Email Form; Image Attach |
|
|
|
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
|
|
jc11539
Joined: 03 Apr 2005 Posts: 4
|
Posted: Sun Apr 03, 2005 3:26 pm |
|
|
|
| Thank-you, that helped a whole lot! |
|
jc11539
Joined: 03 Apr 2005 Posts: 4
|
Posted: Sun Apr 03, 2005 4:46 pm |
|
|
|
| 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
|
Posted: Sun Apr 03, 2005 6:05 pm |
|
|
|
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
|
Posted: Mon Apr 04, 2005 1:04 pm |
|
|
|
| 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
|
|
raphaelp
Joined: 21 Apr 2005 Posts: 48
|
Posted: Fri Apr 22, 2005 11:39 am |
|
|
|
| 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  |
|
hydes
Joined: 17 Jun 2005 Posts: 1
|
Posted: Fri Jun 17, 2005 8:41 am HI |
|
|
|
| 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
|
Posted: Fri Jun 17, 2005 10:52 am |
|
|
|
Hi Simon,
It's possible, but not that easy 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
|
Posted: Wed Aug 01, 2007 10:02 am |
|
|
|
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
|
Posted: Mon Nov 19, 2007 12:28 am Re: HTML Email Form; Image Attach |
|
|
|
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
|
Posted: Mon Feb 25, 2008 5:51 pm attach an email to a html form. |
|
|
|
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: 8316 Location: Castle Pines North, CO USA
|
|
meghan
Joined: 25 Feb 2008 Posts: 2
|
Posted: Wed Feb 27, 2008 6:30 am |
|
|
|
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? |
|
|