GithubHelp home page GithubHelp logo

SMTP Issue about cachet HOT 13 OPEN

fiveai avatar fiveai commented on August 27, 2024
SMTP Issue

from cachet.

Comments (13)

LilTrublMakr avatar LilTrublMakr commented on August 27, 2024 1

I have the email address set up through mailgun, yes. As far as them getting approved to be sent, looking at the logs, I see no indication that they are even making it that far.

from cachet.

sedan07 avatar sedan07 commented on August 27, 2024

@athornfam2 under the directory you've installed Cachet there should be a directory called storage if you could see if the file: storage/logs/laravel.log has any useful info on the cause the error. Look for the start of stack trace and pop it on here.

from cachet.

LilTrublMakr avatar LilTrublMakr commented on August 27, 2024

I am also having a problem with mail. I am able to get my settings set, but whenever I try to send a test email or add a subscriber, I get a 500 error.

Log for sending a test email: https://pastebin.com/nkk1tuZt
Log for adding a subscriber: https://pastebin.com/BqqJSb2Z

from cachet.

sedan07 avatar sedan07 commented on August 27, 2024

@LilTrublMakr just to double check, the email address(s) approved on mailgun to send emails from is the same one Cachet is trying to send as?

from cachet.

athornfam2 avatar athornfam2 commented on August 27, 2024

@athornfam2 under the directory you've installed Cachet there should be a directory called storage if you could see if the file: storage/logs/laravel.log has any useful info on the cause the error. Look for the start of stack trace and pop it on here.

https://pastebin.com/eQ5X6Up2

from cachet.

athornfam2 avatar athornfam2 commented on August 27, 2024

I have the email address set up through mailgun, yes. As far as them getting approved to be sent, looking at the logs, I see no indication that they are even making it that far.

For me, as soon as I add all the necessary information back into the Mail section on the WWW page it reverts all information back to log/testing like it doesn't even keep the data. When I manually put the information into mailgun it crashes the entire app.

from cachet.

LilTrublMakr avatar LilTrublMakr commented on August 27, 2024

Yeah, still getting nowhere. I have tried using SMTP and Mailgun, and test mode and all of them result in a 500 error when sending a test. I know that Mailgun should work because I use it in multiple other applications and it works. I think the 500 is throwing before the email can even make it to Mailgun because I am not seeing any logs in Mailgun that it is making it that far.

from cachet.

LilTrublMakr avatar LilTrublMakr commented on August 27, 2024

Ok... So the settings don't save from within Cachet... I had to change the environment variables in docker to get them to stick. Switching from "mailgun" to "smtp" worked for me. I am able to send test emails and add subscribers now.

from cachet.

athornfam2 avatar athornfam2 commented on August 27, 2024

Ok... So the settings don't save from within Cachet... I had to change the environment variables in docker to get them to stick. Switching from "mailgun" to "smtp" worked for me. I am able to send test emails and add subscribers now.

Where would you change that under a vanilla linux install? /var/www/html/cachet

from cachet.

LilTrublMakr avatar LilTrublMakr commented on August 27, 2024

Are you using Docker?

If you aren't: ls -a to see if .env is in there. If it is, use a text editor like nano to edit it with sudo nano .env.

If you are using Docker, edit your docker file or docker-compose file to change it.

from cachet.

athornfam2 avatar athornfam2 commented on August 27, 2024

Are you using Docker?

If you aren't: ls -a to see if .env is in there. If it is, use a text editor like nano to edit it with sudo nano .env.

If you are using Docker, edit your docker file or docker-compose file to change it.

So, that's where my original issue came from. When I manually change the .env file it crashes with the image in my first post.

from cachet.

LilTrublMakr avatar LilTrublMakr commented on August 27, 2024

Did you restart the container after making the edit? Maybe even make the edit with the container stopped?

from cachet.

pavog avatar pavog commented on August 27, 2024

I discussed this issue in the upstream repo at #4260 and filed a pr to fix it #4261.

from cachet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.