1

I do have a problem with mailcatcher.

My php.ini:

[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
SMTP = localhost
smtp_port = 1025

mail.php:

if( mail('test@example.com', 'My Subject', 'test' 'testexample.com') ) {
    echo "Mail Sent!"; 
} else {
    echo "not working";
}

I just read a lot of articles, StackOverflow questions about this problem, but I did not find anything that would work for me.

In my other project I use composer and swiftmailer. With swiftmailer mailcatcher catches my email, but in a project without swiftmailer mailcatcher doesn't work. Maybe someone does have the same problem ?

zx485
  • 28,498
  • 28
  • 50
  • 59
Kintamasis
  • 265
  • 6
  • 27
  • The problem was that I didn't restart my Apache Server when I change php.ini file information. Problem Solve. – Kintamasis Feb 28 '16 at 19:52

0 Answers0