fix: add ConfigManager import, fix ContentType import
Some checks failed
BotServer CI/CD / build (push) Failing after 1m11s
Some checks failed
BotServer CI/CD / build (push) Failing after 1m11s
This commit is contained in:
parent
06aee7c9ef
commit
58f8451981
2 changed files with 3 additions and 3 deletions
|
|
@ -394,9 +394,8 @@ impl EmailService {
|
||||||
file_data: Vec<u8>,
|
file_data: Vec<u8>,
|
||||||
filename: &str,
|
filename: &str,
|
||||||
) -> Result<(), String> {
|
) -> Result<(), String> {
|
||||||
use lettre::message::{
|
use lettre::message::header::ContentType;
|
||||||
header::ContentType, Attachment, Body, Message, MultiPart, SinglePart,
|
use lettre::message::{Attachment, Body, Message, MultiPart, SinglePart};
|
||||||
};
|
|
||||||
use lettre::transport::smtp::authentication::Credentials;
|
use lettre::transport::smtp::authentication::Credentials;
|
||||||
use lettre::{SmtpTransport, Transport};
|
use lettre::{SmtpTransport, Transport};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ use serde::{Deserialize, Serialize};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
|
use crate::core::config::ConfigManager;
|
||||||
use crate::core::shared::state::AppState;
|
use crate::core::shared::state::AppState;
|
||||||
use crate::core::shared::schema::{
|
use crate::core::shared::schema::{
|
||||||
email_tracking, marketing_campaigns, marketing_recipients,
|
email_tracking, marketing_campaigns, marketing_recipients,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue