I have 2 mail functions, like this:
mail( $from, '', 'mail1', $headers );
mail( $from, '', 'mail2', $headers );
If I test it with my own email address in the $from, sometimes I receive mail1 first and sometimes I receive mail2 first. I want to always receive mail1 first. I tried putting a usleep in between the 2 mail functions, but it didn't work.