snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.76k stars 3.12k forks source link

Change Mail Server #14271

Open lvschnider opened 6 months ago

lvschnider commented 6 months ago

Debug mode

Describe the bug

I changed the mail server on my self hosted Snipe-IT but it still shows the default. Mail From Address:Snipe-IT you@example.comMail Reply-To Address:Snipe-IT you@example.com

Reproduction steps

1.Changed .env to our mailserver 2.Ran artisan clear config and cache 3.Restarted apache ...

Expected behavior

Change to our own mail server.

Screenshots

No response

Snipe-IT Version

v6.3.0 build 12490 (g9136415bb)

Operating System

Ubuntu

Web Server

Apache

PHP Version

8.1.2-1ubuntu2.14

Operating System

Mac

Browser

Chrome

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

welcome[bot] commented 6 months ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

snipe commented 6 months ago

You must be editing the wrong file. If you've cleared the config using php artisan config:clear, the new changes should be accepted.

lvschnider commented 6 months ago

You must be editing the wrong file. If you've cleared the config using php artisan config:clear, the new changes should be accepted.

I'm editing the .env file that is directly under the Snipe folder. Should I be editing a different one?

snipe commented 6 months ago

No, unless you have multiple Snipe-ITs installed, but I can’t think of any reason clearing that config cache wouldn’t update your settings

lvschnider commented 6 months ago

I do not. Is there a way to see which .env file the instance is using?

snipe commented 5 months ago

It would have to be looking at the one within the snipe-it project directory that the files you're serving are in.