title: Sending Alert emails through Grafana UI using prometheus-alertmanager
body: <p>I am trying to test sending email alerts through the grafana UI using the prometheus-alertmanager notification channel. I have added the stmp details in the config file of the alertmanager. When I try to test it says that the email has been sent but nothing really happens. When I add the same email configuration to the grafana.ini file and add the email notification channel in the UI, I am able to send the test notification.
  I am using the following helm chart to install it - > <a href="https://github.com/helm/charts/tree/master/stable/prometheus-operator" rel="nofollow noreferrer">https://github.com/helm/charts/tree/master/stable/prometheus-operator</a>
  Here is the alertmanager config file.</p>
  
  <pre><code>  config:
      global:
        resolve_timeout: 5m
        smtp_smarthost: 'email-smtp.us-east-1.amazonaws.com:587'
        smtp_from: 'redacted'
        smtp_auth_username: 'redacted'
        smtp_auth_password: 'redacted'
  
  route:
    group_by: ['job']
    group_wait: 30s
    group_interval: 5m
    repeat_interval: 12h
    receiver: 'null'
    routes:
    - match:
        alertname: DeadMansSwitch
      receiver: 'null'
  receivers:
  - name: 'null'
  </code></pre>
  
  <p>This is the grafana log. </p>
  
  <pre><code>t=2019-01-28T16:57:38+0000 lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=127.0.0.1 time_ms=0 size=29 referer=
  t=2019-01-28T16:59:07+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/alerts/test status=422 remote_addr=127.0.0.1 time_ms=36 size=82 referer="http://localhost:8000/d/6581e46e4e5c7ba40a07646395ef7b23/k8s-compute-resources-pod?refresh=10s&amp;panelId=0&amp;fullscreen&amp;edit&amp;orgId=1&amp;tab=alert"
  t=2019-01-28T16:59:56+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/alerts/test status=422 remote_addr=127.0.0.1 time_ms=37 size=82 referer="http://localhost:8000/d/a6e7d1362e1ddbb79db21d5bb40d7137/k8s-use-method-cluster?refresh=10s&amp;panelId=0&amp;fullscreen&amp;edit&amp;orgId=1&amp;tab=alert"
  t=2019-01-28T17:01:30+0000 lvl=info msg="Sending Alertmanager alert" logger=alerting.notifier.prometheus-alertmanager ruleId=0 notification=Alert
  t=2019-01-28T17:02:30+0000 lvl=info msg="Sending Alertmanager alert" logger=alerting.notifier.prometheus-alertmanager ruleId=0 notification=Alert
  t=2019-01-28T17:06:40+0000 lvl=info msg="Sending Alertmanager alert" logger=alerting.notifier.prometheus-alertmanager ruleId=0 notification=Alert
  </code></pre>
  
  <p>What am I doing wrong here ?</p>