I understand that similar questions have been asked before on Stack Overflow and all over the internet, but my situation is a bit unique. Let me give some context:
I want to make a macro/program that automatically downloads attachments sent from a set of emails (according to date) in a specific folder on the Outlook Web App. The only issue is that this is for my workplace, and the IT department is refusing to give me the password for the outlook account which makes it difficult to sync up the Web App to the on desktop application (I am a pharmacy student who works at a Chemist Warehouse and I'm just doing this as a local pet-project because lockdown is making me bored, it would not be used for all stores).
I have come up with an idea for the solution, essentially I want to use the urlmon ability of VB.Net to download the attachment as a file from the web. I was thinking if I could put a Web Browser control on the form, make it invisible and when the program loads up it automatically goes to the store email (I can get the url), to the appropriate folder. I then want to be able to read the HTML content perhaps? and then download any and all attachments in all emails received today for example in that folder.
I understand this is a unique and weird situation, so any help is much appreciated. If there are any further questions please feel free to ask and I will answer to the best of my ability.
Thanks in advance :)
This issue has been solved now. I used the Selenium Web Driver, integrated it to VB.NET and then used it to scrape the email. Feel free to comment if you wanna know how I did it. I'm gonna close this question thread now :)
Related
we are a small team of devs currently working on a website which hosts some awards for its' participants. The user is able to create and account, log in and then fill up a form, part of filling the form is to upload some pdf files, we are looking for a solution which will scan files before we save it on our server.
I tried contacting virustotal but, they basically told me that what I am looking for doesn't work with their api.
I am simply looking for any reputable company that has an api which we can use to perform the scanning.
*We have no issues with paying
Anyone went through similar problem, please share, service, company etc..
Thank you
I'm not new to programming and software development but I am new to password safe application in VB.
I have created a password safe application where you can add and remove passwords and usernames. But of course, if you exit the application the information goes away. I know you can use the settings to save user data but it's not quite what I'm looking for, or is it?
I have heard that VB can save text and information to a text file or an xml file and retrieve it later. Is there a certain keyword or term for this that I could google and learn about, or a web link? This would be very helpful! Thanks!
P.S. If you need anymore info i would be glad to edit this post
i once saw a friend of mine whom was very good at visual basics and asp as well as c#. At the time i had no need to learn VB as i found php enough for my needs. While now since ive been in developing for a longer time i see why people use c#. It has its special place. My question relates to one of these special cases.
However i need your help to figure out how it was done.
What my friend did:
I had a wordpress site at the time. Because of our clients, we didnt want them to login backend and fill in the fields in the CMS. We wanted a deployed executable exe that the clients could install on pc and fill in the required data in simple forms that wont confuse them. Once the form was complete they would post the data to the wordpress cms in the background not visible to them. Using a webbrowser in the exe is what i recall my friend doing.
What i want to do:
I want clients to fill run an exe. They would then need to add login details to validate themselves. Once they logged in i want a very simple form that provides the necessary fields that the cms needs to fill in which will complete the post needed to render their page or profile on the actual website. In other words i want VB to connect to my website from a exe using forms to fill in data rather than going to the cms on a normal chrome or explorer browser.
I know you wondering why i want this. It seems like one hell of a work around. Well im a php developer whom needs a exe. I want to be able to package the exe physically in our portfolio when we hand it to clients. It becomes part of our presentation and welcome pack when joining out system.
This will help us when it comes to clients whom are not able to navigate a complex cms. If we make the cms to simple and old fashioned ( what clients generally are used to ) then we would have developed an outdated application in 2015 haha. Hence we want the best cms with modern features for the future, yet still need the old fashioned forms and simple structured date capturing clients are used to.
What you can help me with:
If i had a login, title and mobile number as the fields in my cms. The title had an ID named title and mobile number has an ID named Mobile. How can i do exactly what my friend did to login, and fill out forms then post the filled out form to my website cms that makes the post live. Please assist,:)
Kind regards
Basic solution will be using a webbrowser control with visibility=hidden. Now Just change the value of some elements and invoke submit(). If you can't understand i will explain in details.
I'm developing an app on the Windows desktop so Win7 users have the app, but for Win8 users I'm also developing a Metro app.
My problems are,
if a user opens a file (e.g. "Blue.xyz"), I want an app to come up that asks which environment to open it in, but first it has to find all the apps that can open the file and display them.
Then I need to pass the data as a parameter to the app Chosen.
In the .NET framework 4.5.1, I can't find the System.GetEnvironmentVariable command so I can create a common location for both environments to access. These are my options:
Comment for clarification.
Regarding your 3rd question, the function is there, just now showing on MSDN page:
After having an inspiration, I found some code that can get pretty close to what I want.
Dim filepicker As New Windows.Storage.Pickers.FileOpenPicker
CommonFolder = Windows.Storage.Pickers.PickerLocationId.DocumentsLibrary
I should just be able to tack this on the end after that:
CommonFolder.Replace("\Documents","")
and it should give me "C:\Users\someuser" and then I can add "\MyAppStorage"
Thanks for all the help though! This code isn't very clean, so feel free to edit and make it better!
I am working on a study that sends people a PDF document with information about their health. The team would like to know if the person has actually opened the PDF document (a sign that they didn't just ignore the e-mail). I know that it'd be possible to do it with a link to an external file, but the users are much less likely to click on a URL and download it then they are to just view an attachment, and we don't want to do anything that might prevent the users from reading the information (we've already had people say they never received the message, and with further investigation they discovered they had, they had just ignored it).
Another option is to request a read report, but this is only useful if it doesn't annoy the user (ie it does it automatically when the email is opened instead of requesting them to send one). We're currently looking into this as well, but the ability to check if the attachment has been opened is a much better idea.
The email is generated in MS SQL and sent using the database mail system, and we have adobe acrobat pro, so creating scripts in pdfs is possible (although I'm not sure whether those scripts will be allowed to run).
Thanks
1) Dont include the PDF in the email, include a link to the PDF.
or
2) Include a javascript snippet in the PDF, which hits a per-user URL or includes IP address or something to track. This will only work if the user allows javascript, and if their pdf reader supports it.
See
http://ask.metafilter.com/153206/Is-it-possible-to-track-where-a-PDF-file-goes-once-in-the-wild
Since this was originally posted there has been a number of consumer tools that now let you track PDF's sent via a web link.
http://docsend.com , http://attach.io
and if you're sharing from Dropbox
http://orangedox.com
Much easier than having to script it yourself
At this time there are a number of tools available who offer attachment tracking service to their users. I am also using SalesHandy for attachment tracking and get the deep analysis of when & where your attachment is open.
Click to read more: https://www.saleshandy.com/document-tracking/