I read a lot of threads on here but im still confused about setting up the mx record correctly for google. I have a google mail account and they say the mx record must be set up to:
Since one can only setup one mx record on Freehostia, I took the first one. However, the following php test script does not send the email as expected although it displays: "Mail sent".
$to = "firstname.lastname@example.org";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "email@example.com";
$headers = "From:" . $from;
echo "Mail Sent.";
Whats wrong here? The script? Or the mx record or anything else? Have I still to do something special with my google account? What about setting smtp.googlemail.com in the mx record? Thanks for any help.