Overview
Comment: | Add MAIL_RETURN_PATH constant |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | emails |
Files: | files | file ages | folders |
SHA3-256: |
a73e7b83e2fdb36f93dd7195214598d6 |
User & Date: | bohwaz on 2022-05-31 14:40:07 |
Other Links: | branch diff | manifest | tags |
Context
2022-05-31
| ||
15:54 | Switch away from SMTP::checkEmailIsValid now that we have something better check-in: 1befd392ae user: bohwaz tags: emails | |
14:40 | Add MAIL_RETURN_PATH constant check-in: a73e7b83e2 user: bohwaz tags: emails | |
14:25 | Delete ENABLE_AUTOMATIC_BACKUPS constant check-in: 06ab13bba8 user: bohwaz tags: emails | |
Changes
Modified src/config.dist.php from [67156cd84b] to [2a52306478].
︙ | ︙ | |||
395 396 397 398 399 400 401 402 403 404 405 406 407 408 | * STARTTLS = utilisation de STARTTLS (moyennement sécurisé) * * Défaut : STARTTLS */ //const SMTP_SECURITY = 'STARTTLS'; /** * Couleur primaire de l'interface admin par défaut * (peut être personnalisée dans la configuration) * * Défaut : #9c4f15 */ | > > > > > > > > > > > > > > > | 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 | * STARTTLS = utilisation de STARTTLS (moyennement sécurisé) * * Défaut : STARTTLS */ //const SMTP_SECURITY = 'STARTTLS'; /** * Adresse e-mail destinée à recevoir les erreurs de mail * (adresses invalides etc.) * * Si laissé NULL, alors l'adresse email de l'association sera utilisée. * En cas d'hébergement de plusieurs associations, il est conseillé * d'utiliser une adresse par association. * * Voir la documentation de configuration sur des exemples de scripts * permettant de traiter les mails reçus à cette adresse. * * Défaut : null */ //const MAIL_RETURN_PATH = 'returns@monserveur.com'; /** * Couleur primaire de l'interface admin par défaut * (peut être personnalisée dans la configuration) * * Défaut : #9c4f15 */ |
︙ | ︙ |
Modified src/include/init.php from [cc842a62bc] to [e722c676bb].
︙ | ︙ | |||
196 197 198 199 200 201 202 203 204 205 206 207 208 209 | 'USE_CRON' => false, 'ENABLE_XSENDFILE' => false, 'SMTP_HOST' => false, 'SMTP_USER' => null, 'SMTP_PASSWORD' => null, 'SMTP_PORT' => 587, 'SMTP_SECURITY' => false, 'ADMIN_URL' => WWW_URL . 'admin/', 'NTP_SERVER' => 'fr.pool.ntp.org', 'ADMIN_COLOR1' => '#9c4f15', 'ADMIN_COLOR2' => '#d98628', 'FILE_STORAGE_BACKEND' => 'SQLite', 'FILE_STORAGE_CONFIG' => null, 'FILE_STORAGE_QUOTA' => null, | > | 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | 'USE_CRON' => false, 'ENABLE_XSENDFILE' => false, 'SMTP_HOST' => false, 'SMTP_USER' => null, 'SMTP_PASSWORD' => null, 'SMTP_PORT' => 587, 'SMTP_SECURITY' => false, 'MAIL_RETURN_PATH' => null, 'ADMIN_URL' => WWW_URL . 'admin/', 'NTP_SERVER' => 'fr.pool.ntp.org', 'ADMIN_COLOR1' => '#9c4f15', 'ADMIN_COLOR2' => '#d98628', 'FILE_STORAGE_BACKEND' => 'SQLite', 'FILE_STORAGE_CONFIG' => null, 'FILE_STORAGE_QUOTA' => null, |
︙ | ︙ |
Modified src/include/lib/Garradin/Users/Emails.php from [a08bbccea2] to [41c7d19360].
︙ | ︙ | |||
421 422 423 424 425 426 427 428 429 430 431 432 433 434 | $message->setBody($content); if (null !== $content_html) { $message->addPart('text/html', $content_html); } $email_sent_via_plugin = Plugin::fireSignal('email.send.before', compact('context', 'message', 'content', 'content_html')); if ($email_sent_via_plugin) { return; } if (SMTP_HOST) { | > > > | 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 | $message->setBody($content); if (null !== $content_html) { $message->addPart('text/html', $content_html); } $message->setHeader('Return-Path', MAIL_RETURN_PATH ?? $config->email_asso); $message->setHeader('X-Auto-Response-Suppress', 'All'); // This is to avoid getting auto-replies from Exchange servers $email_sent_via_plugin = Plugin::fireSignal('email.send.before', compact('context', 'message', 'content', 'content_html')); if ($email_sent_via_plugin) { return; } if (SMTP_HOST) { |
︙ | ︙ |