Page 1 of 1

Web page HTML writing

PostPosted: Tue Jul 15, 2008 10:18 pm
by lilrodie
Ok this may seem like a n00b question, but I'm learning... Anyway... I want to make a form that you can submit and it will send everything that you fill in to an email address... So far I cannot quite figure it out. Can anyone help me with this, or at least point me in the right direction?


EDIT: figured out a code for the e-mail thing.... is there anyway to make the automatic e-mail thing anonymous?

Re: Web page HTML writing

PostPosted: Tue Jul 15, 2008 11:24 pm
by fashizzlepop
How do you mean anonymous? Like it doesnt show the IP it was sent from?

Re: Web page HTML writing

PostPosted: Wed Jul 16, 2008 12:14 am
by lilrodie
no like, the code i use, opens up for a (for example) Microsoft Mail program that just fill in the e-mail for you.... is there anyway to just send a e-mail instead of having to go through a e-mail program? If not, ok. But I'm just making sure

Re: Web page HTML writing

PostPosted: Wed Jul 16, 2008 6:07 am
by L0DER
Do you mean that you press submit and it automatically sends the information to you. Then you can't do it in HTML, you need PHP and a server that supports the mail(); function.
Its look like this.
Code: Select all
<?php
$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
    'Reply-To: webmaster@example.com' . "\r\n";

mail($to, $subject, $message, $headers);
?>

You can check it out http://php.net/manual/en/function.mail.php

Re: Web page HTML writing

PostPosted: Wed Jul 16, 2008 7:19 am
by thedotmaster
And most free webhosts disable the mail() function.. just so ya know..

Re: Web page HTML writing

PostPosted: Wed Jul 16, 2008 11:00 am
by lilrodie
Thanks guys it was really helpful, I appreciate it.

Re: Web page HTML writing

PostPosted: Sat Jul 19, 2008 1:18 am
by L0DER
thedotmaster wrote:And most free webhosts disable the mail() function.. just so ya know..

You're right, but there is 000webhost.com it is pretty good and has the mail(), shame the let only us, I think.

Re: Web page HTML writing

PostPosted: Sun Jul 27, 2008 6:19 pm
by thedotmaster
L0DER wrote:
thedotmaster wrote:And most free webhosts disable the mail() function.. just so ya know..

You're right, but there is 000webhost.com it is pretty good and has the mail(), shame the let only us, I think.

Good site, but you might as well pay for hosting and a domain. Worth it in the long run.