PlexEmail - Email Recently Added Media

Just installed this on Win10 and love it.

Cheers eadwyn!

I’m having an issue with the web links in the email. They are formatted to use “HTTP” rather than “HTTPS” which means they fail to locate my server.

Any way I can set those links to use HTTPS please?

Cheers

@quindarious said:
I’m having an issue with the web links in the email. They are formatted to use “HTTP” rather than “HTTPS” which means they fail to locate my server.

Any way I can set those links to use HTTPS please?

Cheers

For anyone interested this was resolved by editing lines 916 and 929 in plexEmail.py and updating the http to https.

That simple :slight_smile:

Hi my weekly email has just gone sent and out of the 11 newly added Movies 4 are missing their artwork. (They appear okay plex)

What is the cause it and how can fix it?

Hi,

To all PlexEmail users running it into a QNAP NAS.

I´ve updated the instructions to install QPython2 and run PlexEmail since have been some changes Qpython2 module version available for QTS 4.3.3.

And also and important note to be followed for all users were using PlexEmail with Qpython2 in QTS 4.2.x and have upgraded to QTS 4.3.3.

The instructions are in the same thread in the QNAP NAS forum as before and is linked in the GitHub page of PlexEmail: https://github.com/jakewaldron/PlexEmail

If you have any question feel free to ask me.

I am getting this error on some of my email recipients.

Diagnostic-Code: smtp; 501 Syntax error - line too long
look like plexemail script should probably add newline chars as email normally only allows messages with a 1000 characters

email RFCs stipulate that a TEXT line length must not be more than 1000 characters long

I keep getting this error, please help me…

2017-06-30 02:57:19,020 - INFO:Test flag is set to False
2017-06-30 02:57:19,020 - INFO:Including Plex Web Link - Getting machine identifier from the DLNA DB
2017-06-30 02:57:19,020 - INFO:DLNA_DB_FILE = t:\Plex Media Server\Plug-in Support\Databases\com.plexapp.dlna.db
2017-06-30 02:57:19,036 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File “C:\plexemail\plexEmail.py”, line 927, in
cur.execute(‘SELECT machine_identifier FROM remote_servers WHERE url LIKE “http://127.0.0.1%”;’)
DatabaseError: file is encrypted or is not a database

@linkjoy123 said:
I keep getting this error, please help me…

2017-06-30 02:57:19,020 - INFO:Test flag is set to False
2017-06-30 02:57:19,020 - INFO:Including Plex Web Link - Getting machine identifier from the DLNA DB
2017-06-30 02:57:19,020 - INFO:DLNA_DB_FILE = t:\Plex Media Server\Plug-in Support\Databases\com.plexapp.dlna.db
2017-06-30 02:57:19,036 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File “C:\plexemail\plexEmail.py”, line 927, in
cur.execute(‘SELECT machine_identifier FROM remote_servers WHERE url LIKE “http://127.0.0.1%”;’)
DatabaseError: file is encrypted or is not a database

Make sure you have followed step 2 of the prerequisites.

@“Main Plex” said:
Hi my weekly email has just gone sent and out of the 11 newly added Movies 4 are missing their artwork. (They appear okay plex)

What is the cause it and how can fix it?

Hi could anyone please help with with the above
3 new movies this week only 1 has artwork in the email

I have followed all the instructions to install this and set it up. When I try to run it I see a command line window popup for half a second and that’s it. No output, no log files, nothing. I am running on Server 2012 if that makes a difference. FWIW I have PlexPy up and running with no issues. Any help would be appreciated.

@konior21 said:
I have followed all the instructions to install this and set it up. When I try to run it I see a command line window popup for half a second and that’s it. No output, no log files, nothing. I am running on Server 2012 if that makes a difference. FWIW I have PlexPy up and running with no issues. Any help would be appreciated.

Open a command prompt to that folder and then try to execute it, it will stay up longer. Don’t forget to do the argument “-t”. They will tell it to only send it out as a test to yourself.

@foebik said:

@konior21 said:
I have followed all the instructions to install this and set it up. When I try to run it I see a command line window popup for half a second and that’s it. No output, no log files, nothing. I am running on Server 2012 if that makes a difference. FWIW I have PlexPy up and running with no issues. Any help would be appreciated.

Open a command prompt to that folder and then try to execute it, it will stay up longer. Don’t forget to do the argument “-t”. They will tell it to only send it out as a test to yourself.

Ok, I figured it out. Running PlexEmail.vbs did nothing. Running PlexEmail.py gives

Traceback (most recent call last):
File “C:\PlexEmail\scripts\plexEmail.py”, line 9, in
import requests
ImportError: No module named requests

I downloaded the file requests-2.5.3.tar.gz, used WinRAR to extract it and placed it in Python27\Lib. I realized that I had one folder too many and I needed to take the contents of the Requests-2.5.3 folder and placed them directly in the Lib folder.

It’s working now, thanks for your help @foebik

@“Main Plex” said:

@“Main Plex” said:
Hi my weekly email has just gone sent and out of the 11 newly added Movies 4 are missing their artwork. (They appear okay plex)

What is the cause it and how can fix it?

Hi could anyone please help with with the above
3 new movies this week only 1 has artwork in the email

I just started using PlexEmail today and noticed that this is happening for a few items. After a bit of investigation I’ve determined that the problem isn’t with PlexEmail itself, but with imghdr, probably related to this:

https://bugs.python.org/issue16512

The issue I am having is that some of my images don’t contain JFIF so aren’t being detected as jpegs. This only seems to cause a problem with Cloudinary hosted images since there is a test applied in the code before uploading. If you want to check if you’re having the same problem, look for “uploadToCloudinary: not an image” in your logs.

Hey there.

First off thank you for your hard work on this project, even if i didn’t install it yet, i can see over screenshots and feedback that it is a great project :slight_smile:

So i am not familiar with python at all and i wanna know where i can find the installation guide for macOS , i did some search but couldn’t find anything related to :frowning:

or am i just blind :slight_smile: ?

cheers :slight_smile:

EDIT: All good i got it :slight_smile:

hi,

i need some help please :neutral:
can somebody tell me how i can find out the web_path = 'plexemail' to add to the config.conf file for my website?

thank u :smiley:

@Cyb3rGh05t said:
hi,

i need some help please :neutral:
can somebody tell me how i can find out the web_path = 'plexemail' to add to the config.conf file for my website?

thank u :smiley:

This needs to reflect the name of the site where you’ve deployed the web part of PlexEmail. For example if using Apache and the location /var/www/html/plexemail, then that would be correct for the entry web_path = ‘plexemail’.

@bertbert72 said:

@Cyb3rGh05t said:
hi,

i need some help please :neutral:
can somebody tell me how i can find out the web_path = 'plexemail' to add to the config.conf file for my website?

thank u :smiley:

This needs to reflect the name of the site where you’ve deployed the web part of PlexEmail. For example if using Apache and the location /var/www/html/plexemail, then that would be correct for the entry web_path = ‘plexemail’.

ok i got it thank u :slight_smile:

may i ask another question please?

I get this error message when i try to send emails to my shared users with an own made Launchagent:

2017-09-03 16:05:15,793 - INFO:getSharedUserEmails: adding email - 
2017-09-03 16:05:15,793 - INFO:getSharedUserEmails: adding email - leumas2211@hotmail.com
2017-09-03 16:05:15,793 - INFO:getSharedUserEmails: adding email - schmidddi87@hotmail.com
2017-09-03 16:05:15,793 - INFO:getSharedUserEmails: adding email - joulys9@yahoo.fr
2017-09-03 16:05:15,793 - INFO:getSharedUserEmails: adding email - enzomatteo1215@gmail.com
2017-09-03 16:05:15,793 - INFO:getSharedUserEmails: adding email - zoekinsch1990@yahoo.de
2017-09-03 16:05:15,793 - INFO:getSharedUserEmails: Returning shared emails
2017-09-03 16:05:21,115 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
  File "/Applications/PlexEmail/plexEmail.py", line 1840, in <module>
    success = sendMail(email)
  File "/Applications/PlexEmail/plexEmail.py", line 569, in sendMail
    server.sendmail(FROM, TO, msg.as_string())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py", line 742, in sendmail
    raise SMTPRecipientsRefused(senderrs)
SMTPRecipientsRefused: {'': (555, '5.5.2 Syntax error. b125sm2647927wma.28 - gsmtp')}

My LaunchAgent looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>plexemail</string>
  <key>ProgramArguments</key>
  <array>
       <!-- Modify these two lines if you need to to reflect your python location and PlexEmail install location -->
       <string>/usr/bin/python</string>
       <string>/Applications/PlexEmail/plexEmail.py</string>
  </array>
  <key>StartCalendarInterval</key>
    <dict>
        <key>Minute</key>
        <integer>00</integer>
        <key>Hour</key>
        <integer>12</integer>
        <key>Day</key>
        <integer>7</integer>
   </dict>
  <key>RunAtLoad</key>
  <true/>
  <key>KeepAlive</key>
  <false/>
  <key>StandardOutPath</key>
    <string>/Applications/PlexEmail/streamnet/agentlogs/plexemailOutput.log</string>
    <key>StandardErrorPath</key>
    <string>/Applications/PlexEmail/streamnet/agentlogs/plexemailError.log</string>
</dict>
</plist>

what am i doing wrong?
Did i messed up something?

Over Terminal commands everything works just fine but i wanna have it automated :slight_smile:

Cyb3rGh05t:PlexEmail Cyb3rGh05t$ python plexEmail.py -t
Web page created successfully
Successfully sent 1 email(s)
Cyb3rGh05t:PlexEmail Cyb3rGh05t$ python plexEmail.py
Web page created successfully
 is in the unsubscribe list.  Do not send an email.
Successfully sent 20 email(s)
Cyb3rGh05t:PlexEmail Cyb3rGh05t$ 

thanks again

cheers

EDIT: seems that i just get this error when an email is set in the unsubscribe list… but i am not sure about that

Can someone tell me exactly how to make this work with the Task Scheduler with windows 10 it just plainly doesn’t work.

@linkjoy123 - yes, it does. For me and to my 20+ users, every Friday at ~1145pm EST.
But before you can get task scheduler running, do you get the vbs to run from a command line as described in the first post and github readme.md files?
If not, you’ll likely never get a scheduled task working.

@linkjoy123 said:
Can someone tell me exactly how to make this work with the Task Scheduler with windows 10 it just plainly doesn’t work.

What JamminR said. Here is the VBS file I use. I just place it in the scripts folder and run scheduler on it.

File Name = plexEmail.vbs (or whatever you want)

CONTENTS:

Set WshShell = CreateObject(“WScript.Shell”)
WshShell.Run “python plexEmail.py”, 0, True

Set WshShell = Nothing