Closed mattstarr closed 10 years ago
This may be an easier method for sending email. Check it out: http://www.raspberrypi.org/forums/viewtopic.php?f=36&t=32077
On Tue, Jul 8, 2014 at 7:57 PM, Matt Starr notifications@github.com wrote:
Script halts on email alert (and several other circumstances -- some hard to reproduce). Likely, this will be solved/resolved with surrounding suspect code with try/excepts.
— Reply to this email directly or view it on GitHub https://github.com/mattstarr/autosmoker/issues/14.
also: http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html
On Wed, Jul 9, 2014 at 4:21 PM, Sean May smaygc82@gmail.com wrote:
This may be an easier method for sending email. Check it out: http://www.raspberrypi.org/forums/viewtopic.php?f=36&t=32077
On Tue, Jul 8, 2014 at 7:57 PM, Matt Starr notifications@github.com wrote:
Script halts on email alert (and several other circumstances -- some hard to reproduce). Likely, this will be solved/resolved with surrounding suspect code with try/excepts.
— Reply to this email directly or view it on GitHub https://github.com/mattstarr/autosmoker/issues/14.
It had crossed my mind to run an smtp daemon and send from the device, but as mentioned in the above links, it is entirely possible that the email will be assumed to be spam and not get relayed. I believe the problems to be in one of two locations: 1) hanging on authentication/login/sending because of incorrect settings (easily remedied with some more debugging) or 2) something related to the events occurring during the process, not necessarily the sending of email. I intend to work on this over the next few hours (I've had other stuff come up over the past few days), but am open to exploring the use of an smtpd (I actually had already started reviewing that option, but am not 100% convinced that the script halting is due entirely to the method/use of the external smtp server -- though I will investigate that shortly).
I found the bug: It was not that the program had stopped running and that we found out on refreshing the page, but the opposite -- by demanding a page refresh before it has finished loading, it kills it. What I had assumed the bug was was incorrect, and all email issues should currently be properly handled. Closing this issue and reopening with correct title!
Script halts on email alert (and several other circumstances -- some hard to reproduce). Likely, this will be solved/resolved with surrounding suspect code with try/excepts.