Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I wanted to know that are there any Free APIs available for message sending?
I actually wanted to send a message to minimum 50 people at a time via my application. Is there any Free API available for message sending?
I want to send messages to their cell Numbers.. Is there any API for sending text messages to Cell Numbers?
You can do that by sending to the email txt address, all cell phones have email addresses you can send to. Number#provider.
* AT&T – cellnumber#txt.att.net
* Verizon – cellnumber#vtext.com
* T-Mobile – cellnumber#tmomail.net
* Sprint PCS - cellnumber#messaging.sprintpcs.com
* Virgin Mobile – cellnumber#vmobl.com
* US Cellular – cellnumber#email.uscc.net
* Nextel - cellnumber#messaging.nextel.com
* Boost - cellnumber#myboostmobile.com
* Alltel – cellnumber#message.alltel.com
2 possible solutions are:
Include the addresses that you want to hide as BCc in the email
Create an email group on your mail server (containing all the individual email addresses) and use that email group address in your C# code
or do like this ...
using System.Net.Mail;
then further down your code...
MailMessage message = new MailMessage();
message.CC.Add("allemailgroup#yourdomain.com");
foreach (string recipient in recipients) // assuming recipients is a List<string>
{
message.Bcc.Add(recipient);
}
EDIT: there are three ways to send text messages to cell
Using a GSM modem: Better when one wants to implement offline
applications and a very small number of SMS go every minute, usually
few 10s.
Using web service: Better when it is an online application and a very
few number of SMS go every minute, usually few 10s.
Using endpoints given by service the provider: Better when the number
of SMS exceeds a few 100s per minute. Service provider demands a
commitment
I strongly recommend you pls go through this link for more information
of at least 100,000 SMS per month.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to write a chat application in C# dot net which has two side, a server side and client side.
The server side is unique but the client side could be more than one and data transmission should be encrypted, indeed I would implement encrypted data communication on the both sides.
As a big picture I'd ask what stuffs I need to do?
What I need is, Consider the server side creates a socket and two
clients are going to send data (for ex: client0 gives the address of
client1) then how the server should route the data to the
destination(in this case client1)?
How data encryption should be implemented and which data
cryptographic encryption should be used and how?
I think thought of data encryption might be more complicated task in this time so I'd write the project without implementing data encryption at first ?
Thanks for pretty ideas.
you can do it with TcpClient (client) and with TcpListener (server)
while the communication and data transfer can be used with Threads / async Tasks to get asynchronous and multi threaded functionality.
read this:
http://csharp.net-informations.com/communications/csharp-multi-threaded-server-socket.htm
*EDIT:
it's hard to explain without providing you at least small sample of a project and code, hence I posted the link above which I think can really help you to start off.
as for the routing from 1 client to another,
you can do it in several ways.
one way is to give each client a unique ID or maybe use a unique username (same as most chats out there) and send that unique username. you can create a string on each time you send data with delimiters and parse it when received.
for example:
this will be on the client's side:
string FullMessage = "$#1name" + "yourName" + "$#2name" + "$#1message" + "YourMessage" + "$#2message");
this will be on the server's side:
string MessageRecieved = GetSubstringByString("$#1message", "$#2message", FullMessage);
string Name = GetSubstringByString("$#1name", "$#2name", FullMessage);
public string GetSubstringByString(string startString, string endString, string fullString)
{
return fullString.Substring((fullString.IndexOf(startString) + startString.Length), (fullString.IndexOf(endString) - fullString.IndexOf(startString) - startString.Length));
}
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
How can I fetch an email, that has the subject I'm looking for in Hotmail using C#.
e.g. I want the emails(body/message) that has the word "Yahoo" in its subject.
Tried using many examples online but they weren't really clear. Thanks
You can connect to your hotmail account using the OpenPop.Net open source library. It has a lot of useful methods to communicate with a POP3 server. There is a lot of useful examples online. A simple code to connect to the POP3 server could work look this:
using(Pop3Client client = new Pop3Client())
{
client.Connect(hotmailHostName, pop3Port, useSsl);
client.Authenticate(username, password, AuthenticationMethod.UsernameAndPassword);
// And here you can use the client.GetMessage() method to get a desired message.
// You can iterate all the messages and check properties on each of them.
}
The hotmailHostName should be "pop3.live.com".
The pop3Port should be 995.
The useSsl should be true.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Does anyone know of any working gvoice api? I have found this project:
http://sourceforge.net/projects/gvoicedotnet/
but the login appears to no longer work since the url changed some months ago.
Does anyone have a good question for sending out text messages to users of my website?
I found one: SharpGoogleVoice.
https://bitbucket.org/jitbit/sharpgooglevoice/downloads
It only has text messaging support, but it works well and looks like good work.
Self-promotion: my API, SharpVoice, works/worked quite well (hasn't been tested in some time): https://github.com/descention/sharp-voice
Voice voiceConnection = new Voice(loginEmail, loginPassword);
string response = voiceConnection.SendSMS(smsToPhoneNumber, smsMsgBody);
What you need is an SMS gateway that will let you send out text messages via an API. A quick Google search yields Zeep Mobile, which lets developers send SMS text messages for free from their application.
Because it's free, there may very well be some restrictions, but if you architect your app correctly using a strategy or adapter pattern then you should be able to replace this module later on down the road with something more advanced based on the needs of your application.
The primary restriction on the free plan is that it's ad-supported. This may very well be ok for you during initial development and testing, but your production users will likely find this to be a significant problem in using your service. Zeep does have a paid plan that eliminates the ads, and there are of course countless other SMS gateways that have API's that you can use for a fee.
You can get send messages with Twilio.
An example using the C# helper library:
https://www.twilio.com/docs/libraries/csharp
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example
{
static void Main(string[] args)
{
// Find your Account Sid and Auth Token at twilio.com/user/account
string AccountSid = "YOUR_ACCOUNT_SID";
string AuthToken = "YOUR_AUTH_TOKEN";
var twilio = new TwilioRestClient(AccountSid, AuthToken);
var message = twilio.SendMessage(
"+15017250604", "+15558675309",
"Hey Kyle! Glad you asked this question.",
new string[] { "http://farm2.static.flickr.com/1075/1404618563_3ed9a44a3a.jpg" }
);
Console.WriteLine(message.Sid);
}
}
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i'm looking to implement a similar thing to stackoverflow badges. you could also equate them to achievements in games.
but am not sure how to design the database/code/tracking for them.
i get what i should do for badges such as:
Altruist × 1456 First bounty you manually awarded on another person's question
because they are a one time event, but how to handle others such as:
Analytical × 16389 Visited every section of the FAQ
Electorate × 1783 Voted on 600 questions and 25% or more of total votes are on questions
Outspoken × 188 Posted 10 messages in chat that were starred by 10 different users
etc...
how to handle them, how to keep track of progress for each, etc... is there a tutorial or something that can help me figure out a design pattern for them?
For the given examples, there are essentially two mechanisms you are going to need.
I don't know how it's done on SO, this is just a suggestion of a solution.
Let's look at 'Analytical' first. You are going to have to record by means of a simple flag when a user visits a particular area in the FAQ. Let's envisage a DB table with a field for each FAQ section and a user ID. This starts off as "N" (or 0, or however you want to represent your flag). When a user visits that area, you call code to flip that field to "Y". When all fields are "Y" then you can award that badge.
As for 'electorate' and 'Outspoken', you can retrieve this information by means of a query on your existing data, assuming the queries themseves are not too burdensome. You are going to need to consider when to run these checks. This essentially boils down to two options.
1) When the an action is performed that might get a badge awarded (i.e. visit section of FAQ, Vote on a Question, Question starred by someone else)
2) Periodically (hourly, daily, etc) run a check for all your badges against current data.
Bear in mind that badges are one-way in Stackoverflow, so if you are wanting to be equivalent then you don't have to consider logic to 'un-award' badges.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
We have a basic messaging system, with the following database design
MESSAGE
MESSAGE_COMMENT
MESSAGE_READ
USER
MESSAGE_TYPE
When the system sends a board cast message to 1 million users on the system, the message is created along with 1 million records in the MESSAGE_READ is also created for each user receiving the message and this is flagged as unread (ie ReadDate=null).
When 100 thousands user reads the board casted message, those 100 thousand users messages are flagged as being read (ReadDate=currentdate)
When the system sends out an updated board cast message, 1 million records in the MESSAGE_READ record is updated and flagged as being unread.
(same thing happens when someone replies to the message, everyone elses MESSAGE_Read is updated as unread, until the read it)
How do you make this system more efficient? Is there anyway to avoid creating/updating records to flag them as read/unread records all the time????? (I wouldn't think so??)
Here's a suggestion that come to my mind :
How about creating Message_Read instances on the fly . I mean when you post a message don't create any Message_Read for any of the users. when a user logs in the system checks to see if he has a message that has not been read (no message read exists for it) and alert the user to read them. When a user reads a message a Message_Read record is created for him preventing the system from showing the same alert again.
Whenever the status of a message is changed and you want to alert the change you can either delete its Message_Read instances or you can move them to an archive table for keeping the history if necessary , thus there's no Message_Read for that message and user will be notified to read it again.