PDA

View Full Version : How do I make a form that sends e-mail w/ out starting the persons e-mail editor???


l3vi
01-18-2003, 08:09 PM
I want to make a form so first people enter in their name, their friends name, and then their friends e-mail. Then they click next, and there is something where they enter in their mssg to their friend. I have all of this down. (it is for a refer this site to a friend script) My problem is, when they click send, I do not want it to open their e-mail editor, because then it just makes the script not work right at all. This is how I want their friends ie-mail to appear:

Dear Name, All of my comments.

All of their comments.

But when it automatically starts their default e-mail editor, it will take away what I want it to say. How do I change this? BTW, i want to do it in HTML, not php or any of that other stuff. My server doesnt support it.Thanx a lot!:thumbsup:

cg9com
01-18-2003, 08:41 PM
as far as i know there is no way to accomplish this.
you must open the email client unless server side is used.
example: my signature

l3vi
01-18-2003, 08:57 PM
Okay:( Thanx. I guess Im gonna have to go and learn all of that now. :(

cg9com
01-18-2003, 09:07 PM
actually its not to hard, PHP has a mail() function designed for such things :)
this is off the top of my head, but im pretty sure its right.

<?php
mail('mailreciever@email.com', 'subject' , "message\nnewline.");
?>

zoobie
01-18-2003, 11:30 PM
No need for all that...If your host doesn't support php/asp/cgi just use www.bravenet.com 's remotely hosted form which does all that free. :D

cg9com
01-19-2003, 08:43 AM
good point, i forgot about that.
you wont be able to use it though without an ugly banner no doubt.

l3vi
01-19-2003, 06:40 PM
Yeah, I just got a server that supports it, and im learning php now. I dont want an ugly banner. Thanx 4 the hlp! Saved me time of trying to do it in HTML. :)