html people

We may earn a small commission from affiliate links and paid advertisements. Terms

i dont see a /start
how would i delete it if it is not there? i have never heard of this happening, what email client are you using? if i could send email with outlook, i would, but i use hotmail, so can't really test it from here :)
 
i use hotmail for my normal account, but the account im sending to is horde or something.
 
but, what email program does it open? outlook, outlook express, eudora, netscape mail?
 
if your server supports php, thats all you need to do.

make a handler. usually you make the form first, but the handelr goes above it.

Code:
<?php

// this is our handler of the form from above.
// localize the vars

$to = $_POST['to'];
$from = $_POST['from'];
$subject = $_POST['subject'];
$body = $_POST['body'];

// get headers

$header    = "From: ".$from ."\n";
$header   .= "Reply-To: ".$from."\r\n";

//check to make sure it went out

$sendcheck = mail($to, $subject, stripslashes($body), $header); 

if($sendcheck)
{
echo "<p>Thank You!</p><p>Your mail has been sent.</p>";
}
else
echo "<h3>Error!</h3><p>Your email was not sent. </p>";
exit();
?>    

and here is a basic form...

Code:
<div>
<form action='<?=$PHP_SELF;?>' method='post'>
TO: <input type='text' name='to'> <br />
FROM: <input type='text' name='from'> <br />
SUBJECT: <input type='text' name='subject'><br />
BODY: <textarea name='body'></textarea><br />
</form>
</div>
 
it opens what ever you have on default in your internet options. atleast i think

thanks sol, it does support php.
 
right- clicking a mailto link will open the defualt client's browser.

the good way to do it, is to use a form like i made above for you. anytime you are in a block of text and what to be like, if you have any questions <a href-mailto""> contact us</a>
instead of linking to the a href:mailto, link to a contact.php page where the form is located.
 
Back
Top