pub async fn send_msg_sync(
context: &Context,
chat_id: ChatId,
msg: &mut Message,
) -> Result<MsgId>
Expand description
Tries to send a message synchronously.
Creates jobs in the smtp
table, then drectly opens an SMTP connection and sends the
message. If this fails, the jobs remain in the database for later sending.