chirag
July 26, 2021, 9:53am
1
Infos:
Used Zammad version: 4.1.x
Used Zammad installation type: package
Operating system: Centos-7
Browser + version: Chrome
Expected behavior:
After add this command from the “Rails console” :- “Channel.create(area: ‘Email::Account’, options: { inbound: { adapter: ‘null’, options: {} }, outbound: { adapter: ‘sendmail’ } }, active: true, preferences: { editable: false }, updated_by_id: 1, created_by_id: 1)”
In zammad email channel showing blank, not showing “New” button.
After that i added one channel but still not showing anything
Actual behavior:
Steps to reproduce the behavior:
User now also posted on Github…
opened 10:21AM - 26 Jul 21 UTC
needs verification
<!--
Hi there - thanks for filing an issue. Please ensure the following things … before creating an issue - thank you! 🤓
Since november 15th we handle all requests, except real bugs, at our community board.
Full explanation: https://community.zammad.org/t/major-change-regarding-github-issues-community-board/21
Please post:
- Feature requests
- Development questions
- Technical questions
on the board -> https://community.zammad.org !
If you think you hit a bug, please continue:
- Search existing issues and the CHANGELOG.md for your issue - there might be a solution already
- Make sure to use the latest version of Zammad if possible
- Add the `log/production.log` file from your system. Attention: Make sure no confidential data is in it!
- Please write the issue in english
- Don't remove the template - otherwise we will close the issue without further comments
- Ask questions about Zammad configuration and usage at our mailinglist. See: https://zammad.org/participate
Note: We always do our best. Unfortunately, sometimes there are too many requests and we can't handle everything at once. If you want to prioritize/escalate your issue, you can do so by means of a support contract (see https://zammad.com/pricing#selfhosted).
* The upper textblock will be removed automatically when you submit your issue *
-->
### Infos:
* Used Zammad version: 4.1.x
* Installation method (source, package, ..): package
* Operating system: Centos-7
* Database + version: PSQL-10
* Elasticsearch version: 7.9.0
* Browser + version: Chrome
### Expected behavior:
*
Actuly after add outbound command via "Rails Console" (Channel.create(area: 'Email::Account', options: { outbound: { adapter: 'sendmail' } }, active: true, preferences: { editable: false }, updated_by_id: 1, created_by_id: 1) "
In email channel section "New" email account creation button is remove from the Email channel account section.
Currantly not present "New" button in email section.
### Actual behavior:
*
![Email-account](https://user-images.githubusercontent.com/87975989/126973762-5060a574-8543-49e3-bd29-dfd36440e3a6.JPG)
### Steps to reproduce the behavior:
*
Yes I'm sure this is a bug and no feature request or a general question.
chirag
July 26, 2021, 10:41am
3
He just informed you ask zammad community.
chirag
July 28, 2021, 6:43am
4
I didn’t find solution
when i create outbound email using following command
rails r “Channel.create(area: ‘Email::Account’, options: { inbound: { adapter: ‘null’, options: {} }, outbound: { adapter: ‘smtp’, options: { host: ‘10.10.8.48’, port: 25, user: ‘chirag_darji@musikaar.com’, password: ‘CDp@ssw0rd2020’ } } }, active: true, preferences: { editable: false }, updated_by_id: 1, created_by_id: 1)”
but outbound not reflecting in email section.
chirag
July 30, 2021, 10:30am
5
Resolved issue…
Solution Steps.
1)- Going to psql database in zammad
2)- SELECT * FROM channels;
if showing multiple record in Email channels then you can remove remove all record expect one
After that restart zammad services and check it
1 Like
Dear future anon finding this thread because of some search magic
Please note that above “solution” is not a supported nor suggested solution.
Never manually fiddle within Zamamds databases, you’ll shoot in your own feet.
Instead, use rails console and Channel.find(<ID-of-evil-channel>).destroy
if you have to.
chirag:
when i create outbound email using following command
rails r “Channel.create(area: ‘Email::Account’, options: { inbound: { adapter: ‘null’, options: {} }, outbound: { adapter: ‘smtp’, options: { host: ‘10.10.8.48’, port: 25, user: ‘X’, password: ‘X’ } } }, active: true, preferences: { editable: false }, updated_by_id: 1, created_by_id: 1)”
The command you were looking for looks like this:
Channel.create(area: 'Email::Account', options: { inbound: { adapter: 'null', options: {} }, outbound: { adapter: 'smtp', options: {host: "XXX", user: "XXX", password: "XXX", port: "587"} } }, active: true, preferences: { editable: false }, updated_by_id: 1, created_by_id: 1)
system
Closed
December 10, 2021, 3:36pm
7
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.