Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
b5354b19
Commit
b5354b19
authored
a year ago
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contact form bug fix : replace sending address by address matching username of MAILER_URL
parent
c72c87a9
master
…
6232-6227-sprint5-core
6342-territory-filter-in-flux-menus
6366-authorized-vs-authorised-and-another-detail
6367-cancel-recurring-payment
7376-reconversion-frquency-entity-text
7377-presta-reconv-frequency-default
7516-add-operateur-to-presta-exports
7694-adherent-admin-field-not-required
7892-dont-automaticaly-enable-user-at-pswd-creation
7900-cotisation-reminder-default
7915-quartier-as-list
7916-add-params-to-household-allowance-calculation
7920-alternate-comptoir-payment-types
7977-cotis-minimum-by-share
7978-hide-profils-de-cotisation-menus-in-household
develop
payment-hotfix
sprint-2-montpellier
ssa-gironde
ssagironde_prod
ssamontpellier_prod
tavTOKohinos
tavTOKohinos-initial-merge
1 merge request
!50
5680 permettre contact initial par candidat pdv
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
2 deletions
+5
-2
.env.dist
.env.dist
+2
-0
INSTALL.md
INSTALL.md
+1
-1
services.yaml
config/services.yaml
+1
-0
ContactController.php
src/Controller/ContactController.php
+1
-1
No files found.
.env.dist
View file @
b5354b19
...
...
@@ -24,6 +24,8 @@ DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=smtp://localhost:25?encryption=&auth_mode=
# To fix 550 5.7.1 Sender mismatch occuring in some cases when using contact form
SENDER_MATCHING_USERNAME_OF_MAILER_URL=noreply@kohinos.fr
###< symfony/swiftmailer-bundle ###
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$
...
...
This diff is collapsed.
Click to expand it.
INSTALL.md
View file @
b5354b19
...
...
@@ -50,7 +50,7 @@ Copier le fichier .env.dist en .env et configurer :
On ajoute à DATABASE_URL : => ?serverVersion=10.3.31-MariaDB
-
APP_ENV=dev et APP_DEBUG=1
-
l'envoi de mail (MAILER_URL)
-
l'envoi de mail (MAILER_URL
(et SENDER_MATCHING_USERNAME_OF_MAILER_URL)
)
-
la variable APP_SECRET (variable secrète que vous pouvez générer à partir de cette url : http://nux.net/secret
-
s'il s'agit d'une instance TAV, mettre la variable TAV_ENV à 1 (sinon la laisser à zéro)
...
...
This diff is collapsed.
Click to expand it.
config/services.yaml
View file @
b5354b19
...
...
@@ -13,6 +13,7 @@ parameters:
sonata.media.admin.media.class
:
'
App\Admin\MediaAdmin'
sonata.media.admin.gallery.class
:
'
App\Admin\GalleryAdmin'
tav_env
:
'
%env(TAV_ENV)%'
sender_matching_username_of_mailer_url
:
'
%env(SENDER_MATCHING_USERNAME_OF_MAILER_URL)%'
# PARAMETRES DES IMPORTS POSSIBLE POUR L'APPLICATION DE GESTION DE MONNAIE LOCALE COMPLEMENTAIRE
app.import.separator
:
'
;'
...
...
This diff is collapsed.
Click to expand it.
src/Controller/ContactController.php
View file @
b5354b19
...
...
@@ -60,7 +60,7 @@ class ContactController extends AbstractController
{
$subject
=
$this
->
em
->
getRepository
(
GlobalParameter
::
class
)
->
val
(
GlobalParameter
::
MLC_NAME_SMALL
)
.
' : Contact'
;
$mail
=
(
new
\Swift_Message
(
$subject
))
->
setFrom
(
$
from
)
->
setFrom
(
$
this
->
getParameter
(
'sender_matching_username_of_mailer_url'
)
?:
$from
)
//using $from here sometimes fails with 550 5.7.1 Sender mismatch
->
setTo
(
$this
->
em
->
getRepository
(
GlobalParameter
::
class
)
->
val
(
GlobalParameter
::
MLC_CONTACT_EMAIL
))
->
setBody
(
$this
->
templating
->
render
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment