@konior21 said:
Getting the following error, even with a test email. Not sure if this would cause it but I did add about 500 new TV episodes this week.
2018-03-01 14:10:36,375 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File “C:\PlexEmail\scripts\plexEmail.py”, line 1717, in
sharedEmails = getSharedUserEmails()
File “C:\PlexEmail\scripts\plexEmail.py”, line 332, in getSharedUserEmails
response = requests.post(url, headers=headers)
File “C:\Python27\lib\requests\api.py”, line 99, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “C:\Python27\lib\requests\api.py”, line 49, in request
response = session.request(method=method, url=url, **kwargs)
File “C:\Python27\lib\requests\sessions.py”, line 461, in request
resp = self.send(prep, **send_kwargs)
File “C:\Python27\lib\requests\sessions.py”, line 573, in send
r = adapter.send(request, **kwargs)
File “C:\Python27\lib\requests\adapters.py”, line 415, in send
raise ConnectionError(err, request=request)
ConnectionError: (‘Connection aborted.’, error(10061, ‘No connection could be made because the target machine actively >refused it’))
Still getting the same error the last 2 weeks with just a handful of movies and shows added.
@konior21 - I could have sworn I read earlier different error, that plex fixed.
SSLError: hostname 'my.plexapp.com' doesn't match either of 'plex.tv', 'www.plex.tv'
Now you’re getting
ConnectionError: ('Connection aborted.', error(10061, 'No connection could be made because the target machine actively refused it'))
From your PMS server machine, running as the same user that PMS runs as, can you browse to https://my.plexapp.com ?
It should redirect to plex.tv.
If using a web mailer, can you browse to it? (I can’t tell from the error whether it’s occurring during getting users from Plex, or when trying to make connection to mail them using your mailer host)
And again, as I provided instructions for earlier after your last post, make sure you’re using latest PlexEmail.
Plex email runs fine for me on a Win10 box, I do know that Win Server are much more strict about outbound firewall and certificate access though.
@JamminR said:
@konior21 - I could have sworn I read earlier different error, that plex fixed.
SSLError: hostname 'my.plexapp.com' doesn't match either of 'plex.tv', 'www.plex.tv'
Now you’re getting
ConnectionError: ('Connection aborted.', error(10061, 'No connection could be made because the target machine actively refused it'))
From your PMS server machine, running as the same user that PMS runs as, can you browse to https://my.plexapp.com ?
It should redirect to plex.tv.
If using a web mailer, can you browse to it? (I can’t tell from the error whether it’s occurring during getting users from Plex, or when trying to make connection to mail them using your mailer host)
And again, as I provided instructions for earlier after your last post, make sure you’re using latest PlexEmail.
Plex email runs fine for me on a Win10 box, I do know that Win Server are much more strict about outbound firewall and certificate access though.
@JamminR thank you for your response. What I meant was I am still getting the same error this week as I did the last two weeks, which is ConnectionError: ('Connection aborted.', error(10061, 'No connection could be made because the target machine actively refused it'))
The other one you mentioned was indeed a different error but that was from a couple months ago.
I am not able to access https://my.plexapp.com from my Plex server. I get the error
This site can’t be reached
my.plexapp.com refused to connect.
For what it’s worth, I get the same error from my laptop (Win10). I am on script version 0.9.3. I am sending emails through Zoho webmail and I can access that just fine.
@konior21 said:
I am not able to access https://my.plexapp.com from my Plex server. I get the error
This site can’t be reached
my.plexapp.com refused to connect.
Unless you run a third party protection suite on both machines that are preventing you, then the issue is with your router or internet provider.
No matter, if you can’t reach that website and get redirected on either machine, this has nothing to do with PlexEmail.
Troubleshoot your machines access to https://my.plexapp.com
Once you get that working in a standard browser (again, it should redirect to https://plex.tv), then PlexEmail should start working for you.
@JamminR said:
@konior21 said:
I am not able to access https://my.plexapp.com from my Plex server. I get the error
This site can’t be reached
my.plexapp.com refused to connect.
Unless you run a third party protection suite on both machines that are preventing you, then the issue is with your router or internet provider.
No matter, if you can’t reach that website and get redirected on either machine, this has nothing to do with PlexEmail.
Troubleshoot your machines access to https://my.plexapp.com
Once you get that working in a standard browser (again, it should redirect to https://plex.tv), then PlexEmail should start working for you.
Well I found the issue. The redirect is being blocked by my PiHole server. Not sure why though, it’s not blacklisted. Can I just change the script to use plex.tv instead of my.plexapp.com?
@konior21 said:
Can I just change the script to use plex.tv instead of my.plexapp.com?
I’m reasonably sure the answer is no. Though going straight to my.plexapp.com in a browser redirects, I’m pretty sure Plex hosts some virtual folders that PlexEmail (and maybe even Plex) use to get json data/etc.
I could be wrong.
You’re welcome to hack away and tell us.
@JamminR said:
@konior21 said:
Can I just change the script to use plex.tv instead of my.plexapp.com?
I’m reasonably sure the answer is no. Though going straight to my.plexapp.com in a browser redirects, I’m pretty sure Plex hosts some virtual folders that PlexEmail (and maybe even Plex) use to get json data/etc.
I could be wrong.
You’re welcome to hack away and tell us.
Turns out there were just additional domains I needed to whitelist. In case anyone needs them they can be found here - Commonly Whitelisted Domains - FAQs - Pi-hole Userspace
Hey guys 
Suddenly i get the emails send from PlexEmail in my junkfolder.
Does somebody know where the issue could be?
Thanks 
@“StreamNet Club” said:
Does somebody know where the issue could be?
Nothing to do that PlexEmail could fix.
My gmail still appears properly.
Your email provider changed what ever rule sets it uses to monitor email, and now puts it in Junk mail.
For your own junk folder, you’d have to mark it as “not junk”.
If you have friends you share with, they would have to do same, if they are being junked.
Okay, I’m a little late to the PlexEmail party, and recently gotten serious about Plex in general, but now that I’m starting to serve some external family members the thought of sending them an email of what’s new on the server every week using PlexEmail sounds awesome!
I’m very computer literate but I’m not a programmer. I’m running Plex on a 64 bit Windows 10 Pro i5-7600k platform w/64 bit Python 2.7. I’m successfully running Tautulli (Formerly PlexPy) with no issues. I’m also using the latest PlexEmail version that I could find from the Latest commit 8e56040 on May 10, 2017.
I’ve worked through quite a few issues with PlexEmail but I’ve come across an error that I don’t know how to fix.
2018-04-15 12:16:58,188 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File “C:\PlexEmail\scripts\plexEmail.py”, line 1097, in
title += movies[movie][‘title’]
TypeError: cannot concatenate ‘str’ and ‘NoneType’ objects
Any help would be greatly appreciated, thank you.
@edriddle said:
Okay, I’m a little late to the PlexEmail party, and recently gotten serious about Plex in general, but now that I’m starting to serve some external family members the thought of sending them an email of what’s new on the server every week using PlexEmail sounds awesome!
I’m very computer literate but I’m not a programmer. I’m running Plex on a 64 bit Windows 10 Pro i5-7600k platform w/64 bit Python 2.7. I’m successfully running Tautulli (Formerly PlexPy) with no issues. I’m also using the latest PlexEmail version that I could find from the Latest commit 8e56040 on May 10, 2017.
I’ve worked through quite a few issues with PlexEmail but I’ve come across an error that I don’t know how to fix.
2018-04-15 12:16:58,188 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File “C:\PlexEmail\scripts\plexEmail.py”, line 1097, in
title += movies[movie][‘title’]
TypeError: cannot concatenate ‘str’ and ‘NoneType’ objects
Any help would be greatly appreciated, thank you.
Make sure you have Python 2.7 32bit and not 64bit.
@“Marco Fernandes” said:
@edriddle said:
Okay, I’m a little late to the PlexEmail party, and recently gotten serious about Plex in general, but now that I’m starting to serve some external family members the thought of sending them an email of what’s new on the server every week using PlexEmail sounds awesome!
I’m very computer literate but I’m not a programmer. I’m running Plex on a 64 bit Windows 10 Pro i5-7600k platform w/64 bit Python 2.7. I’m successfully running Tautulli (Formerly PlexPy) with no issues. I’m also using the latest PlexEmail version that I could find from the Latest commit 8e56040 on May 10, 2017.
I’ve worked through quite a few issues with PlexEmail but I’ve come across an error that I don’t know how to fix.
2018-04-15 12:16:58,188 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File “C:\PlexEmail\scripts\plexEmail.py”, line 1097, in
title += movies[movie][‘title’]
TypeError: cannot concatenate ‘str’ and ‘NoneType’ objects
Any help would be greatly appreciated, thank you.
Make sure you have Python 2.7 32bit and not 64bit.
So, funny story. I made a backup of the server before I decided I was going to uninstall Python 64-bit and install Python 32-bit… you know, just in case.
So after the backup I go the the Control Panel / Uninstall a Program and it CLEARLY shows Python 2.7.14 (64-bit).

For some reason I decide that maybe I could just install the 32-bit version OVER the 64-bit version so I wouldn’t have to redo Tautulli’s installation / configuration. Possibly not the best idea, but I’ve got a backup so worst case scenario I re-image the drive and start over.
So I go to the Task Manager to kill the Python processes and they are showing up as 32-bit processes???

Off to try plexEmail again and I get an error about not being able to send the email because my user name / password is wrong - it’s not, I’m sure it’s because of two-factor authentication. So anyway I create a new Gmail account and BAM it all works!
Not sure why or how but I’m not going to change it… time for another backup.
@“Marco Fernandes” - I’ve been using Python 2.x 64bit for many years to run both Tautulli(formerly Plexpy) and PlexEmail with no issue.
@edriddle - in you’re processes list, you are confusing Plex server’s plexscripthost.exe (which is python 32bit) with your 64bit python install.
64bit python should work just fine for both tautulli and plexemail, as long as you ensure any libraries you install match (ie, requests). (See properties of the python 32 bit - it’s plexscripthost.exe)

I made a huge Modification on the PlexMail HTML template and I would like to show you how it looks like:
recordit.co/i62sYHJMAm
The Image header changes everytime you refresh the page, the posters are just random movie posters that I load from a folder on my server with Javascript. I don’t use the mail function since i’m using Ombi for that.
Cheers
@“Marco Fernandes” said:
I made a huge Modification on the PlexMail HTML template and I would like to show you how it looks like:
recordit.co/i62sYHJMAm
The Image header changes everytime you refresh the page, the posters are just ramdom movie posters that I load from a folder on my server with Javascript. I don’t use the mail function since i’m using Ombi for that.
Cheers
Awesome work man
any way to share your project with the community?
Cheers
Hi guys.
Could someone please help me I would like to add my own logo to the top of the email but no next to nothing about python.
Could someone help me achieve this?

@Phairmedia said:
Hi guys.
Could someone please help me I would like to add my own logo to the top of the email but no next to nothing about python.
Could someone help me achieve this?

Just add an < img > tag with the source of your logo to the < div > on line 788 in plexemail.py.
Cheers
@StreamNet said:
@Phairmedia said:
Hi guys.
Could someone please help me I would like to add my own logo to the top of the email but no next to nothing about python.
Could someone help me achieve this?

Just add an < img > tag with the source of your logo to the < div > on line 788 in plexemail.py.
Cheers
like this?
‘div class=“headline” img src=“https://imgur.com/a/1u06cj6”’
Like this:
`
`
You can then style your logo with inline css to make it look better on different screens.
@“StreamNet Club” said:
Like this:
`
`
You can then style your logo with inline css to make it look better on different screens.
i appericate your help
adding that line to the python script makes it fail
File “C:\Plexemail\scripts\Plexemail.py”, line 788
SyntaxError: Non-ASCII character ‘\xe2’ in file C:\Plexemail\scripts\Plexemail.py on line 789, but no encoding declared; see PEP 263 – Defining Python Source Code Encodings | peps.python.org for details