# No emails sent. How to test and send emails from command-line?

**URL:** https://community.zammad.org/t/no-emails-sent-how-to-test-and-send-emails-from-command-line/514
**Category:** Technical assistance
**Created:** [April 6, 2018, 2:54pm UTC](https://community.zammad.org/t/no-emails-sent-how-to-test-and-send-emails-from-command-line/514 "2018-04-06T14:54:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![passboltUser1](https://community.zammad.org/user_avatar/community.zammad.org/passboltuser1/32/254_2.png) [@passboltUser1](https://community.zammad.org/u/passboltUser1)
#### Post date: [April 6, 2018, 2:54pm UTC](https://community.zammad.org/t/no-emails-sent-how-to-test-and-send-emails-from-command-line/514/1 "2018-04-06T14:54:39Z")

</div>

Hello,  
I have configured the email settings under `/#channels/email` and added an email which should send emails when a new ticket has been created, but unfortunately no emails are being sent. How can I test and send emails using commandline?

 ![email](https://community.zammad.org/uploads/default/original/1X/7e585cf856b4eb631589e50973778c3b434abd8b.png)

- Used Zammad version: `Installed: 2.4.0-1522901785.dea0f287.xenial`

- Used Zammad installation source: (source, package, …)  
`500 https://dl.packager.io/srv/deb/zammad/zammad/stable/ubuntu 16.04/main amd64 Packages`

- Operating system: ubuntu 16.04.4

- Browser + version: FF59

### Expected behavior:

- Zammad sends an email when a new ticket is created.

### Actual behavior:

- No email is sent.  
Error message:

```auto
StatusCode: 500
{"error":"No email address found for group '...'"}

```

### Steps to reproduce the behavior:

- Create a ticket.

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [April 6, 2018, 4:24pm UTC](https://community.zammad.org/t/no-emails-sent-how-to-test-and-send-emails-from-command-line/514/2 "2018-04-06T16:24:02Z")

</div>

I think you have to add an E-Mail-Account to the group you want to receice E-Mails with. If I want to create a E-Mail ticket within a group that has no E-Mail-Address/-Account, I am not able to send out an E-Mail.

It will also tell me:

 ![image](https://community.zammad.org/uploads/default/original/1X/908016a6866060ac6c4fea2a7b040c657dbf6e50.png)

Did you take a look into the ticket history? If zammad says “notification sent to xyz”, then you should get a notification to the account - if not, nothing happened. As I wrote - I am sure that this functions as desired.

---

<div class="post-metadata">

### Author: ![passboltUser1](https://community.zammad.org/user_avatar/community.zammad.org/passboltuser1/32/254_2.png) [@passboltUser1](https://community.zammad.org/u/passboltUser1)
#### Post date: [April 10, 2018, 1:50pm UTC](https://community.zammad.org/t/no-emails-sent-how-to-test-and-send-emails-from-command-line/514/3 "2018-04-10T13:50:04Z")

</div>

Thanks, works now.  
I did: Clicked on “Neu” (the green button in the first screenshot) and configured it. Then under `/#manage/groups` the just added email account was auto-selected.

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [June 9, 2018, 1:50pm UTC](https://community.zammad.org/t/no-emails-sent-how-to-test-and-send-emails-from-command-line/514/4 "2018-06-09T13:50:10Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
