Line break problems sending SMS through SMTP ftrom VB.NET - vb.net

I wrote a VB.NET application to send notifications by SMS using an SMTP gateway (mobilenumber#mobileprovider.com).
The message includes line breaks and display well under most providers but not all.
For some providers, the message will display in one line with line breaks showing as "0D0A" which just won't work for me.
Is therea solution to this problem?
Using an SMS agregator is out of the question for my solution.
Yes, I did that. Turned out to be carrier specific.
Yet another problem i am having is specific to the phone model (one specific user receive the messages well on his old razor, changed to a new motorola phone with the same carrier and now receives an empty message).
Any ideas ?

This is neither vb.net or smtp problem.
It sure looks like it is mobile provider specific. Try checking your (mail message) encoding - have you tried pure ASCII?
If I'm not mistaken 0D0A is UTF-8 for line break...

Related

.NET Reading windows security event log and expand replacement strings

Running on Windows 7 and Server 2012, I have a VB.NET app that uses the System.Diagnostics.EventLog collection of log entries. When I retrieve one particular Security event log entry's Message property I have a bunch of text that looks like "%%2048" instead of something like "Account Enabled". See the snippet below:
User Account Control:
%%2048
From what I have discovered, this may be a "replacement string" that is a kind of place holder for another string. This is new to me and I would like to know how to translate these codes into their final value. When I use the Event Viewer application the final text ("Account Enabled") is visible instead of the numeric equivalent so I know that the translation is possible.
I have seen some posts that talk about using a different class (EventLogRecord) but I have not seen enough that helps me. Can anyone provide an example of how to get a properly formatted event log entry message?
I wound up trying out the EventLogRecord class. Using the FormatDescription method gave me the properly formatted event message body I was hoping for. It just took quite a bit of trial and error to figure out how to use this class as well as how to format a very basic EventLogQuery string (I was trying to avoid using a query string). The only examples I saw of a query string were very complex (to me) and I just wanted a plain old select all records with no filtering. Fortunately, it only took a couple of tries to stumble upon the right brief syntax.
From what I can tell, the old method worked fine for Win XP and Server 2003 (the OS's that the application had been running on). I am now porting it to Windows 7/Server 2012 and apparently the OS has started using the placeholders in the message body in the newer OS's. The EventLogRecord is specifically for these newer OS versions and as such has the features you need to format the message properly.

Is it possible to write an equivalent of SMSSecure for Windows Phone?

Is there an API for any version of Windows Phone that allows an application to sniff incoming SMS messages and transparently send ones, replacing the built-in SMS application with one that supports encryption like an Android's SMSSecure does?
You can't override basic apps on Windows Phone. You can't modify Contacts, Photos, Messages, Calendar...
If you want to send a SMS message you can use these lines of code:
Windows.ApplicationModel.Chat.ChatMessage msg = new Windows.ApplicationModel.Chat.ChatMessage();
msg.Body = "Hello d33tah. Nice to see you on stackoverflow!";
msg.Recipients.Add("10086");
msg.Recipients.Add("10010");
await Windows.ApplicationModel.Chat.ChatMessageManager.ShowComposeSmsMessageAsync(msg);
You can read this article in order to get more information.

What does "Predicate Mismatch for View"

I am writing a iOS client for a an existing product that uses a legacy SOAP webservice. I got the proper URL to send my SOAP/XML messages too and even have some samples. However, none of them seem to work...
I always get a 404 error with the following error text "Predicate mismatch for View"
I am using an ASIFormDataRequest for the actual request and apending the data (SOAP XML in this case) via [someFormRequest appenData:myData].
I am flat out of ideas here and am wondering what, if anything I am doing wrong. Or should I ping one of the back end guys? Could this error be a result of something on the server side?
This is an error message spit out by the pyramid web framework when attempting to access a URL without supplying all of the required parameters. You definitely want to double check that the URL you are using has all of the required params (headers, query string options, request body, etc) and if you're convinced that what you are sending is correct then but your backend guys because it's definitely a miscommunication or a bug between the two of you.

What is RACRoute in Mainframe?

What is RACRoute in Mainframe? While checking th event viewer I get an error "RACRoute AUTH failed" while trying to transfer a file to a Mainframe system. Can this be explained?
RACROUTE is a rather large topic. The simplest answer is that you are probably not authorized by RACF to perform the action you are attempting. If there is an error message identifier (RACF messages begin with ICF followed by a 3 digit number and then a letter) you might have some luck looking that up in the references I've provided. There is likely an ICH message in the mainframe SYSLOG or OPERLOG that corresponds to what you are seeing in your event log.
RACROUTE is the basic macro for authorisation checks via the SAF interface. (IBM's RACF and (I presume) Computer Associates' ACF2 and Top Secret security products respond to authorisation requests made this way.)

POP3 connection string for livemail or gmail?

I have a third party application that requires a 'POP 3 connection string'.
I'd never heard of such a thing but apparently it looks something like this :
Line 314; connection string: {pop3.live.com:995/pop3/ssl}INBOX
or
{outlook.XXXXXXXX.net:993/imap/ssl/novalidate-cert}INBOX
The problem is I can't seem to create a connection string for some either Live mail or Gmail that works.
The application - (which is trying to connect to the POP3 account to process email bounces) - just gives an error.
I just cant seem to find ANY documentation anywhere about POP 3 connection strings. I assume it must be some kind of standard.
The tech support for the product in question said "Ask Microsoft for the connection string for Windows Live mail". I don't think its worth the effort trying to ask - but hoped someone here could shed some light on the issue.
Perhaps a POP3 connection testing tool would be useful too?
About the "POP 3 connection strings" part, maybe this RFC can help you : RFC 2384 - POP URL Scheme :
A POP URL is of the general form:
pop://<user>;auth=<auth>#<host>:<port>
About the URL for gmail... Not that simple ; maybe the code example in [this article][2] can help ; there is a comment in the code that says :
/*
* Access Gmail POP account
*/
/*
$message_file='pop3://'.$user.':'.$password.'#pop.gmail.com:995/1?tls=1&debug=1&html_debug=1';
*/
With a bit of luck, maybe something like this could work in your application too ?