ok here is what I have so far, basically it just changes the email by "random" every refresh or view.
any help on so it maybe goes in order from each email so it is equally sent to different people.
<?php
// Number of emails
$total_emails = 3;
$rand_email = rand(1,$total_emails);
// Don't edit
$window = 1;
// array of different emails
$email_1 = array("admin@domain.com");
$email_2 = array("sales@domain.com");
$email_3 = array("webmaster@domain.com");
// random emails
if($rand_email == 1) {
$show_email = $email_1[0];
} elseif($rand_email == 2) {
$show_email = $email_2[0];
} elseif($rand_email == 3) {
$show_email = $email_3[0];
}
if($window == 1) {
echo $show_email;
}
?>
<?php
mail($show_email, "Test for emailing. Thanks", "This is the first line of the message\nThis is the second line\nand this is the 3rd line.",
"From: [email]me@domain.com[/email]\r\n");
?>
by the way I have tested the current script and it works, i just need it to not pick an email by random, but go in order, I know I used the random command but im not sure if there is something else I can do so it picks and email in order.
Thanks