zac1987 Posted March 4, 2011 Share Posted March 4, 2011 1 - I am using phpmailer to send an email to a people without defining the $headers = 'From:" , so the From section of the email is showing default server aekcom@xenon.sfdns.net , the email didn't go to Junk box, I am so happy. 2 - Then I apply $headers .= 'From: Pflik <admin@pflik.com>'; on the php mailer now. The email go to Junk box now. I am sad. My question : How do I change the default email server of my hosting aekcom@xenon.sfdns.net into admin@pflik.com ? If I can change it, then the email won't go to junk box anymore. Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted March 4, 2011 Share Posted March 4, 2011 That's all about MX records, and nothing about PHP. You will need to set the MX records in your domain admin to use your domain mail server as default. Process varies depending on hosting provider, You would be best contacting them if you are unsure. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted March 4, 2011 Share Posted March 4, 2011 You actually need A, MX, and SPF dns zone records that identify your host's mail server as being the mail server that corresponds to your domain name. Something similar to - A mail.your_domain.com = ip address of your host's mail server MX 20 mail.your_domain.com. SPF - see this link - http://en.wikipedia.org/wiki/Sender_Policy_Framework Quote Link to comment Share on other sites More sharing options...
zac1987 Posted March 5, 2011 Author Share Posted March 5, 2011 You actually need A, MX, and SPF dns zone records that identify your host's mail server as being the mail server that corresponds to your domain name. Something similar to - A mail.your_domain.com = ip address of your host's mail server MX 20 mail.your_domain.com. SPF - see this link - http://en.wikipedia.org/wiki/Sender_Policy_Framework Hello, professor, you know what? I spend lot of times to find out where to put the A, MX and SPF, I even google search and you-tube search where can i get that 3 things on my cpanel, but I can't find any, so I went to ask my hosting helpdesk about where to put the 3 things... Finally I get it done, it works like charm. I did blog about how and where to put the 3 things at http://ye5.blogspot.com/2011/03/avoid-phpmailer-send-email-go-to-junk.html I have other 2 questions : Question 1 : I not sure should I tick the checkbox of "All Entry (ALL):" on the Email Authentication page ? I saw this message *If you are sure you have entered all hosts (your primary mail exchanger and any other mx entries are automatically included) that will send mail for your domain, check this box to exclude all other domains.* If I tick it, will I lost some emails which outside people sent to my other domains that didn't listed on Email Authentication page? Question 2 : I saw there are 4 options on MX Entries page : * Auto Detect Configuration. * Local Mail Exchanger If the lowest number mail exchanger points to an IP on this server the server will be configured to accept mail locally and from outside the server. * Backup Mail Exchanger If a mail exchanger other than the lowest points to an IP on this server, the server will be configured to act as a backup mail exchanger. * Remote Mail Exchanger If there are no mail exchange that point to an IP on this server the server will be configured to not accept mail locally and send mail to the lowest MX record. I don't understand what is mean by "lowest points to, configured act as a backup mail exchanger". I saw the "Remote Mail Exchanger" tooltips has the sentence "not accept mail locally and send mail to the lowest MX record". Is it mean I will lost some emails that send from outside people? If yes, I worry "Auto Detect" option will suddenly use "Remote Mail Exchanger" and causing I lost some emails. So, is it better I choose option 2 which is "Local Mail Exchanger" ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.