Hi, i use docker based v4.1.3 instance and can't send emails(send test email doesn't work)
Error: An Error has occured! Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
Is this a fresh install or an upgrade?
upgrade
Version of Snipe-IT you're running
Version v4.1.3 build 48 (g74aa562)
Version of PHP you're running
What OS and web server you're running Snipe-IT on
Ubuntu 16.04
What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
Docker
MAIL_PORT_587_TCP_ADDR=webmail.mydomain.de
MAIL_PORT_587_TCP_PORT=587
[email protected]
MAIL_ENV_FROM_NAME=Mydomain inventory management
MAIL_ENV_ENCRYPTION=tcp
[email protected]
MAIL_ENV_PASSWORD=password
WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
Mail could not be sent.
Error: An Error has occured! Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
http://.../admin/settings
If a stacktrace is provided in the error, include that too.
Any errors that appear in your browser's error console.
Confirm whether the error is reproduceable on the demo: https://snipeitapp.com/demo.
it works on demo
Include any additional information you can find in app/storage/logs and your webserver's logs.
root@bb6da8ab88c0:/var/www/html/storage/logs# > laravel.log
root@bb6da8ab88c0:/var/www/html/storage/logs# tail -f laravel.log
[2017-11-15 01:19:40] production.ERROR: Swift_RfcComplianceException: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. in /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:345
Stack trace:
[2017-11-15 01:19:40] production.ERROR: Swift_RfcComplianceException: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. in /var/www/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:345
Stack trace:
Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.
Add the following to your .env:
[email protected]
MAIL_REPLYTO_NAME='Snipe-IT'
Hi!
Thank you! It was useful! Everything is working
I faced same problem and tried to apply the solution, but it is not worked.
Error from log file:
[2020-06-30 13:04:41] production.ERROR: Swift_RfcComplianceException: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. in C:\xampp\htdocs\AMS\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mime\Headers\MailboxHeader.php:355
====================================================================
Is this a fresh install or an upgrade?
Fresh install
Version of Snipe-IT you're running
Version v4.9.3 - build 4395 (master)
Version of PHP you're running
PHP 7.4.7
Version of MySQL/MariaDB you're running
10.4.13-MariaDB
What OS and web server you're running Snipe-IT on
Windows 10 64bit (Snipe-IT running on XAMPP SERVER)
What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
Manual Installation
=============================================================
My email env. file configuration is:
# --------------------------------------------
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
# --------------------------------------------
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=47d3b92b5660f7
MAIL_PASSWORD=c825dfbaf4a749
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDR=47d3b92b5660f7
MAIL_FROM_NAME='Test'
MAIL_REPLYTO_ADDR=47d3b92b5660f7
MAIL_REPLYTO_NAME='Test'
#MAIL_BACKUP_NOTIFICATION_ADDRESS='[email protected]'
=============================================================
@snipe How can I fix this mail issue?
Most helpful comment
Add the following to your .env: