You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
$ php -r "mail('test@test.com', 'test', 'test');" 2015/12/09 16:44:17 Using in-memory storage 2015/12/09 16:44:17 [SMTP] Binding to address: 0.0.0.0:1025 2015/12/09 16:44:17 [SMTP] Error listening on socket: listen tcp 0.0.0.0:1025: bind: address already in use
Fixed this by installing ssmtp and updating /etc/php5/cli/conf.d/zzzz_custom.ini to: ;sendmail_path='/usr/local/bin/mailhog' sendmail_path='/usr/sbin/ssmtp -t'
FYI for others looking for why MailHog may not be catching Php SMTP emails.
check your ports! if you are using a Mail::factory or other class for SMTP emails, then it may default to port 25. MailHog configuration defaults to port 1025.
$ php -r "mail('test@test.com', 'test', 'test');"
2015/12/09 16:44:17 Using in-memory storage
2015/12/09 16:44:17 [SMTP] Binding to address: 0.0.0.0:1025
2015/12/09 16:44:17 [SMTP] Error listening on socket: listen tcp 0.0.0.0:1025: bind: address already in use
Fixed this by installing ssmtp and updating /etc/php5/cli/conf.d/zzzz_custom.ini to:
;sendmail_path='/usr/local/bin/mailhog'
sendmail_path='/usr/sbin/ssmtp -t'
/etc/ssmtp/ssmtp.conf:
...
mailhub=localhost:1025
...
Possibly there are better ways but this one worked for me.
My config.yml:
http://pastebin.com/jGqghAqF
The text was updated successfully, but these errors were encountered: