codeception-email-mailhog icon indicating copy to clipboard operation
codeception-email-mailhog copied to clipboard

Feed mailhog URL from environment variable?

Open huglester opened this issue 9 years ago • 2 comments

Hello,

is there a way to set:

url: 'http://mailhog.dev'

from (for example) $MAILHOG variable ?

Thank you

huglester avatar Feb 03 '16 20:02 huglester

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

ericmartel avatar Feb 03 '16 21:02 ericmartel

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%'

halabooda avatar Apr 29 '19 08:04 halabooda