Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address in mailbox given [] does not comply with RFC 2822 #379

Open
Zulgrib opened this issue Apr 20, 2020 · 1 comment
Open

Address in mailbox given [] does not comply with RFC 2822 #379

Zulgrib opened this issue Apr 20, 2020 · 1 comment

Comments

@Zulgrib
Copy link

Zulgrib commented Apr 20, 2020

Bonjour, j'ai cette erreur lors l'envoie de courriels mais je ne vois pas ce que j'ai raté.

[2020-04-20 10:11:29] request.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: "Address in mailbox given [] does not comply with RFC 2822, 3.6.2." at /var/www/elefan/gestion-compte/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php line 345 {"exception":"[object] (Swift_RfcComplianceException(code: 0): Address in mailbox given [] does not comply with RFC 2822, 3.6.2. at /var/www/elefan/gestion-compte/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:345)"} {"user":1}

Les paramètres suivants ont été définis dans parameters.yml

mailer_transport: smtp
mailer_host: ssl0.ovh.net
mailer_port: 465
mailer_user: [email protected]
mailer_password: motdepasseretiré
mailer_encryption: ssl
transactional_mailer_user: [email protected]
transactional_mailer_user_name: 'espace membre'
emails.base_domain: domaine.tld
emails.contact:
    from_name: [email protected]
emails.member:
    from_name: [email protected]
emails.shift:
    from_name: 'Créneaux'
    address: [email protected]
emails.formation:
    from_name: 'Formation'
    address: [email protected]
emails.admin:
    from_name: 'Admi'
    adress: [email protected]
emails.noreply:
    from_name: 'Ne pas répondre'
    address: [email protected]
emails.sendable:
    - '%emails.contact%'
    - '%emails.member%'
    - '%emails.shift%'
    - '%emails.formation%'
    - '%emails.admin%'
    - '%emails.noreply%'
shift_mailer_user: [email protected]

Que dois-je vérifier ?

Edit : Je rencontre le problème lors de l'usage du bouton «Envoyer le lien de connexion sur [email protected] ?» mais en lorsque j'envoie un message à la main en cliquant sur l'icône d'enveloppe je n'ai pas cette erreur dans le journal.

@Zulgrib
Copy link
Author

Zulgrib commented Apr 20, 2020

100% PEBKAC de ma part, il faut le paramètre address pour tous les courriels, si celui-ci est vide, transactional_mailer_user ne sera pas utilisé.

Je suggère que si address est vide, que la valeur de transactional_mailer_user soit utilisé par défaut.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant