# Fetch emails from HTTP API instead of POP or IMAP

**URL:** https://community.zammad.org/t/fetch-emails-from-http-api-instead-of-pop-or-imap/7814
**Category:** Technical assistance
**Created:** [October 3, 2021, 7:08pm UTC](https://community.zammad.org/t/fetch-emails-from-http-api-instead-of-pop-or-imap/7814 "2021-10-03T19:08:11Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ADarkDividedGem](https://community.zammad.org/user_avatar/community.zammad.org/adarkdividedgem/32/4843_2.png) [@ADarkDividedGem](https://community.zammad.org/u/ADarkDividedGem)
#### Post date: [October 3, 2021, 11:44pm UTC](https://community.zammad.org/t/fetch-emails-from-http-api-instead-of-pop-or-imap/7814/2 "2021-10-03T23:44:36Z")

</div>

After a bit more research it appears the [recommended](https://community.zammad.org/t/new-custom-channel/1592) approach to take would be to simply make use of the [Zammad API](https://docs.zammad.org/en/latest/api-intro.html) instead of creating a custom channel. I can easily make my own CRON job that pulls emails from the ZOHO API and imports them using the Zammad API.

The final problem I have is that I now run into the [“No email address found for group ‘Users’ (1)”](https://community.zammad.org/t/no-emails-sent-how-to-test-and-send-emails-from-command-line/514) error since I can’t add an email account to #channels/email which means the ‘Users’ group Email field is blank.

I have my SMTP server configured fine for outbound email notifications so could I just [hard code](https://github.com/zammad/zammad/blob/a389b8f07c8f3ae04fbebfdcf76074a404bc1401/app/models/ticket/article/adds_metadata_email.rb#L55) my email into the code preventing the error from appearing. Any idea if that change would have any knock on effects or indeed any ideas for a better solution?

---

_[View the full topic](https://community.zammad.org/t/fetch-emails-from-http-api-instead-of-pop-or-imap/7814)._
