FreeHostia Forums
https://forum.freehostia.com/

mx record and googlemail
https://forum.freehostia.com/viewtopic.php?f=5&t=24135
Page 1 of 1

Author:  Ulrich [ Mon Apr 11, 2011 5:39 pm ]
Post subject:  mx record and googlemail

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:

1 ASPMX.L.GOOGLE.COM
5 ALT1.ASPMX.L.GOOGLE.COM
5 ALT2.ASPMX.L.GOOGLE.COM
10 ASPMX2.GOOGLEMAIL.COM
10 ASPMX3.GOOGLEMAIL.COM

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".

Code:
<?php
$to = "someone@yahoo.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "myemail@gmail.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
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.

Author:  widwool [ Mon May 02, 2011 9:33 am ]
Post subject: 

Hello,

Please note that you will have to set either the "TO" or the "FROM" filed of your e-mail form to be an operational e-mail address created with your account with us, so the mail form could be operational.

If you have any other questions, please let us know.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/