diff --git a/.manus/db/db-query-1764345424841.json b/.manus/db/db-query-1764345424841.json new file mode 100644 index 0000000..cf42369 --- /dev/null +++ b/.manus/db/db-query-1764345424841.json @@ -0,0 +1,27 @@ +{ + "query": "SELECT * FROM emailConfig LIMIT 1;", + "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT * FROM emailConfig LIMIT 1;", + "rows": [ + { + "id": "1", + "provider": "resend", + "apiKey": "re_86E4CTUv_JLJQQQh81PvbaX6dMrshNjHt", + "fromEmail": "o.pareige@itinova.org", + "fromName": "Formation Manager Itinova", + "mode": "simulation", + "domainVerified": "0", + "active": "0", + "createdAt": "2025-11-18 07:16:34", + "updatedAt": "2025-11-28 11:49:52", + "smtpHost": "NULL", + "smtpPort": "NULL", + "smtpSecure": "tls", + "smtpUser": "NULL", + "smtpPassword": "NULL" + } + ], + "messages": [], + "stdout": "id\tprovider\tapiKey\tfromEmail\tfromName\tmode\tdomainVerified\tactive\tcreatedAt\tupdatedAt\tsmtpHost\tsmtpPort\tsmtpSecure\tsmtpUser\tsmtpPassword\n1\tresend\tre_86E4CTUv_JLJQQQh81PvbaX6dMrshNjHt\to.pareige@itinova.org\tFormation Manager Itinova\tsimulation\t0\t0\t2025-11-18 07:16:34\t2025-11-28 11:49:52\tNULL\tNULL\ttls\tNULL\tNULL\n", + "stderr": "", + "execution_time_ms": 592 +} \ No newline at end of file diff --git a/.manus/db/db-query-1764345617656.json b/.manus/db/db-query-1764345617656.json new file mode 100644 index 0000000..fea59e1 --- /dev/null +++ b/.manus/db/db-query-1764345617656.json @@ -0,0 +1,21 @@ +{ + "query": "SELECT id, mode, provider, fromName, fromEmail, smtpHost, smtpPort, smtpSecure, smtpUser FROM emailConfig LIMIT 1;", + "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT id, mode, provider, fromName, fromEmail, smtpHost, smtpPort, smtpSecure, smtpUser FROM emailConfig LIMIT 1;", + "rows": [ + { + "id": "1", + "mode": "simulation", + "provider": "resend", + "fromName": "Formation Manager Itinova", + "fromEmail": "o.pareige@itinova.org", + "smtpHost": "NULL", + "smtpPort": "NULL", + "smtpSecure": "tls", + "smtpUser": "NULL" + } + ], + "messages": [], + "stdout": "id\tmode\tprovider\tfromName\tfromEmail\tsmtpHost\tsmtpPort\tsmtpSecure\tsmtpUser\n1\tsimulation\tresend\tFormation Manager Itinova\to.pareige@itinova.org\tNULL\tNULL\ttls\tNULL\n", + "stderr": "", + "execution_time_ms": 53 +} \ No newline at end of file diff --git a/.manus/db/db-query-1764345693447.json b/.manus/db/db-query-1764345693447.json new file mode 100644 index 0000000..adb0983 --- /dev/null +++ b/.manus/db/db-query-1764345693447.json @@ -0,0 +1,9 @@ +{ + "query": "UPDATE emailConfig SET provider = 'smtp' WHERE id = 1;", + "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute UPDATE emailConfig SET provider = 'smtp' WHERE id = 1;", + "rows": [], + "messages": [], + "stdout": "", + "stderr": "", + "execution_time_ms": 53 +} \ No newline at end of file diff --git a/.manus/db/db-query-1764345842345.json b/.manus/db/db-query-1764345842345.json new file mode 100644 index 0000000..bcf42e4 --- /dev/null +++ b/.manus/db/db-query-1764345842345.json @@ -0,0 +1,58 @@ +{ + "query": "SELECT id, provider, mode, active, smtpHost, smtpPort FROM emailConfig ORDER BY id DESC;", + "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT id, provider, mode, active, smtpHost, smtpPort FROM emailConfig ORDER BY id DESC;", + "rows": [ + { + "id": "90002", + "provider": "", + "mode": "production", + "active": "1", + "smtpHost": "smtp.itinova.org", + "smtpPort": "587" + }, + { + "id": "90001", + "provider": "smtp", + "mode": "simulation", + "active": "0", + "smtpHost": "smtp.itinova.org", + "smtpPort": "587" + }, + { + "id": "60002", + "provider": "smtp", + "mode": "simulation", + "active": "0", + "smtpHost": "NULL", + "smtpPort": "NULL" + }, + { + "id": "60001", + "provider": "smtp", + "mode": "simulation", + "active": "0", + "smtpHost": "NULL", + "smtpPort": "NULL" + }, + { + "id": "30001", + "provider": "smtp", + "mode": "simulation", + "active": "0", + "smtpHost": "NULL", + "smtpPort": "NULL" + }, + { + "id": "1", + "provider": "smtp", + "mode": "simulation", + "active": "0", + "smtpHost": "NULL", + "smtpPort": "NULL" + } + ], + "messages": [], + "stdout": "id\tprovider\tmode\tactive\tsmtpHost\tsmtpPort\n90002\t\tproduction\t1\tsmtp.itinova.org\t587\n90001\tsmtp\tsimulation\t0\tsmtp.itinova.org\t587\n60002\tsmtp\tsimulation\t0\tNULL\tNULL\n60001\tsmtp\tsimulation\t0\tNULL\tNULL\n30001\tsmtp\tsimulation\t0\tNULL\tNULL\n1\tsmtp\tsimulation\t0\tNULL\tNULL\n", + "stderr": "", + "execution_time_ms": 58 +} \ No newline at end of file diff --git a/.manus/db/db-query-1764345856570.json b/.manus/db/db-query-1764345856570.json new file mode 100644 index 0000000..a6eb267 --- /dev/null +++ b/.manus/db/db-query-1764345856570.json @@ -0,0 +1,9 @@ +{ + "query": "UPDATE emailConfig SET provider = 'smtp' WHERE active = true;", + "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute UPDATE emailConfig SET provider = 'smtp' WHERE active = true;", + "rows": [], + "messages": [], + "stdout": "", + "stderr": "", + "execution_time_ms": 62 +} \ No newline at end of file diff --git a/.manus/db/db-query-1764345891283.json b/.manus/db/db-query-1764345891283.json new file mode 100644 index 0000000..44f6add --- /dev/null +++ b/.manus/db/db-query-1764345891283.json @@ -0,0 +1,27 @@ +{ + "query": "SELECT * FROM emailConfig WHERE active = true LIMIT 1;", + "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT * FROM emailConfig WHERE active = true LIMIT 1;", + "rows": [ + { + "id": "90002", + "provider": "smtp", + "apiKey": "re_86E4CTUv_JLJQQQh81PvbaX6dMrshNjHt", + "fromEmail": "o.pareige@itinova.org", + "fromName": "Formation Manager Itinova", + "mode": "production", + "domainVerified": "0", + "active": "1", + "createdAt": "2025-11-28 15:54:56", + "updatedAt": "2025-11-28 16:04:16", + "smtpHost": "smtp.itinova.org", + "smtpPort": "587", + "smtpSecure": "tls", + "smtpUser": "o.pareige@itinova.org", + "smtpPassword": "LEpetitchatestmort69-" + } + ], + "messages": [], + "stdout": "id\tprovider\tapiKey\tfromEmail\tfromName\tmode\tdomainVerified\tactive\tcreatedAt\tupdatedAt\tsmtpHost\tsmtpPort\tsmtpSecure\tsmtpUser\tsmtpPassword\n90002\tsmtp\tre_86E4CTUv_JLJQQQh81PvbaX6dMrshNjHt\to.pareige@itinova.org\tFormation Manager Itinova\tproduction\t0\t1\t2025-11-28 15:54:56\t2025-11-28 16:04:16\tsmtp.itinova.org\t587\ttls\to.pareige@itinova.org\tLEpetitchatestmort69-\n", + "stderr": "", + "execution_time_ms": 51 +} \ No newline at end of file diff --git a/client/src/pages/AdminEmailConfig.tsx b/client/src/pages/AdminEmailConfig.tsx index 703c634..16729a7 100644 --- a/client/src/pages/AdminEmailConfig.tsx +++ b/client/src/pages/AdminEmailConfig.tsx @@ -126,7 +126,9 @@ export default function AdminEmailConfig() {
{formData.mode === "simulation" ? "Les emails sont simulés et envoyés comme notifications" - : "Les emails sont envoyés via Resend"} + : formData.provider === "smtp" + ? "Les emails sont envoyés via SMTP Direct" + : "Les emails sont envoyés via Resend"}