PDA

View Full Version : mailto



ali
07-21-2005, 10:05 AM
Hi,

Anybody knows to use mailto in PHP with the following parameters:

$to, $subject, $body, $headers

and put in php code like

<?php

mailto .....

?>

Help. Thanks.

Pablo
07-21-2005, 11:01 AM
See related topic:

http://www.vodahost.com/vodatalk/showthread.php?t=933

jabird60
02-11-2006, 03:35 AM
yes i do and here is the script you need

<HTML>
<HEAD>
<TITLE>Your Registration Form Has Been Sent</TITLE>
</HEAD>
<BODY>
<H2>What you want peple to see when they click submit<H2>

<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "Put Voda Host Email Address Here ";
$mailsubj = "What you want the subject to be here";
$mailhead = "From: $email\";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>
just copy this into notpad and save it a "What you want".php

if you need any more help just post agan
correct the words in red