Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending emails #99

Open
GlennM opened this issue Aug 11, 2020 · 3 comments
Open

Sending emails #99

GlennM opened this issue Aug 11, 2020 · 3 comments

Comments

@GlennM
Copy link

GlennM commented Aug 11, 2020

Hi,

I'm running unit tests via PHPUnit on GitLab CI and I do get the following error:
sh: 1: /usr/sbin/sendmail: not found

In this case, I don't need any real email to be send. What would be the best way to incorporate this (e.g. combine MailHog with this Docker image)?
Any other suggestions?

Thanks

@edbizarro
Copy link
Owner

edbizarro commented Aug 11, 2020

You can setup mailhog or similar (maildev) as a service, but i don't know if this is possible on gitlab-ci, i myself never used for this purpose. If you are in Laravel you can use the LOG driver

@snim2
Copy link

snim2 commented Aug 11, 2020

+1 for the Laravel log driver, or perhaps you could mock sendmail in your unit tests?

@GlennM
Copy link
Author

GlennM commented Aug 12, 2020

Thanks for your replies.

I am familiar with Laravel, but this is a non-Laravel project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants