davmontrose
Posts: 62
Joined: 15 Oct 06
Trust:
07 Dec 06 10:56 pm
Are you using this function for autoresponders etc?
Hey are you guys using this function when your having your opt in form, or contact us form, to link back with the information to your autoresponders, or email marketing system, which ever way you want to term it.
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "
[email protected]";
$mailsubj = "Enter Your Subject Here";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
Something similar to that is what I'm told I should put inside my body tag.
Is this somewhat correct? Cheers Davin
?>