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

Feed mailhog URL from environment variable? #3

Open
huglester opened this issue Feb 3, 2016 · 2 comments
Open

Feed mailhog URL from environment variable? #3

huglester opened this issue Feb 3, 2016 · 2 comments

Comments

@huglester
Copy link

Hello,

is there a way to set:

url: 'http://mailhog.dev'

from (for example) $MAILHOG variable ?

Thank you

@ericmartel
Copy link
Owner

This sounds like a good suggestion! I'll try to do it in the short term

@Maksclub
Copy link

Maksclub commented Apr 29, 2019

Codeception can read the environment variables.
Put in codeception.yml:

params:
    - env

And you can use it in tester yml:

- MailHog:
    url: '%MAILHOG_HOST%'
    port: '%MAILHOG_PORT%'

koehnlein pushed a commit to koehnlein/codeception-email-mailhog that referenced this issue Jan 20, 2023
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