Overview
Comment: | Correction: on accepte aussi la valeur 'TLS' pour la sécurité du SMTP |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
f7ca017b9060e776919fe9898caeb2ab |
User & Date: | bohwaz on 2018-07-24 12:53:19 |
Other Links: | manifest | tags |
Context
2018-07-24
| ||
22:37 | Envoi d'email perso en utilisant l'adresse expéditrice forcée ou de l'asso, fix [e7539ae31f] check-in: 0c01217ecf user: bohwaz tags: trunk, stable | |
12:53 | Correction: on accepte aussi la valeur 'TLS' pour la sécurité du SMTP check-in: f7ca017b90 user: bohwaz tags: trunk, stable | |
11:56 | Suppression du champ 'email_envoi_automatique' dans la config, à la place ajout d'une constante de configuration FORCE_EMAIL_FROM check-in: 5c520bce1a user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Utils.php from [a97b74047b] to [e112042e84].
︙ | ︙ | |||
434 435 436 437 438 439 440 | { if (SMTP_HOST) { $const = '\KD2\SMTP::' . strtoupper(SMTP_SECURITY); if (!defined($const)) { | | | 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 | { if (SMTP_HOST) { $const = '\KD2\SMTP::' . strtoupper(SMTP_SECURITY); if (!defined($const)) { throw new \LogicException('Configuration: SMTP_SECURITY n\'a pas une valeur reconnue. Valeurs acceptées: STARTTLS, TLS, SSL, NONE.'); } $secure = constant($const); $smtp = new SMTP(SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD, $secure); return $smtp->send($to, $subject, $content, $headers); } |
︙ | ︙ |