Jump to content

Client App: Email my Users New Media (new edition needs testing)


chef

Recommended Posts

@@chef Thanks for adding the custom SMTP option, but for the life of me I can't get it working. I've tried putting in the IP address and FQDN of my mail server but nothing sends. I've checked the log in the mail server and there is nothing to even indicate that EPK even tried to connect :( Both EPK and my mail server are running on the same PC.

 

Is anyone else successfully using the custom SMTP option?

  • Like 1
Link to comment
Share on other sites

Happy2Play

@@chef Thanks for adding the custom SMTP option, but for the life of me I can't get it working. I've tried putting in the IP address and FQDN of my mail server but nothing sends. I've checked the log in the mail server and there is nothing to even indicate that EPK even tried to connect :( Both EPK and my mail server are running on the same PC.

 

Is anyone else successfully using the custom SMTP option?

Are you starting the campaign before trying to send a test message?

  • Like 1
Link to comment
Share on other sites

Yeah, tried that, I also changed the schedule to 2 minutes ahead of the current time and waited but nothing was sent :(

  • Like 1
Link to comment
Share on other sites

The custom SMTP setting might be setup badly.

 

Once you create the custom SMTP setting, it should add itself to the drop down list.

 

You would then have to choose it from the list.

 

I'll take another look here to see if I messed up the code somewhere.

Link to comment
Share on other sites

Thanks @@chef I did select the my custom SMTP server in the drop list and had saved the selection.

Edited by Oxide
  • Like 1
Link to comment
Share on other sites

Thanks @@chef I did select the my custom SMTP server in the drop list and had saved the selection.

I've probably got to take a look at how it is saving to the settings XML.

 

It wasn't really tested...

 

I'll be back :)

Link to comment
Share on other sites

shorty1483

@@chef Email sending after reboot did not work with the version from yesterday. EPK starts after reboot but no email is sent unfortunately.

 

Gesendet von meinem HTC One M8 mit Tapatalk

  • Like 1
Link to comment
Share on other sites

@@chef Email sending after reboot did not work with the version from yesterday. EPK starts after reboot but no email is sent unfortunately.

 

Gesendet von meinem HTC One M8 mit Tapatalk

Okay, I will check that the timer is started properly :)

 

Edit: I just had emails fail...

 

It would seem the more images attached the higher the odds the mail will fail.

 

I will try to write a redundant mail client call, to resend if there is an error.

Edited by chef
Link to comment
Share on other sites

shorty1483

Okay, I will check that the timer is started properly :)

 

Edit: I just had emails fail...

 

It would seem the more images attached the higher the odds the mail will fail.

 

I will try to write a redundant mail client call, to resend if there is an error.

 

Wasn't at home when I wrote the post. Just rechecked and found the error. When rebooting, the app is auto started and auto logs in as requested. But the campaign timer is not started and the shown time in app is the boot up time.

  • Like 1
Link to comment
Share on other sites

@@shorty1483

 

Found the culprit and put a new release.

 

Inside the settings.xml, make sure that your emby password is saved under "EmbyCredentials" - "Password"

 

If it is not,  then please set "AutoLogin" to false, save the xml and restart the app.

 

After this you will be able to check the checkbox to auto-login again, and all will be fine.

 

 

Sorry for the hassle. 

  • Like 2
Link to comment
Share on other sites

shorty1483

When booting up PC with latest version auto start:

 

56324d89bb52d_boot.png

 

When an E-Mail is sending, most of the time I got this:

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei EPK.LoginPage.VB$StateMachine_2_ShowUserList.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
----------------------------------------
EPK
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///J:/Emby-Server/EPK/EPK.exe.
----------------------------------------
Microsoft.VisualBasic
    Assembly-Version: 10.0.0.0.
    Win32-Version: 12.0.51209.34209 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll.
----------------------------------------
System
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Core
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Runtime.Remoting
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll.
----------------------------------------
MediaBrowser.Model
    Assembly-Version: 3.0.5666.4.
    Win32-Version: 3.0.5666.4.
    CodeBase: file:///J:/Emby-Server/EPK/MediaBrowser.Model.DLL.
----------------------------------------
MediaBrowser.ApiInteraction
    Assembly-Version: 3.0.5664.41652.
    Win32-Version: 3.0.5664.41652.
    CodeBase: file:///J:/Emby-Server/EPK/MediaBrowser.ApiInteraction.DLL.
----------------------------------------
System.Configuration
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Xml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34234 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
Microsoft.GeneratedCode
    Assembly-Version: 1.0.0.0.
    Win32-Version: 4.0.30319.34234 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle Ausnahmefehler an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

I've set up to send 10 items. When I got it to work, I get an E-Mail with 10 movies and just one newest episode of one series instead of 10.

Edited by shorty1483
Link to comment
Share on other sites

Sorry newest build should fix issues.

 

I think there might be one issue with auto start, if the email app starts before emby server, it will error because there is no interface.

 

If this version doesn't sort it out then, we'll have to figure out how to start the email app after the emby server has loaded. That might take some thinking...

Edited by chef
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

I could fix it. If this is something you'd like to use. It has been a while, it was broken. I'll take a look in a bit :)

  • Like 1
Link to comment
Share on other sites

I think what I can do is take the code back to basics. Remove the auto run features, and make it do the simple task of finding new media, splitting it into types, and emailing the html to look like the server.

Edited by chef
Link to comment
Share on other sites

Uploaded something new. Basic. Make sure your password is written correctly, and that the email client you wish to use saved, you should be able to get it working.

 

I may put a bit more time into it if there is interest. :)

Edited by chef
  • Like 1
Link to comment
Share on other sites

Thanks for the update and time you have put into this @@chef :) I really appreciate your mad coding skills  :D

 

I've given it another try with your updated version but still can't get the email to send to my local SMTP server, looking in the mail server logs there is nothing showing any connection is taking place from EPK  :(

 

Other Apps on my system like Emby and PFSense send me emails no problem so I'm sure it's not a mail server issue.

 

Any ideas?

Link to comment
Share on other sites

Does the test email send something to your inbox?

 

Is your password spelled correctly in the email setup.

 

I will take another look.

Link to comment
Share on other sites

Nothing gets sent, and there is nothing in the mail logs. If the password was incorrect then it would show up in the logs. As another test I set the password to 12345 on both the email server and EPK but no go.

 

As far as I can tell the other apps use "Plain" as the Notification E-Mail auth mechanism.

 

The mail server it is set to accept SMTP traffic on ports 25, 465 & 587

Link to comment
Share on other sites

Oh I just realized it is a custom SMTP server you are using (in a sense it is not I. The list of server choices). Okay, I know where to look. Sorry I was slow on the up take...

Edited by chef
  • Like 1
Link to comment
Share on other sites

Once you add the new smtp server info, are you choosing it from the drop down list in the email configuration page?

Edited by chef
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...