Line break problems sending SMS through SMTP ftrom 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 wel开发者_运维百科l 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...
精彩评论