0

How to configure XAMPP's Mercury to send external mails using PHP's mail() but without any external SMTP account (such as smtp.gmail.com)? I've been following this tutorial but I guess it's probably outdated, because I still get error:

Warning: mail(): SMTP server response: 553 We do not relay non-local mail, sorry

I have always been using PHPMailer, but mail() method seems much lighter.

nobody
  • 19,814
  • 17
  • 56
  • 77
van_folmert
  • 4,257
  • 10
  • 44
  • 89
  • Many things could have gone wrong, can you show what the php.ini file looks like after those changes, i.e. the part that's related to the smtp etc. – Jonast92 May 12 '14 at 14:13
  • mailToDisk and fakeMail disabled (commented), sendmail_from = postmaster@localhost, rest as default (localhost, port 25) – van_folmert May 12 '14 at 15:09

1 Answers1

0

Uncheck `Accept mail for invalid local address' in the Configuration of the Mercury SMTP SERVER

C R
  • 2,182
  • 5
  • 32
  • 41