The logic in your code is flawed. Take this pseudo code
loop( monday through sunday as $dayofweek )
{
$days = $dayofweek;
}
In the code, I'm looping through the days of the week, and creating a variable called $days in which I'm assigning it the current value in the loop.
1st Iteration: $days = Monday
2nd Iteration: $days = Tuesday
7th Iteration: $days = Sunday
Each iteration, you are assigning a new value to the same variable. By doing this, you're overwriting the previous value. Your ending value for $days after the loop is done will be the value of the last iteration of the loop, not a variable that holds every day of the week.
You would need to create an array to do that - a variable that can hold multiple values by doing this
while( something is true ... )
{
$result[] = $value;
}
The [] indicates an array.
But an easier way of doing this would be to move your mail() statement inside of your while loop, and for the to address, use $row['address'] - that's all you need in your while loop. No need to define any variables.