How to avoid Outlook Security Alert - c++

So I'm interning at a company and essentially self teaching myself C++ to get a head start on classes this fall.
The problem I have that I cannot find a solution for, is how to send an email without user interaction and avoid the security prompts by outlook. I have tried different ways to send the email like with simplemapi, cmd, vb, cdo, etc but nothing I do seems to get rid of that 'please wait 5 seconds because someones trying to send an email' prompt, and I can't have that.
I also can't install any third party software because I need this program to work on all the company computers.
I'm about to try with System.Net.Mail.MailMessage and see if I can figure that out.
End goal is that they click a button, and an email sends without their knowledge, with no security prompts. If it needs authentication to execute without the prompt I can implement that too. I'm using winapi on 64 bit systems, and have the exe run from sharepoint by pulling from a network drive if that matters. And please don't be closeminded about using MS office, I'll do anything to make it do what I want it to
In the meantime, if I could get a code sample or a link in the right direction (NOT MSDN FFS) that would be greatly appreciated.

See http://www.outlookcode.com/article.aspx?id=52 for a list of your options.
Note that System.Net.Mail.MailMessage will only work against an SMTP server, so it really has nothing to do with Outlook.

Related

How do I send a command to Google Home with an ESP8266?

I have been looking for a way to send commands to my google home by pressing a button connected to an ESP8266. What I am trying to do is have my Google home turn off / on my Smart lights by pressing a button rather than saying the command.
I have some generic Wi-Fi controlled smart lights that are connected to my Google Home and I control them with the basic on/off commands (turn them on I say "OK Google, turn on my lights." and for off "OK Google, turn off my lights."). I would like to be able to press a physical button and have the ESP8266 push the command to my Google Home and have it execute it. Essentially a light switch that uses code to toggle the lights on and off rather than cutting the power, or go into an app, or say a verbal command.
I would prefer it not to use IFTTT but if that is necessary I will oblige to doing so. I have seen countless people send commands TO an ESP8266 FROM a google home, but I have never seen it accomplish way around besides 1 GitHub post showing that you can send voice commands using his Library called Google Home Notifier. While this does work for having my Google say something I don't know how (if even possible) to use it to have Google receive and execute a command.
As I stated earlier I don't know if this is even possible. I believe there is some way to do this I just don't know-how. I would really appreciate any help that can be given or a point in the right direction on how to accomplish this.
Why do you even want to use your Google Home ?
What if you connect your ESP8266 to home-assistant, and trigger an automation when the button is pressed ? This automation could turn off the lights, or call a Google API if that's what you want
N.B: I guessed you have a home assistant setup because of the tags in your question. If that's not the case, please edit

Failed to sign into Microsoft account from Windows 10

I have problem signing into Microsoft account from my local account on my machine. This used to be my work laptop I have bought it after I left company. I could sign in on my domain user without any problems. Since I left domain I lost this account.
I am trying to "Sign in with Microsoft account instead" option in Accounts->Your info. After I enter my Microsoft account credentials and insert my local user password I get message "Oops something went wrong. Whatever happen it was probably our fault". Good one Microsoft.
Also similarly when I try to add account to Calendar app I end up with same problem, but here I got more information: "You will need the internet for this. It doesn't look like you're connected to the internet. Check your connection and try again. 0x800704cf". This led me to check Network troubleshooter and this error came up:
Your computer appears to be correctly configured, but the device or
resource (www.microsoft.com) is not responding
Contact your network administrator or Internet service provider (ISP)
Completed Windows can't communicate with the device or resource
(www.microsoft.com). The computer or service you are trying to reach
might be temporarily unavailable.
I have tried many ways how to fix this. (Flush DNS, reboot router etc..), but I am pretty sure that my problem is not with my internet connection. It works perfectly fine, also note that I was able to check this with 2 internet providers with same result. Also another thing is, that this works perfectly fine with other devices in our household.
For me it looks like system don't see microsoft.com. Only thing I am able to work with is One drive.
I am pretty sure I would be able to fix this by resetting Windows 10, but I don't want to loose my installed programs (and licenses).
Any advice will be appreciated. I really ran out of options.
After doing many many thing, only thing that helped was resetting PC. It always does help.

remotely debug user browser without installation on local PC

Hello Stack Overflow Community,
This is my first post, so if I misstep, please help me correct.
I am a support manager and we are dealing with a browser issue that we cannot replicate. It appears to happen for our end user in no visible pattern. The same user will have success one day from the same network and PC and failure the next day or even next hour.
What we are looking for is a method to remotely debug an end user's PC without additional installation that will involve their IT. We have tried using Internet Explorer developer tools, but those are proving to create additional problems while running.
Thank you for your gift of shared knowledge.

ChatJS jquery.chatjs.adapter.demo.js for multiple users

I took a look at ChatJS today, but I am not sure how to go about completing the jquery.chatjs.adapter.demo.js adapter code as the coder suggested. If you take a look at the example file you will find a bot replying the same message in the chat room. What I want is to be able to chat with multiple users online. I can load in the users from any source for now and probably worry about the connection later. If someone has a working adapter code for ChatJS please let me know, I will be using it with ASPX. I am not sure if I need the signalR adapter for this to work.

Setup email server to respond to emails sent to an account

This is a newbie question... I want to create a service which responds to emails sent to it.
Just to illustrate. If a user sends an email to handlethis#example.com with some instructions, I want a program at example.com (which is a domain I own) to read the email and act accordingly.
I strongly doubt I can do this with standard web hosts (which are shared), so I welcome suggestions on where I can host something like this (at the cheapest rate).
What will the "program" be written in? Can I use php, etc or is it some specific "email-handling" language!?
Thanks!
S
FWIW, I think this question should be posed on serverfault.com rather than here.
I confirm this is something most shared hostings can't do: You need to be able to create a scheduled task/cron job which checks your e-mail account every x minutes.
You might consider a virtual server hosting. A bit more pricey but much more flexible.
The script would be written in php on Linux or in VBS/JScript/.NET on Windows. I've written such a script in JScript on Windows, using a component that implements POP3.