This script aggregates all new TV, movie and music releases for the past configured time then optionally writes to your web directory and sends out an email.
I have been trying to figure out a way to link the "msg_notice" string to an external html file. That way it would be easier to quickly update the notice that goes out with the e-mail. I've tried several ways but my lack of experience has hindered me from accomplishing this. Is there an easy way to do this?
Update: I had limited success using the iframe tag, however that only works for the webpage and doesn't work in the e-mails. I'm still experimenting to find a way to do this and I'll give an update if I find something that works for both the webpage and the e-mail.
"notice.htm" is the file I put the html that I wanted to appear in the notice section of the e-mail/web page
Update 3:
This is helpful because I think it's easier to add a custom notice in a file rather than editing the notice in the config file, especially when it's a big notice with a lot of links and styles. I like to include messages regarding what's going to be removed from the server along with any other special information I might want to pass on to the plex users.
I have been trying to figure out a way to link the "msg_notice" string to an external html file. That way it would be easier to quickly update the notice that goes out with the e-mail. I've tried several ways but my lack of experience has hindered me from accomplishing this. Is there an easy way to do this?
Update: I had limited success using the iframe tag, however that only works for the webpage and doesn't work in the e-mails. I'm still experimenting to find a way to do this and I'll give an update if I find something that works for both the webpage and the e-mail.
Update 2: Here's what worked:
msg_notice = open('/path/to/PlexEmail/scripts/notice.htm', 'r').read()
"notice.htm" is the file I put the html that I wanted to appear in the notice section of the e-mail/web page
Update 3: This is helpful because I think it's easier to add a custom notice in a file rather than editing the notice in the config file, especially when it's a big notice with a lot of links and styles. I like to include messages regarding what's going to be removed from the server along with any other special information I might want to pass on to the plex users.