I am using Zammad 6.3.1-1720156707.17f20fad.focal
did the syntax of Channel.create change? Our groups are all Api based, so all tickets are only created by API
and so far i created a channel using this syntax:
mychannel = Channel.create(
area: 'Email::Account',
options: {
inbound: {
adapter: 'null',
options: {}
},
outbound: {
adapter: 'smtp' ,
options: {
host: "smtp.sendgrid.net",
user: "apikey",
password: "removed",
port: 465,
ssl: true,
domain: Setting.get('fqdn'),
enable_starttls_auto: true
}
}
},
active: true,
preferences: {
editable: false
},
updated_by_id: 1,
created_by_id: 1
)
somehow it doesnt work anymore, the return on console is:
=> #<Channel:0x00007f9a3c817a80
id: nil,
group_id: nil,
area: "Email::Account",
options:
{"inbound"=>{"adapter"=>"null", "options"=>{}},
"outbound"=>{"adapter"=>"smtp", "options"=>{"host"=>"smtp.sendgrid.net", "user"=>"apikey", "password"=>"removed", "port"=>465, "ssl"=>true, "domain"=>"ticket.removed.de", "enable_starttls_auto"=>true}}},
active: true,
preferences: {"editable"=>false},
last_log_in: nil,
last_log_out: nil,
status_in: nil,
status_out: nil,
updated_by_id: 1,
created_by_id: 1,
created_at: nil,
updated_at: nil>
what am i doing wrong? its not really an “error” message for some reason too? but still if i look into the data base no channel is added to the “channels” table