Find the answer to your Linux question:
Results 1 to 2 of 2
I have a php script which uses php mail to send us the results from a web form. If I set the email address to receive the form as my ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    1

    local email getting lost

    I have a php script which uses php mail to send us the results from a web form. If I set the email address to receive the form as my yahoo account I receive the email fine, however if I set the email address to receive the form as an address with our domain name we never get the email.

    I have searched on google to see if I could find out what was happening and did see some references to issues where if the web server was sending an email 'locally' it didnt check the mx record. Which seems like whats happening - but I am not sure how to tell linux (centos) where the email for a 'local' email should be sent.

    Can anyone help?

    Thanks - Hugh

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    pretty sure PHP's email function is always going to query a DNS server for MX records. So if you got a DNS server, set up the MX records. It (i.e. you php script) will query the DNS servers that the machine is set to query.
    linux user # 503963

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...