PHP mail

Asked by:
mdmogren / 11 Points
Time:
2012-05-14 7:29 pm EST
Category:
Send Email From A Page
Hits:
2,278
I'm using the standard php mail command to send email. I don't get an error but the mail never arrives.

Any ideas?

Using this format:

mail('me@example.com', 'My Subject', $message);

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

arnelc
Staff
13,324 Points
2012-05-14 8:28 pm EST
Hello mdmogren,

Based on your domain information, this is what I'm seeing when I "dig" for your mail server information:

; <<>> DiG 9.2.4 <<>> mx myconnectedcommunity.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21371
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; QUESTION SECTION:
;myconnectedcommunity.com. IN MX

;; ANSWER SECTION:
myconnectedcommunity.com. 30 IN MX 0 direct-connect.myconnectedcommunity.com.

;; AUTHORITY SECTION:
myconnectedcommunity.com. 172800 IN NS pat.ns.cloudflare.com.
myconnectedcommunity.com. 172800 IN NS dan.ns.cloudflare.com.

;; ADDITIONAL SECTION:
direct-connect.myconnectedcommunity.com. 30 IN A 205.134.224.148
dan.ns.cloudflare.com. 56177 IN A 173.245.59.108
pat.ns.cloudflare.com. 703 IN A 173.245.58.139


Basically, the most important part of all that, is that your MX server - the mail server - is not pointed our hosting servers here. If you want us to handle mail for you domain name, it would need to be routed to us. You will need to speak with your current domain registrar, and then make the appropriate changes to your DNS.

In layman's terms, control of how your mail gets processed is based on who has responsibility for the domain name. In this case, your domain name is being handled by someone OTHER than Web Hosting Hub. Therefore, when email is sent, and address on your email request needs to be resolved, the servers showing responsibility for your domain name are with Cloudflare. At this time Cloudflare does not show that email is resolving to our servers. Note that we (at Web Hosting Hub) do not necessarily need to receive your email traffic - that's up to you, but in order to help troubleshoot the issue of mail appearing in your mailbox, then the mail would need to go to our servers. You may need to consult with your current registrar and discuss where or how mail is being processed.

Domain details for myconnectedcommunity.com from http://www.enom.com
Registrar: ENOM, INC.
Status: Active
Created: 2009-01-17
Changed: 2012-03-06
Expires: 2013-01-17
Admin email: hlabbert@etsusa.com
Name server: dan.ns.cloudflare.com 173.245.59.108
Name server: pat.ns.cloudflare.com 173.245.58.139


The above data is an abbreviated WHOIS query that shows your Domain Name Servers. Please take note and make the necessary adjustments or change in request as required.

If you have any further questions, please contact technical support or leave a comment at the bottom of the page.

Regards,

Arnel C.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.