Sending Email to Different Address Based on Certain Criteria

the mail() function

Moderators: macek, egami, gesf

Post Reply
User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Sending Email to Different Address Based on Certain Crit

Post by egami » Fri Dec 14, 2012 8:46 am

if ($_POST['whatever'] == 'A') {
$email = "thisemail@address.com";
} elseif ($_POST['whatever'] == 'B') {
$email = "theotheremail@address.com";
} else {
$email = "defaultemail@address.com";
}


done.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest