The question below is more for ideas, guidance and directions than coding assistance. Sorry if I am in the wrong place.
I have a console application which is checking for a specific file on my computer on a specific path. I want to get a notification when it detects the file on my phone.
What is the best way to get this done, if there is one.
I though about using facebook to simply send me a message but after a little research I found out that FB prevents people from sending private messages to avoid abusive usage of it.
Is there another easy way to do this?
Most phones have an email address like 2027710384#mobile.att.net. I have had success doing that in the past as a workaround.
Here is a list of provider addresses: http://www.sensiblesoftware.com/weblog/2011/02/28/cell-phone-email-addresses/
In my application I stored the user's phone number and provider. When sending a notification, I simply put the two together and send an email message.
Sending real SMS messages will always cost money because you have to pay for usage of telephony infrastructure.
Related
So I'm not sure what programming language that would be good for this specific scenario but here is a more detailed information about it.
Example: I receive a notification from this gaming app, the notification consists of "you're being attacked!...."
So my idea was to be able to read the phones notifications characters right after its sent to my screen and is stored temporarily say maybe 10 minutes max. After the characters are read, it would compare if it actually contains those specific characters in the first place. If it does contain those characters "you're being attacked", it would then spam you with emails maybe 30 times witha delay of 5-10 seconds each. Im assuming Id have to use the smtp client for this purpose of sending emails but Im not sure about how to actually connect my phones notifications to my code. Maybe through some sql data or something. Im not sure. If anyone has any idea or some code that can help me with this process it would be greatly appreciated.
I think I'd have my task scheduler run every 20 minutes even when my laptop is asleep to check if I have received any of those notifications rececently.
Don't mix the display message with your app data.
A push notification can contain various types of data.
So you can send a notification like
{
"displayMessage" : "Your are being attacked",
"notificationCode" : "ReceivingAttack",
"attackerId" : 3
etc......
}
Then you need to use a push service in order to be able send push messages to your phone clients like Firebase
You can integrate Firebase into your C# server code see these examples.
Using Firebase in .NET
Send push to Android by C# using FCM (Firebase Cloud Messaging)
https://www.youtube.com/watch?v=PsjrxHAin0I
Finally i am not sure what you want to achieve with the email spam functionality but you can just use again the Push Notification Messages to spam the user for attack reminders.
I'm currently creating a Message Extension bot for our escalation channel in Teams and would like it so our company has to use the Bot messaging extension to log escalation issues, this is to help our dev team gather as much information about issues as possible. When other departments log issues straight into the channel important information is sometimes missed out, causing us to lose time asking. Does anyone know a way of achieving this functionality?
I don't think this is possible, unfortunately, and the bot doesn't automatically receive every message in the channel either.
Perhaps you could look at an alternative: have the users connect to the bot directly, in 1-1 conversations, and whatever they log via the bot, the bot could -repost- into the channel as a pro-active message (I've posted some steps on that here).
In your bot, you could show an adaptive card to help with data entry, but I suppose you're doing something like that already with the message extension? If so, you can just re-use the same card.
I want to have the app i am creating to communicate with my personal android device. As in, my application will be monitoring something on my server, and when something changes it needs to somehow send an option to act or ignore to my phone, and my personal reply (Yes/No) should be send back to the server.
I don't mind any specific protocols. Anything which does not require an app running actively on my phone would be nice, but i am not that great with android native development so if it can be done it should be relatively simply to achieve.
My own idea would be to actually implement Email somehow. So my phone could get an email on my google account (which in turn creates a notification), to which i would send a reply email with my reply. Which in turn will be read out on my server.
The bad part is that i would have to actually open gmail and type out a short message to send back as a reply. So anything easier then that would be a great thing.
I have seen newer android 6 apps use custom buttons in notifications in order for the app to act on, but i have no clue how hard those are to implement and rig to my reply.
Please note that this application is probably nothing that will go public. So i am not going to bother to worry about load or efficiency in the end of it. Since it will be just me and my server.
Any input would be greatly appreciated. The most convenient/easy-to-use method will be marked as the answer.
I think...u can use xml-rpc " http://xmlrpc.scripting.com " for communicating with your server and android app.
I used it in my personal project and found iI to be useful.In my case,I used wordpress as framework so any new updates in my server is notified by this protocol.
I am developing a site for which I would like to protect buyers by anonymizing their email addresses.Similar to craigslist's system, when a seller needs to contact a buyer they should be able to send an email to an anonymized address such as 1425415125#mysite.com which will then be routed to the user's email address.
My plan right now is to:
Set up a bucket (catch-all) inbox
Generate a random key for each buyer which will be the user specific ('1425415125' above) section of the email address
Monitor the bucket inbox and parse out this user specific section. Once I know the user, the email can be forwarded to the correct address
My questions are as follows:
Can you see any issues with the above solution
Are there any open source solutions to the existing problem
Are there any gotchas that one should be aware of when developing such a system?
Thanks in advance
JP
I did something related, though not quite the same. I setup a catch all inbox on my existing pop3 server (you probably have one already I'm guessing). I then used OpenPop.NET to read all new messages on a timer (say every 30 seconds). In my case I stopped at just processing the messagse but it's easy enough to generate a new message to the appropriate address and copy the body over, then send the new message out on your SMTP server.
One problem I see with your setup, and maybe it's just a misunderstanding on my part, is that while you are protecting the users original email address they will continue to be reachable at 1425415125#mysite.com basically forever. If I understand the way craigslist works, each posting has a different email address, and once the posting has been deleted/removed (or shortly after) the email address stops working. This makes it so that people can't just keep bugging you on that email address. The solution to this issue is easy, just make the email address coorespond to a post id or some other id rather then the users id in the database. The lookup will be just as quick but they will have a new email address each time.
You may wish to look at mail "piping" - the ability for someone to send an email to a mail server, which then gets thrown immediately to an executable, which then forwards your mail onto the recipient (by pulling the real email address from the database based on the incoming address from the piped message).
My personal recommendation would be to check out HMailServer, which has a COM API (the admin side is written in PHP, hence the requirement for legacy interop), is free and open-source, and is very well-documented. It doesn't have mail piping built-in, but is easily extensible given the API and support for scripts which run on server-side message events
HTH,
Benjamin
I think this solution will make sense and is in use in a lot of cases. The hardest part is actually receiving the messages. You can actually handle all of this within your web app if you need to. I wrote a blog post highlighting a couple of ways to receive email in your web app. It applies mainly to Rails but the concepts should be transferable.
The way you are lookimg to do it is the way I created a similar service. I would not recommend you writing your own smtp server. Use an existing mailserver and just use polling or some event based api.
The benefits of using a 3rd party mailserver is you can use existing backup and management tools on it.
Edit: I just noticed this has beed answered here with a better explanation. Pipe incoming email to a script on Windows IIS SMTP?
I do not see any problem with your setup, infact that is correct way to do because if your scheduled application fails, the emails will still be in the catch-all email box. Only once the email has been successfully delivered to somebody, the email should be deleted. You will be able to monitor and log the activity of your own application to monitor progress and failures.
I do not recommend Piping because, if for any reason piping goes successfully but your exe crashes, you will loose the email. Tracking will be difficult. Scheduling the jobs will not be possible.
If your application is independent of mail server, it is easy to manage it and replace your mail server whenever possible. It is easy to extend.
In this you will have to use some pop reader library, and schedule your application to run frequently.
In addition to email, you may consider a pull rather than push delivery mechanism, e.g: a message center web frontend or RSS feed. I say this because deliverability problems to various ISPs can be very difficult to troubleshoot and in my experience your users will never believe it's their ISP.
I have a website written in C# and when a user does something I want to be able to send an IM message to an admin and allow the admin to respond to approve/deny the request.
I would like to use something like MSN Messenger or AIM so that the IM messages can also be sent to phones as sms.
You need to pay for the use of an SMS gateway of which there are many. Typically you buy bulk messages in advance. There are very few (if any) free gateways out there as we all know what scalping b*stards the cellular companies are. IIRC, the protocol used is SMPP.
http://en.wikipedia.org/wiki/SMS_gateway
If you weren't on a hosted site and owned your own hardware, you can plug any modern cell phone into your USB port and use the vendors software to send SMS either via a serial protocol using Hayes commands, or much more likely these days, a nice object model in java, C# or c++. Nokia have offered this for years.
I would take a look at Twilio (http://www.twilio.com/). They specialize in helping developers integrate SMS/Voice into applications.
Twilio is a web service that can be used to make and receive calls and text messages using their REST/XML API. You have to pay for the service, but it is very very to use.
For sending SMS messages out from the program, one simple approach is to use email (as long as you know the phone company of the person you're sending the message to). For example, to send a text to a telus (Canadian provider) phone, just send an email to
[10 digit phone number]#msg.telus.com.
Different phone companies have different formats, you would need to find a list of these addresses for your area. Not all of them support receiving these messages without paying a fee, but some do.
Edit: Here is a list of addresses for US carriers, try the appropriate one and see if it will work for you:
http://www.tech-recipes.com/rx/939/sms_email_cingular_nextel_sprint_tmobile_verizon_virgin/