PDA

View Full Version : 3 email addresses in action page



stv
08-04-2007, 03:27 PM
domain name www.soscleaningsolutions.com my name servers are not updated so it does not work yet.

1.I had always have problems with my email, so this time I want be sure I am going to get them all, so I decided to use 3 differents email addresses. Can you tell me if this is the right way to do it, do I have to change the codes?

<?PHP
$mailto = "sosclean@niagara.com";"soscleanin@soscleaningsolu tions.com";"stevegaitan********.com";
$email = $HTTP_POST_VARS[email];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "contact web page submitted";
$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);


Thanks in advance

Stv

navaldesign
08-04-2007, 04:50 PM
Not correct. Make the first lines as follows:

$mailto = "sosclean@niagara.com, soscleanin@soscleaning solutions.com, stevegaitan********.com";
$email = $HTTP_POST_VARS[email];
if ($email == "") {
$email = "sosclean@niagara.com";

stv
08-04-2007, 05:21 PM
thanks so much you guys are awesome