PlexEmail - Email Recently Added Media

@foebik said:

_Windows 64 bit: If you need 64 bit python, this was just found and works: http://synopse.info/files/SQLite3-64.7z_

@foebik

So I gave this another swing this weekend guys.

  1. I uninstalled Python 2.7.10 and then installed 2.7.9.
  2. I downloaded and renamed the SQLite3-64.dll to SQLite3.dll as it could not find the dll to load. When I changed the file name it looks like it finally tried to load it but then I get the following error:

Any ideas on what to try next?

UPDATE on ABOVE

So after some digging on my system I figured out I guess I am running a 32bit version of Python. So in trying to fix the above error I just tried using the 32bit SQLite.dll (this is what broke my plexpy last time but I can not check as I cant reboot right now as too many users on. But will verify tomorrow) Now I get past the above error and now have this new one:

Again any help is always greatly appreciated.

@rickcab1 -
My guess; you’re running 32bit python, and put in a 64bit sqlite DLL.
Try a 32bit SQLite DLL (or 64bit python, but, I don’t see a huge need for that)

@JamminR said:
rickcab1 -
My guess; you’re running 32bit python, and put in a 64bit sqlite DLL.
Try a 32bit SQLite DLL (or 64bit python, but, I don’t see a huge need for that)

Yup so I tried it the other way and using a 32bit which broke my PLexPy for some reason last time but I know how to revert that and fix it if need be after reboot. Now just got a bit further and have some email authentication issues now.

Getting a little further now. This is what I am getting using 465 as 587 didnt work

Update
Looks like GMail didnt like me signing in from my server which is remote from where I am at normally. It blocked my sign in. FYI for those that might have remote servers. Trying to whitelist now.

So similarly I was getting the familiar error like some have gotten below:

If you get the above try going here and turn on access for less secure apps:

https://www.google.com/settings/security/lesssecureapps

I changed that and finally got my first successful email!

OK finally got this working. Having one issue with Gmail though. I’m finding that if I set my setting email_individually = False and try sending to multiple users some get it and some do not. Its like GMail knows its a attempt at spam and prevents that from happening. It works for single emails to multiple addresses but doesn’t seem to work well at all with multiple emails to multiple users. Anyone else having this issue? I guess this would be the reason for my request to be able to send via BCC as I could get my update email done with one email to multiple users without 1. GMail tripping and blocking. and 2. not letting everyone see everyone else.

@rickcab1 , yeah, I’d mentioned the same SSL problem a few posts back, just not in as much detail.
As for Gmail and mulitiple email recipients/some not getting it, Gmail likely isn’t your issue as they would give error if you did something Gmail didn’t like.
The error is likely on recipient side - if you never got an error from recipient mail server, have them check thier spam folder. Most mail providers see ‘oh, many other addresses too, this must be spam’ - your gmail box would never see that though.
There is also a mention of hotmail not liking multiple images in one email - are you attaching the images instead of hosting them (on web or cloudinary)? I did get an error bounce one time from hotmail when I tried to attach too many images. I don’t remember the limit though.
I resorted to using cloudinary, and multiple emails.
There’s a problem that seems like one out of every 10-15 images though don’t get uploaded and therefore the image ‘breaks’ in the email.

@JamminR said:
rickcab1 , yeah, I’d mentioned the same SSL problem a few posts back, just not in as much detail.
As for Gmail and mulitiple email recipients/some not getting it, Gmail likely isn’t your issue as they would give error if you did something Gmail didn’t like.
The error is likely on recipient side - if you never got an error from recipient mail server, have them check thier spam folder. Most mail providers see ‘oh, many other addresses too, this must be spam’ - your gmail box would never see that though.
There is also a mention of hotmail not liking multiple images in one email - are you attaching the images instead of hosting them (on web or cloudinary)? I did get an error bounce one time from hotmail when I tried to attach too many images. I don’t remember the limit though.
I resorted to using cloudinary, and multiple emails.
There’s a problem that seems like one out of every 10-15 images though don’t get uploaded and therefore the image ‘breaks’ in the email.

@JamminR Thanks I will be looking into that later today.

I have a quick question for anyone using the shared email feature. Does it send the emails to everyone on your shared users list or just the active ones? I have a few users on my friends list that are not active and wondering if they will be getting the emails too if I used the shared email feature. If someone could confirm that would be great.

@rickcab1 -
It sends to all of your Plex registered email friend’s accounts from the Plex shared users list. Doesn’t matter if they are ‘active’ on your server or not. I use this method, and add a few more in the config (a few spouses of my ‘registered’ accounts like to get the update to plan stuff to watch)

@JamminR said:
rickcab1 -
It sends to all of your Plex registered email friend’s accounts from the Plex shared users list. Doesn’t matter if they are ‘active’ on your server or not. I use this method, and add a few more in the config (a few spouses of my ‘registered’ accounts like to get the update to plan stuff to watch)

OK cool thanks I might have to filer the inactive one but will see. Thanks! Next project is the Request page!

Hi JamminR.
Do you have any plans, as to also add Music, into the Mail form.
That would be a great addition.

Thanks for this great Extra app. for Plex.

@jaycedk - I didn’t write this release, nor know enough Python to continue on what seems to have become a stale release. I only lend help with what experiences I have had in setting it up, and the fact I’m a reasonably technical geek person who can figure some things out that sometimes others can not. :wink:

I’d rather have BCC added before music, but, that’s my opinion.

Sorry for the long delay in changes. The script is in a mostly stable state and I’ve put it on the back burner due to to real life (family and work things).

I have added the ability to send emails using BCC in this release:

###v0.6.1 Released

  • Added the ability to send emails using BCC instead of TO.

Latest Release: https://github.com/jakewaldron/PlexEmail/releases/latest

In regards to music, I don’t have any plans on adding it at this point; however I will take a look to see if it is something that can be somewhat easily done.

@eadwyn

I posted the following quote in another thread and thought it might be interesting to get your opinion. Thanks for the development as well!:

Just a general question as I am no where near being a developer but there are some great projects going on surrounding Plex. The 3 that I use currently are PlexRequests PlexEmail, and PlexPy. Have you guys (the developers of the aforementioned) ever considered possibly consolidating and or collaborating on a all in one app? I know the possible repercussions of that are too many chefs in the kitchen but maybe building off a foundation code base where the individual apps could function on one platform that is more seamless to the users? Again just curious as imagine what a killer app it could be if it was all bundled!
_

Hey need some help here. Mind you I know almost ZERO about coding. I wanted to change the email instead of saying “View as Website” and taking me to plexemail/ I wanted to put my own hyperlink to my requests page. Where can I code and how can I code that in. I figured I could change this line of code to change the text:

msg_header3 = ‘View as Website’

But I wanted to now make the text that will replace “View as Website” with my own URL.

Again any help is greatly appreciated.

@rickcab1 said:
Hey need some help here. Mind you I know almost ZERO about coding. I wanted to change the email instead of saying “View as Website” and taking me to plexemail/ I wanted to put my own hyperlink to my requests page. Where can I code and how can I code that in. I figured I could change this line of code to change the text:

msg_header3 = ‘View as Website’

But I wanted to now make the text that will replace “View as Website” with my own URL.

Again any help is greatly appreciated.

I changed the web_domain setting in the config file. I put my web address in single quotes. For me it was line 32.

Hi. I’m a Python Noob stucked on some kinda MIME error. Been reading the whole thread hoping to find similar problem without luck. I’m on Windows 7 and Python 2.7.0 I beleive i did all the prerequisites - but I get this error:

C:\PlexEmail\scripts>plexemail.py
Web page was not created because the option is disabled in the config file.
Traceback (most recent call last):
File “C:\PlexEmail\scripts\plexEmail.py”, line 1052, in
sendMail(email)
File “C:\PlexEmail\scripts\plexEmail.py”, line 353, in sendMail
msgImage = MIMEImage(fp.read())
File “C:\Python27\lib\email\mime\image.py”, line 43, in init
raise TypeError(‘Could not guess image MIME subtype’)
TypeError: Could not guess image MIME subtype

What am i doing wrong?

First thing I would start with is upping your version to 2.7.10 unless you have a reason to stay at 2.7.0?

I have seen python do funky stuff when using lower versions with more recent code.

Thanks harroguk for the tip. I did a version check and I actually already was on 2.7.10. But I surfed the net and found other guys with similar issue. In line 354 in PlexEmail.py I have added subtype to the function and specified PNG. Now it works. But the reason behind the error is still a mystery to me. It may be due to something about UTF8 and danish letters ĂŠ, Ăž and Ă„ in the name of file. For sure I know they are not ok anywhere else in the email text lines.

Earlier: msgImage = MIMEImage(fp.read())
Now: msgImage = MIMEImage(fp.read(),_subtype=“png”)

It may help others with same error