View Full Version : mailto form
tamienne
08-06-2002, 03:58 PM
I have a form with an action that sends to an email address (mailto:) The body of the email message I'd like to have as a html email. I have the part where it's getting the html fine. It's the part where I receive the email..it's just plain text. Is there a way i can have it as html? My email client is outlook + browser emails like yahoo & hotmail.
Is this possible? If so what do i need to do?
Thanks
totalhosting
08-06-2002, 05:15 PM
First off, is this email just going back to you as the contents of the form that was submitted by your visitor, or are you talking about a "thank you" email that is sent to the visitor who submitted the form?
If it's just to you, what are you using the email for? Do you really NEED the form contents sent back to you as formatted HTML? Seems a bit drastic.
Just curious.
Pete
tamienne
08-06-2002, 05:46 PM
It's sent to myself for testing purposes. I wanted something i have access to at home to test html formatted email.
totalhosting
08-06-2002, 06:06 PM
Does your form processor allow HTML?
If not, check out these http://www.hotscripts.com/Perl/Scripts_and_Programs/Form_Processors/ and see if you find one to your liking.
HTH
Pete
tamienne
08-06-2002, 07:12 PM
i'm not sure what you mean by a form processor. the action of the form is "mailto:" i have a hidden field that holds the html email content. I think the main piece i'm missing is the encryption type or something like that.
boxer_1
08-06-2002, 07:22 PM
Originally posted by tamienne
i'm not sure what you mean by a form processor. the action of the form is "mailto:" i have a hidden field that holds the html email content. I think the main piece i'm missing is the encryption type or something like that.
Enctype ex:
<form method="post" action="mailto:you@yourDomain.com" enctype="text/plain">
Note: mailto: is not as relaible or customizable as server-side form processor scripts. AOL users will have problems with mailto forms, mailto: uses the user's default email program, and there's no way to avoid the warning alert telling the user that the form is about to be submitted via email yada yada yada..., this will sometimes scare users into not submitting the form ;).
unclele
02-27-2003, 05:05 PM
A similar problem I'm having too. I receive the data from my form in a postdata.att format. I can open it in notepad but any images or zip files I request along with the form are sent to me like this:
game=D%3A%5CProgram+Files%5CMicrosoft+Games%5CAge+of+Mythology%5Csavegame%5C3v3+Cease+Fire+Strat.rec&MessageType=Anatolia&Hades=Hades&Classic+time=4%3A45&Subject=Athena&Heroic+time=10%3A45&Subject=Apollo&Mythic+time=15%3A34&Subject=Artemis&Persons+Name=CURT&Clan=MARDUKE&Submit=Submit+Form
here's my form action code:
<form action="mailto:mardukeaom@cox.net?action=--WEBBOT-SELF--" name="AOM Advancement time" method="post">
I'd too like to separate my form data from the .rec file. Any generic form data I can test this with?
unclele
02-27-2003, 05:26 PM
It works for the e-mail data looking decent with this mailto form:
<form action="mailto:mardukeaom@cox.net?action=--WEBBOT-SELF--" name="AOM Advancement time" method="post" enctype="text/plain">
I get this in e-mail:
game=D:\Program Files\Microsoft Games\Age of Mythology\savegame\3v3 Cease Fire Strat.rec
MessageType=Ghost Lake
Hades=Hades
Classic time=345
Subject=Athena
Heroic time=234
Subject=Apollo
Mythic time=177
Subject=Artemis
Persons Name=curt
Clan=marduke
Submit=Submit Form
Any hints on having the .rec file as an attachment instead of showing up as text?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.