It is currently Thu Mar 28, 2024 10:59 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: mx record and googlemail
PostPosted: Mon Apr 11, 2011 5:39 pm 
Newbie
Newbie

Joined: Thu Apr 07, 2011 11:15 am
Posts: 7
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 02, 2011 9:33 am 
Site Admin

Joined: Fri Aug 22, 2008 10:59 am
Posts: 256
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.

_________________
Best Regards,
WidWool


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011