-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample of working email configuration #108
Comments
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". |
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: |
Hm. That looks right to me. Can you see what's in the log when it tries to send emails? Do other things work? |
Is there some additional log somewhere? The log via the UI in the browser says it's sending me email all the time. |
Yes, take a look at the Rails log, either as it prints in the console or On Wednesday, November 27, 2013, Fluffums wrote:
|
Were you able to get this figured out, @Fluffums? |
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 |
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. |
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. :-( |
Hey @Fluffums, were you able to figure this out? |
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? |
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. |
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 :) |
Okay, maybe we should change that default. FWIW, it is in the Readme as of fairly recently. |
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:
It's working for me now. So far, I haven't thrown anything through a window. |
I will make that change now, thanks! |
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 |
Did you change config.action_mailer.perform_deliveries to true in the config/environments/development.rb? |
I have problem while using outlook client to sent mails |
Unrecognized authentication type [BN6PR14CA0038.namprd14.prod.outlook.com] |
I didn't expect to spend so much time trying to get SMTP working. Would someone be so kind as to share their .env that works?
I'd love to see a GMail example and a local/ISP example. If you don't want to share your personal info, just replace the specific address and password as if it is for john.doe@gmail.com or john.doe@example.com with a password of "abc123".
I may just have a specific issue with my local setup, but I've made some telnet tests that seem to indicate that I can talk to the SMTP servers I'm specifying in my .env.
The text was updated successfully, but these errors were encountered: