using Esg.Scheduler.App.Job;
var sendmailJob = Activate<SendmailJob>();
await sendmailJob.AutomationEventPushMessage(
"Schedule_Email_Send",
FromJson<KafkaMessage>("{\"Id\":\"9e012956-325e-488c-8f83-a32543f9305d\",\"TransactionId\":\"b667a6a4-5cbc-4138-8195-8be31cedd274\",\"Data\":\"{\\"ToEmails\\":[\\"\\"],\\"ToCc\\":null,\\"ToBcc\\":null,\\"Subject\\":\\"Your Appointment is Confirmed!\\",\\"Body\\":\\"\\n \\u003Cp\\u003EHi \\u003Cstrong\\u003ELama\\u003C/strong\\u003E,\\n \\u003Cbr\\u003EThank you for booking with \\u003Cstrong\\u003EITSU NAILS BEAUTY SALON\\u003C/strong\\u003E. \\n Here are the details of your appointment:\\u0026nbsp;\\u003Cbr\\u003E\\u003Cstrong\\u003EConfirmed\\u003C/strong\\u003E\\n \\u003Cbr\\u003E------\\u003Cbr\\u003E\\n Date: \\u003Cstrong\\u003E06/05/2026\\u003C/strong\\u003E\\u003Cbr\\u003E\\n Time:\\u003Cstrong\\u003E 18:00\\u003C/strong\\u003E\\u003Cbr\\u003E\\n Location: \\u003Cstrong\\u003EITSU NAILS BEAUTY SALON, Vertmont Tower, JVC\\u003C/strong\\u003E\\u003Cbr\\u003E\\n Service: \\u003Cstrong\\u003EAcrylic/Gel refill with gelish, Gel/Classic pedicure\\u003C/strong\\u003E\\u003Cbr\\u003E\\n Employee: \\u003Cstrong\\u003ENancy ITSU, Jade ITSU\\u003C/strong\\u003E\\n \\u003Cbr\\u003E------\\u003Cbr\\u003E\\n We\\u2019re excited to have you visit us! If you have any questions, \\n please don\\u2019t hesitate to contact us \\u003Cstrong\\u003E0585906879 \\u003C/strong\\u003Efor support.\\n \\u003Cbr\\u003EWarm regards,\\u003Cbr\\u003E\\u003Cstrong\\u003EITSU NAILS BEAUTY SALON\\u003C/strong\\u003E\\u003C/p\\u003E\\n \\",\\"MailSettings\\":{\\"Host\\":\\"smtp.sendgrid.net\\",\\"Port\\":587,\\"DisplayName\\":\\"Izisalon\\",\\"MailFrom\\":\\"[email protected]\\",\\"Username\\":\\"apikey\\",\\"Password\\":\\"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\\"},\\"TwilioSetting\\":null}\",\"SendTime\":\"2026-06-05T14:24:03.451416Z\",\"JobEvent\":16}"));