Giter VIP home page Giter VIP logo

Comments (20)

albertsun avatar albertsun commented on May 18, 2024

What have you tried so far?

What's shown in the .env.example file works for me.

Some providers may have authentication of "login" instead of "plain".

from huginn.

DaneWeber avatar DaneWeber commented on May 18, 2024

My .env is here: https://gist.github.com/Fluffums/7675427

It's set up for Gmail. I'd love to just get Gmail working.

One thing I noticed when posting my .env is that it has "" instead of my SQL root password.

Here is what I believe is the relevant section:
SMTP_DOMAIN=gmail.com
SMTP_USER_NAME=[email protected]
SMTP_PASSWORD=abc123
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_AUTHENTICATION=plain
SMTP_ENABLE_STARTTLS_AUTO=true

from huginn.

albertsun avatar albertsun commented on May 18, 2024

Hm. That looks right to me.

Can you see what's in the log when it tries to send emails? Do other things work?

from huginn.

DaneWeber avatar DaneWeber commented on May 18, 2024

Is there some additional log somewhere? The log via the UI in the browser says it's sending me email all the time.

from huginn.

cantino avatar cantino commented on May 18, 2024

Yes, take a look at the Rails log, either as it prints in the console or
via the files log/development.log and log/delayed_job.log

On Wednesday, November 27, 2013, Fluffums wrote:

Is there some additional log somewhere? The log via the UI in the browser
says it's sending me email all the time.


Reply to this email directly or view it on GitHubhttps://github.com//issues/108#issuecomment-29420751
.

from huginn.

cantino avatar cantino commented on May 18, 2024

Were you able to get this figured out, @Fluffums?

from huginn.

DaneWeber avatar DaneWeber commented on May 18, 2024

No. :-( Here's an excerpt from my development.log: https://gist.github.com/Fluffums/7897748

I'm going to get mailsend on the Huginn host computer to make sure it can talk to the Gmail SMTP server.

-Dane

from huginn.

DaneWeber avatar DaneWeber commented on May 18, 2024

Looks like this might be a relatively special situation. Mailsend responds with an error about my username/password combo: "535 5.7.8 Username and Password not accepted." Incredibly weird, because the exact same parameters work just fine from my Windows box, but are failing on my Linux box that hosts Huginn.

So, I've now tried using a different Gmail account as the sender with Mailsend, and it works from the Linux box.

from huginn.

DaneWeber avatar DaneWeber commented on May 18, 2024

Whoops. That wasn't the end of the story. I changed the .env for Huginn to use the Gmail account that works from the Linux box. No good. :-(

from huginn.

cantino avatar cantino commented on May 18, 2024

Hey @Fluffums, were you able to figure this out?

from huginn.

Alex-Ikanow avatar Alex-Ikanow commented on May 18, 2024

Incidentally since I probably spent an embarrassing amount of time trying to get email working .... it might be worth nothing somewhere prominent that it is turned off by default in "development" mode (d'oh!) and silently doesn't send emails... based on his log, I assume this was the OP's issue?

from huginn.

DaneWeber avatar DaneWeber commented on May 18, 2024

Argh! Seriously? @Alex-Ikanow, how do you turn it on? What completely obvious thing have I been missing this whole time? @cantino, I was going to give it one more shot before responding to you, but no, I didn't figure this out.

from huginn.

Alex-Ikanow avatar Alex-Ikanow commented on May 18, 2024

1] Edit "config/environments/development.rb"

2] Change "config.action_mailer.perform_deliveries = false # Enable when testing!" to true

3] Try to avoid throwing anything through a window :)

from huginn.

cantino avatar cantino commented on May 18, 2024

Okay, maybe we should change that default. FWIW, it is in the Readme as of fairly recently.

from huginn.

DaneWeber avatar DaneWeber commented on May 18, 2024

I don't know that you need to change the default. For someone approaching this in the same way I did, what would be most helpful would be an additional line in the .env.example file in the email configuration section, reading something like this:

# In order to enable email sending, you must also change config.action_mailer.perform_deliveries to true in the config/environments/development.rb file.

It's working for me now. So far, I haven't thrown anything through a window.

from huginn.

cantino avatar cantino commented on May 18, 2024

I will make that change now, thanks!

from huginn.

vivekraj2007 avatar vivekraj2007 commented on May 18, 2024

I am unable to get emails in localhost, I added email address as receipnts in morningdigest agent, and I run the scheduler by following command in new terminal

bundle exec rails runner bin/schedule.rb

Thanks

from huginn.

cantino avatar cantino commented on May 18, 2024

Did you change config.action_mailer.perform_deliveries to true in the config/environments/development.rb?

from huginn.

anishvarghese avatar anishvarghese commented on May 18, 2024

I have problem while using outlook client to sent mails

from huginn.

anishvarghese avatar anishvarghese commented on May 18, 2024

Unrecognized authentication type [BN6PR14CA0038.namprd14.prod.outlook.com]

from huginn.

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.