pub struct AgendaMailCreate {
pub body: String,
pub event_ids: Vec<i64>,
pub recipients: Vec<i64>,
pub send_copy_to_me: Option<bool>,
pub subject: String,
pub append_agenda_button: Option<bool>,
pub files: Option<Vec<i64>>,
pub extra: Map<String, Value>,
}Expand description
Legacy agenda-email request. Prefer POST /events/send with EventMailCreate.
Fields§
§body: StringHTML email body. ChurchTools appends buttons for all supplied events and any requested, available agenda and file links.
event_ids: Vec<i64>Events used to resolve participating recipients and message links. Every supplied event must exist. Events are not required to share an agenda.
recipients: Vec<i64>Selected person IDs. Only selected participants in visible service groups of the loaded events, or selected people the sender may otherwise view, receive the message. The response reports other IDs as rejected. Participants are not added automatically.
send_copy_to_me: Option<bool>Also include the currently logged-in person as a recipient, even if their ID is absent from recipients.
subject: StringEmail subject.
Append links for supplied events that have an agenda and for whose calendar the sender has “view agenda” permission.
files: Option<Vec<i64>>File IDs to list as links in the message body. Only files associated with one of the supplied events are used. These are links, not binary email attachments.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.