PlexEmail - Email Recently Added Media

After some Linux updates, I am now receiving "CertificateError: hostname ‘api.cloudinary.com’ doesn’t match ‘*.vzmessages.com’. It seems plexemail is not able to make the html page unless the images are uploaded, which isn;t happening because of that error above. Any idea on how to fix that?

Hi
Is there a way to add resolution and container to the email summary? Like having HD or SD and mkv or mp4 along with the movie casts, studio,year and so on?

If yes can someone point me in the right direction to add this?

Thanks

hi ,

i need some help please,

when i send emails to my shared users , i get them all into my junk folder of the senders email but they are also send to the users.

does anybody know what could be wrong?

also when i add someone into the unsubscribe list i get an error when sending to shared users:

log output:

2017-10-01 17:20:49,117 - INFO:getSharedUserEmails: Returning shared emails
2017-10-01 17:20:50,899 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
  File "plexEmail.py", line 1895, in <module>
    success = sendMail(email)
  File "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. i136sm11196015wmd.23 - gsmtp')}

config file:

email_enabled = True
email_individually = True
email_use_bcc = False
# ['email1@gmail.com', 'email2@hotmail.com']
email_to = ['streamnetclub@gmail.com']
#This requires plex_username and plex_password to be filled to get emails of shared users.
email_to_send_to_shared_users = True
email_unsubscribe = ['streamnetclub@gmail.com', 'huesbourgchristine@gmail.com']
email_from = 'streamnetclub@gmail.com'
email_from_name = 'StreamNet'
email_smtp_address = 'smtp.gmail.com'
email_smtp_port = 587
email_use_ssl = False #Port must be an SSL port i.e. 465
email_username = 'streamnetclub@gmail.com'
email_password = '*************'
# Only valid if web_enabled = True and upload_use_cloudinary = False
email_use_web_images = False
email_skip_if_no_additions = True

I don’t know what i am doing wrong?

thanks for all help.

Ive

@Cyb3rGh05t - Im remote so wont be able to see my config for comparison for several days, but I know gmail requires use_ssl True.
As for the 555 error, one guess is that, during testing you have your own address in both email_to and unsubscribe, script may be trying to send blank string ’ '.

@JamminR said:
@Cyb3rGh05t - Im remote so wont be able to see my config for comparison for several days, but I know gmail requires use_ssl True.
As for the 555 error, one guess is that, during testing you have your own address in both email_to and unsubscribe, script may be trying to send blank string ’ '.

thanks for replying.

ok so i have to set SSL to True and Port to 465?

yes u right that i have the same mail in email_to and unsubscribe, but when i removed it and i leave just the emails i need to unsubscribe i also get this error message in log file?

so the issue with getting all emails in my junk folder is that i didn’t have SSl to true?

like this?

##Email
email_enabled = True
email_individually = True
email_use_bcc = False
# ['email1@gmail.com', 'email2@hotmail.com']
email_to = ['streamnetclub@gmail.com']
#This requires plex_username and plex_password to be filled to get emails of shared users.
email_to_send_to_shared_users = True
email_unsubscribe = ['flammang.yves@gmail.com', 'huesbourgchristine@gmail.com']
email_from = 'streamnetclub@gmail.com'
email_from_name = 'StreamNet'
email_smtp_address = 'smtp.gmail.com'
email_smtp_port = 465
email_use_ssl = True #Port must be an SSL port i.e. 465
email_username = 'streamnetclub@gmail.com'
email_password = '**************'
# Only valid if web_enabled = True and upload_use_cloudinary = False
email_use_web_images = False
email_skip_if_no_additions = True

i get the same error

2017-10-01 18:42:32,306 - INFO:getSharedUserEmails: adding email - ***********
2017-10-01 18:42:32,306 - INFO:getSharedUserEmails: adding email - ***********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - **********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - ********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - ************
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - ********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - **********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email -*********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - j************
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email -+**************
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - ***********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - **************
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - ********************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - *******************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - ****************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - 
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - **************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - ***************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - *************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - *************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - *****************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - *******************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: Returning shared emails
2017-10-01 18:42:34,280 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
  File "plexEmail.py", line 1895, in <module>
    success = sendMail(email)
  File "plexEmail.py", line 575, 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. p80sm4363044wmf.42 - gsmtp')}

Ssl port stays same, 587 i think. But SSL is needed.
As for that error do any of your shared email lists have odd characters?
Look in your log. Theres a blank email. Between martins_christophe and leumas.
Also, you accidentally showed your gmail password. Go change it at gmail

@JamminR Ohh i disnt saw that sry :frowning: will do.
Odd characters i dont think so, i have just two emails in this unsubscribe list. Everything works when i leave unsubscribe blank.

@JamminR I dont even know where this blank email comes from, any idea?

all my shared useres are listed in the logfiles. Could that be a HomeUser?
Also mine is not listed.
Changing SSL to true and Leaving the port on 587 returns also an error, and changing it to 465 works, But i get the email in Junk folder when i run in test mode and also i get all shared users emails in my junk folder… weird :neutral:

EDIT: in PlexPY it shows a local user witch is blank for all stats. i think that this should be me but i am under my Plex username in the list.

Edit: config looks like:

    ##Email
    email_enabled = True
    email_individually = True
    email_use_bcc = False
    # ['email1@gmail.com', 'email2@hotmail.com']
    email_to = ['']
    #This requires plex_username and plex_password to be filled to get emails of shared users.
    email_to_send_to_shared_users = True
    email_unsubscribe = ['']
    email_from = 'streamnetclub@gmail.com'
    email_from_name = 'StreamNet'
    email_smtp_address = 'smtp.gmail.com'
    email_smtp_port = 465
    email_use_ssl = True #Port must be an SSL port i.e. 465
    email_username = 'streamnetclub@gmail.com'
    email_password = '***************'
    # Only valid if web_enabled = True and upload_use_cloudinary = False
    email_use_web_images = False
    email_skip_if_no_additions = True

Then it works but with no unsubscribe, but i get all the emails in my junk folder (users also get one) and the blank email is also there… i don’t know

        2017-10-01 18:42:32,306 - INFO:getSharedUserEmails: adding email - ***********
2017-10-01 18:42:32,306 - INFO:getSharedUserEmails: adding email - ***********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - **********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - ********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - ************
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - ********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - **********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email -*********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - j************
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email -+**************
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - ***********
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - **************
2017-10-01 18:42:32,307 - INFO:getSharedUserEmails: adding email - ********************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - *******************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - ****************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - 
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - **************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - ***************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - *************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - *************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - *****************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: adding email - *******************
2017-10-01 18:42:32,308 - INFO:getSharedUserEmails: Returning shared emails

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

Psst, I would blank out you and your friends email addys or send it privately.

Done all i know or can remotely re blank exception error. Pretty sure that blank line is partial issue though. Go to your actual plex server settings and users - friends and see if any are blank in there.
Someone else will have to help. Perhaps dev.
Guess gmail sees mass send as junk. Wouldnt worry if they get them.
Doesnt happen on my end though using plex email from gmail. Maybe your display name or too many sends set off a flag algorithm. Thats what the test command is for.

@JamminR said:
Done all i know or can remotely re blank exception error. Pretty sure that blank line is partial issue though. Go to your actual plex server settings and users - friends and see if any are blank in there.
Someone else will have to help. Perhaps dev.
Guess gmail sees mass send as junk. Wouldnt worry if they get them.
Doesnt happen on my end though using plex email from gmail. Maybe your display name or too many sends set off a flag algorithm. Thats what the test command is for.

Ok thanks. So all my shared users have their email adress, no one is blank. I have one HomeUser in my setup at this is the only one without a email adress. So i am out of ideas where it can come from…

Yes for me it work also some days ago but since i upgrade my mac to 10.13 i have this issue with the junk folder. Even the test command sends it to the junk folder. Dont know whats going on.

Thanks you again for your effort to help me out

@foebik said:
Psst, I would blank out you and your friends email addys

@Cyb3rGh05t - welcome, and what foebik said. Can *** out the usernames. Not huge security risk like accidentally showed password earlier, but helps keep from feeding the email bots.

@JamminR said:

@foebik said:
Psst, I would blank out you and your friends email addys

@Cyb3rGh05t - welcome, and what foebik said. Can *** out the usernames. Not huge security risk like accidentally showed password earlier, but helps keep from feeding the email bots.

SORRY Done

@JamminR Got it sorted out :slight_smile:

the blank email line is a Managed HomeUser without an email. adding an email to that user sorted it out.

but i still get get this error when adding an email to the unsubscribe list:

2017-10-03 10:26:38,451 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,451 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,451 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,451 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,451 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,451 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,452 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,453 - INFO:getSharedUserEmails: adding email - ##########
2017-10-03 10:26:38,453 - INFO:getSharedUserEmails: Returning shared emails
2017-10-03 10:26:39,406 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
  File "plexEmail.py", line 1895, in <module>
    success = sendMail(email)
  File "plexEmail.py", line 575, 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. x29sm11950923eda.51 - gsmtp')}

thanks

@JamminR asking this SMTPRecipientsRefused: {'': (555, '5.5.2 Syntax error. x29sm11950923eda.51 - gsmtp')} on google gives me this :

but i can’t do nothing with that information :frowning:

do you?

thanks

Several posts ive seen throughout this and other python based config files mention Macs default text editor using something called magic quotes. It had a tendency to use a wrong single quote when editing. Theres an option to disable it somewhere. Someone else using Mac may have to confirm what app and where setting is. It might be leading to your syntax error.
Try copying the example bracket addresses a few lines above in the config. Paste and edit only the addresses, not the quotes

@JamminR said:
Several posts ive seen throughout this and other python based config files mention Macs default text editor using something called magic quotes. It had a tendency to use a wrong single quote when editing. Theres an option to disable it somewhere. Someone else using Mac may have to confirm what app and where setting is. It might be leading to your syntax error.
Try copying the example bracket addresses a few lines above in the config. Paste and edit only the addresses, not the quotes.

Okay thanks will try that out and i let you know.

Merci :slight_smile:

@JamminR its called smart quotes and u can disable them in keyboard settings under mac os.

Have a look at this :

Its for maveriks but its also for el capitan, sierra and high sierra os.

Now it works :slight_smile: also by copiing the quotes from another line in the config file worked :slight_smile:

Thanks for helping me out :slight_smile:

@foebik said:

@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

I made that VBS file, placed it in the scripts folder in Python and it’s still not working, anything else i am missing?