I'm on Windows using XAMPP and have Mercury Mail set up working fine for local mail. To get this working I need to use addresses such as, user@localhost

But it's a pain when I use email address validation in my scripts that require a properly formed email address, ie, with a domain extension like .com, .net, .co.uk etc on the end.

If I set up an address like user@local.dev, or even user@example.com, is there a place (ini, conf, hosts file or similar) where I can get this to 'map' to user@localhost?


Mercury "Configuration" menu option then "Alias..."

  • Not a problem... – user48838 Sep 10 '10 at 13:50
  • I am running into the same problem using Drupal 7 amd XAMPP. I added the aliases and domains for localhost and localhost.com but I am still getting a Temporary error 249 (temporary MX resolution error). Where are MX records kept in XAMPP? – John R Mar 24 '14 at 23:57
  • It does not appear that XAMPP includes any actual email nor DNS servers. If your XAMPP configuration does include an email server (like the OP), then which email server is it? It will vary based upon the email server. – user48838 Mar 31 '14 at 12:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.