more G-Labs products

Author Topic: E-Mail account program on Raspberry PI not working  (Read 1348 times)

August 22, 2015, 01:17:33 AM
Read 1348 times

KilloBite

  • *
  • Information
  • Newbie
  • Posts: 2
Hi guys, I am new to this wonderful program and loving most of it.  One thing I am having a heck of a time with is getting HG to send an E-Mail from my Raspberry PI 2.  I have gotten it to work when using a Windows 7 or Windows 10 OS but nothing when trying from the Raspberry PI running Raspbian.  I have scoured the forum looking at all the leads and though some sound promising nothing seems to help.  I know that my e-mail account works and the settings are right because I can get email in HG to work from Windows just fine.

I did notice that the E-Mail account program will not compile unter 493, apparently 493 changes some of the syntax (I updated the program on one of my loads and got it to compile with the new code but it does the same thing).

Basically I get:

"2015-08-21T16:02:21.3788750-07:00       HomeAutomation.HomeGenie.Automation    NetHelper        Message could not be sent.      Exception.StackTrace      at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x00000] in <filename unknown>:0
  at HomeGenie.Automation.Scripting.NetHelper.SendMessage (System.String from, System.String recipients, System.String subject, System.String messageText) [0x00000] in <filename unknown>:0"

I have tried multiple Raspbian reloads with and without distribution updates to no avail. I am fairly limited in my Linux knowledge so I am afraid I have exhausted my internal resources to troubleshoot any further. I would much rather use the Raspberry PI as my HG server than stand up a Windows machine just to get e-mail to send. :(

August 22, 2015, 03:40:59 PM
Reply #1

jshan

  • ***
  • Information
  • Full Member
  • Posts: 71

August 22, 2015, 06:22:13 PM
Reply #2

KilloBite

  • *
  • Information
  • Newbie
  • Posts: 2
Thanks for the link, I had run across that post in my endeavors to solve the problem but got hung up with the same error the poster got "E: Unable to locate package ca-certificates-mono", and I then tried the posted fix with no success (mozroots: command not found).  So, I explored the 'ca-certificates-mono' path more and I think I found a way to at least get it "installed":

sudo rm /etc/apt/sources.list.d/mono-xamarin*
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update

So, it did a bunch of stuff and now I can at least the install to show it's installed and the newest version, but it still does not work.  Same error as before from the HG log.

So, I looked for a bigger stick, found "sudo apt-get install mono-complete" and then was able to use the fix from the other post (mozroots).. It then worked!!!

I'm afraid to think about what all I have done to my poor OS, so now it's off to reload from scratch and do the bare minimum of all this goofing around to get the cert to work.

Thanks!

August 23, 2015, 06:06:30 AM
Reply #3

jshan

  • ***
  • Information
  • Full Member
  • Posts: 71
Glad you got it working - I know how frustrating it can be as I went through it for many days.  I tried to include all the steps I had done, but obviously I forgot the "sudo apt-get install mono-complete" which I recall having to do as well - I updated my post to include this step for others coming behind us.