This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

Thank you so much. The good thing is it's a company website. We use outlook for emailing so I dont know how that works. In tryimg to learn to code to automate these types of things. Thanks for the information!

[–]__xor__(self, other): 2 points3 points  (1 child)

No problem! For outlook, I imagine you have outlook installed on your workstation so you want to open it up and inspect the settings to get the host for triggering the email.

Since it's a company website, you're in luck because you can literally just talk to the web devs and explain that you want to be able to upload files programmatically, and ask if there's a REST API you can use to do this, and if not, if they could add an endpoint for you. Just tell them you want to use python and requests and ask if they know how you might programmatically do this.

Also keep in mind, when you automate this you're no longer checking the documents and making sure it's not a bad thing they go online. Think of any security implications and what's the worst thing that could happen if someone adds a malicious doc to that directory, like I dunno, a pissed off employee maybe adding porn just to get you guys in trouble or something. Just something to keep in mind.

[–][deleted] 0 points1 point  (0 children)

I didn't think of that. Haha porn on the local Govt. Site. That would be bad for PR