Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

site-based e-mail forms

Apr 11, 2008 3:00PM PDT

I'm trying to make an e-mail form that is embedded into a page, but am having trouble with the coding.

It appears fine on the page in question, but when the user clicks the "submit" button, the code opens the user's mail program and converts the information into an unsent e-mail.

I'd like to be able to change the code so that the current appearance is preserved, but that when the "Submit" button is pressed, the information automatically sends as a file instead of triggering the user's mail program.

The website is as follows:
http://www.geocities.com/lunarisweyr/submit.html

Thank you in advance if you are able to help me out =]

Discussion is locked

- Collapse -
See that line?
Apr 11, 2008 10:15PM PDT

<form method="post" enctype="text/plain" action='mailto:lunarisweyr@yahoo.com'>

Did you explore the limitations of that mailto action?

And just so you know, I will not discuss that limitation here. It's out there for you to explore.
Bob

- Collapse -
About the mailto tag
Apr 12, 2008 4:32AM PDT

I've looked at the possible coding for the mailto line, but what I'm trying to do is get the code to automatically send the e-mail.

I've come across some information that states that the only thing a mailto tag can do is open the user's email client and store the form as an unsent e-mail, which makes the users who have site-based e-mails screwed over.

I haven't seen anything in my research indicating that it is possible to have a form send automatically, so I decided to post here and see if anybody knew anything different, or if somehow the code had been updated. Are you suggesting that you know of a possible solution to my problem?

- Collapse -
In a nutshell.
Apr 12, 2008 4:41AM PDT

You won't be using mailto to accomplish what you are asking. Remember I won't go over this old discussion again. Not that I'm being unfriendly but it's dead Jim.
Bob

- Collapse -
Sorry...
Apr 12, 2008 12:40PM PDT

I'll look at other coding then. That's all I want to know.

And I don't really read threads here, so I didn't know that this issue had come up before *shrug* I only come here when I need help that I can't find solutions to after conducting my own research. Since I haven't been following threads, I didn't know that this issue had already been discussed... sorry for taking up your time.

- Collapse -
Maybe not here but look at the mailto
Apr 12, 2008 12:44PM PDT

Documentation and your (dead end) research. I was only trying to share it's a dead end. I can't count how many want to discuss why it doesn't work. How else to tell a member it's a dead end?

- Collapse -
About the mailto
Apr 16, 2008 2:01PM PDT

No, I appreciate somebody telling me that I can't use HTML. I will be able to work with Javascript instead *shrug* It was just "Did you explore the limitations of that mailto action?" that made me think that I might have missed a tag somewhere in my research, which would have been at least somewhat disappointing. I just needed to know if I HAD missed something, or if I would have to use another language. And I can work with Java; it's fine.

- Collapse -
The best solution ...
Apr 17, 2008 12:22AM PDT

is to use some server-side php-script.

Kees