Comments (20)
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.
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.
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.
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.
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.
Were you able to get this figured out, @Fluffums?
from huginn.
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.
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.
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.
Hey @Fluffums, were you able to figure this out?
from huginn.
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.
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.
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.
Okay, maybe we should change that default. FWIW, it is in the Readme as of fairly recently.
from huginn.
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.
I will make that change now, thanks!
from huginn.
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.
Did you change config.action_mailer.perform_deliveries to true in the config/environments/development.rb?
from huginn.
I have problem while using outlook client to sent mails
from huginn.
Unrecognized authentication type [BN6PR14CA0038.namprd14.prod.outlook.com]
from huginn.
Related Issues (20)
- Is Huginn dead project? HOT 3
- How to use Key Value Store Agent? HOT 5
- Deployment on Heroku fails because heroku-18 stack is gone HOT 1
- Process incoming email from ImapFolderAgent (extract multiple instances from body text) HOT 1
- I have 2 cookie credentials. How to randomly select a cookie HOT 2
- Kubernetes deployment
- Multiple RAW files with dcraw don't work HOT 3
- Multiprocess Docker image creation for GHCR fails
- Help with website agent: Extract emails when Xpaths are different
- Can the Post Agent emit event only when changed? HOT 2
- Javascript Agent JSON.parse is throwing an exception, but the same string can be parsed correctly in the browser HOT 2
- Cannot retrieve data from key value store agent HOT 12
- CSV Agent serialize doesn't output proper CSV file, please provide example HOT 3
- Docker: Failed to register layer HOT 2
- Agent to detect changes in local folder HOT 1
- LocalFileAgent not detecting files
- How to set regexp flags? HOT 4
- Website agent refuses to create event if extraction is empty HOT 1
- POST Agent sending token invalid
- DataOutput Agent ... Output feed lifetime / timeout? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huginn.