Text Message Formatting

This forum is for eXpress++ general support.
Post Reply
Message
Author
bobvolz
Posts: 114
Joined: Sun Jan 31, 2010 11:25 am

Text Message Formatting

#1 Post by bobvolz »

I use the Alaska email functions to send text messages via email to the carriers such as Verizon, Att etc.

I test the system using my Android Samsung cell phone. The text messages are sent via the mms text sites like Verizon's VZWPIX.com.
On my phone they all look fine and are very readable. I am sending straight text with no HTML or PRE nodes.

I am now discovering that Apple iPhones format these messages differently than Android phones. The Apple phones treat the text messages as attachments
and when opened the font / text size is too small to read.

Does anyone have a sure fire way to format the messages prior to sending that would insure readability? For example should I encapsulate the message in HTML nodes
or <pre> nodes? Should I use HTML at all? I switched from the standard SMS sites like Verizon.net to VZWPIX.com to be able to send more than 155 characters.

Any help would be appreciated.

Bob Volz

bobvolz
Posts: 114
Joined: Sun Jan 31, 2010 11:25 am

Re: Text Message Formatting Issue Fixed

#2 Post by bobvolz »

After several attempts at a fix the fix was to change the message type from 'text\html' to ' text\plain' when sending as a text message.

Now it looks fine on both iPhones and Androids.

Does anyone else out there use text messaging via xBase++? I'm very surprised no one responded to this
question.

Bob Volz

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Text Message Formatting

#3 Post by Tom »

Hi, Bob.

We provide text messaging from our applications using three or four systems. It's almost the same technique everywhere - a REST with rather simple parameters. No problems at all.

Sending and formatting mails is a little more complicated.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

reganc
Posts: 257
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: Text Message Formatting

#4 Post by reganc »

Bob,

We also use a few text messaging services but ours are also all REST API based.

As Tom said it does make things easier because you just follow the documentation and supply text using only the formatting they tell you. They then deal with the output via SMS and their developer support is usually quite good if you do have any issues.
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Text Message Formatting

#5 Post by Tom »

Most providers (Verizon aswell) have a REST API to send short messages. In most of the cases, the authentication is done using the header parameters, and the message itself and the recipient(s) are added as normal parameters. We do this with Xb2.Net, but it's almost the same with the http-functions in Xbase++ 2.0. Most of those API also allow to check the message status (delivery).
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

bobvolz
Posts: 114
Joined: Sun Jan 31, 2010 11:25 am

Re: Text Message Formatting

#6 Post by bobvolz »

Thanks to all for the info. We do not use any outside service other than running it through SMTP@ionos.com. My code simply sends a string of text via SMTP Server (@ionos.com) to the persons
cell phone number @vzwpics.com or Att.net etc. No REST involved. I would like to make this better. I have xb2net as well. Perhaps one of you can point me in the right
direction to set up a direct REST to carriers like Verizon and TMobile.

Sending emails is done the same way via SMTP@ionos.com except the message type I use is text/html when sending as an email rather than text/plain.
I also encapsulate the email text string with <pre> text </pre>. This seems to work OK

Any help would be appreciated. I would like to make this bullet proof.

Thanks

Bob Volz

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Text Message Formatting

#7 Post by rdonnay »

I have tried several text message services and haven't had any problems.
Why would you want to set the content-type to text/html anyway, when text messages are only plain text?
The eXpress train is coming - and it has more cars.

bobvolz
Posts: 114
Joined: Sun Jan 31, 2010 11:25 am

Re: Text Message Formatting

#8 Post by bobvolz »

I was using the same message type for both text messages and emails.
I still send emails as text/html but text messages I use message type text/plain.

Oddly enough the text message works on Android phones using either text/html or text/plain.
When using text/html, Iphones display the text messages as attachments and when opening them the font is too small to read.

What services do you use to send text messages from within an application?

Bob Volz

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Text Message Formatting

#9 Post by rdonnay »

What services do you use to send text messages from within an application?
We tried several services over the years.

I recall using EZTEXTING, but that was never pursued because they would only send out texts occasionally.
We also used text by email, but that turned out to be a boondoggle because you had to know the carrier of each recipient.

The latest method is a REST service created by the same guys who are writing the mobile app for the taxi system.
It seems to work fine with httpClient() even though there is nothing in the code that sets the content-type.
The eXpress train is coming - and it has more cars.

bobvolz
Posts: 114
Joined: Sun Jan 31, 2010 11:25 am

Re: Text Message Formatting

#10 Post by bobvolz »

Hi Roger and All;
I have been using the email method for several years. I solved the 'carrier' issue by using the API
for Real_Validation.com Carrier Lookup. I do a post containing the cell number and they return the carrier name.
My hard coded program then assigns the correct text email address based on the return carrier name. Verizon = VZWPIX.com etc.
I have at least 10 carriers in the code already.

It is dirt cheap and I buy 5000 lookups at a time for like $50. The issue I had was the content type on some phones did not
like text/html. It works fine now for what we use it for. Most of our texts are one way notifications anyway but I believe if a
person responds to a text message it comes back to the senders email address.
I will verify that.
Happy Fathers Day!

Bob Volz

Post Reply