Hi,
i am trying to create article in ticket based on some actions. I need internal articles from system, and external from customer, etc.
I created user Test
I create article for ticket like that.
Ticket::Article.create(
ticket_id: ticket_id,
type_id: Ticket::Article::Type.find_by(name: 'note').id,
sender_id: Ticket::Article::Sender.find_by(name: 'Customer').id,
from: "Test <test@test.com>",
body: "why it doesnt work...",
content_type: 'text/html',
internal: false,
)
as you can see FROM is empty and i don’t know how to set it properly.
Also it would be nice to know how to send online notification to owner(agent) of the ticket when an internal article is sent