That may be part of it...I'm a beginner, so I'm not sure if this helps.
My form is hosted on a GoDaddy shared server and I just tested this. Adding the "/r" to the mail.php file worked. I tested this with multiple email addresses; including a gmail address.