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

SMTP Notification is broken #1343

Open
sapiderman opened this issue Jan 24, 2025 · 0 comments
Open

SMTP Notification is broken #1343

sapiderman opened this issue Jan 24, 2025 · 0 comments

Comments

@sapiderman
Copy link
Contributor

sapiderman commented Jan 24, 2025

Describe the bug

Notification using SMTP fails to send

To Reproduce
Steps to reproduce the behavior:

  1. Setup an SMTP notificaiton channel, using config.yaml:
probes:  

  - id: 'http-1'
    name: 'status-401-test'
    requests:
      - url: https://httpbin.org/status/401
        method: PATCH
    alerts:
      - assertion: response.status < 200 or response.status > 308
        message: HTTP Status is not 200
      - assertion: response.time > 2000
        message: Too sloow
        
notifications:
  - id: smtp-maitrap
    type: smtp
    data:
      recipients: ['[email protected]']
      hostname: smtp.mailtrap.io
      port: 2525
      username: 'user'
      password: 'password'
  1. To start type: 'npm start -- -c config.yaml'
  2. Check smtp inbox for notifications

Expected behavior
Expect notifications from SMTP channel to be received.

Screenshots

Image

Desktop (please complete the following information):

  • OS: Ubuntu 24.04 LTS on WSL, Windows 11
  • Monika Version: main branch (this test ran on commit id: ffc8e9b9619205fc4e164fe9586fb5f05e27d039)
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

1 participant