0

I'm currently using Pony with my Sinatra app and it's set up to send an email via gmail whenever a user registers. It works perfectly fine, however when a friend of mine tried to register he encountered an Internal Server Error.

He was successfully added into the database, but he didn't receive any emails. I used to receive this Internal Server Error whenever Pony didn't fire correctly on my end, so I'm wondering if my gmail (the one linked in Pony to send the emails) needs to be logged in on my end 24/7 for my app to work as intended?

Thanks in advance.

Edit: Seems like adding an app password solved the issue.

dibsonme
  • 1
  • 3
  • Have a look at sendgrid or mailgun for mail sending. That should solve any issue you may have. They have free tiers for low volumes. – froderik Sep 14 '17 at 14:55

1 Answers1

0

If you run into errors like Net::SMTPAuthenticationError while using gmail for sending out emails (common for Google Apps accounts), visit your gmail settings and enable less secure apps to get the application working.

Rebel Rider
  • 165
  • 16
  • Thanks Sunny, all that is already configured and working properly. However it seems when I log out of my gmail or simply turn off the browser, Pony doesn't fire off properly. Any reason why that could be? – dibsonme Sep 05 '17 at 23:03