CDONTS issue (SMS)

Discussion in 'ASP General' started by James, May 25, 2005.

  1. James

    James Guest

    I'm setting up an ASP page that will take a cell phone number/carrier and
    e-mail some info as a text message to a client's cell phone. I have the
    e-mail addresses for the major cell phone carriers. The problem is, it
    seems that certain carriers interpret the HTML BR tag differently. If I use
    BR, it shows up "properly" on a Cingular phone, but doesn't break at all on
    a Verizon phone. Is there a way I can handle this within CDONTS or is there
    some other method I can use? Would vbCrLf work?

    Any help would be great,
    James
     
    James, May 25, 2005
    #1
    1. Advertising

  2. I send text mail messages via email all the time.
    I have been using CDODYS with no trouble.
    http://www.powerasp.com/content/new/sending_email_cdosys.asp

    trick is send the email as a plain text email... dont send it as html and do
    not use html tags
    use real line breaks for spaces when you build the email body...

    then it will look great on anyones phone

    also remeber there is a 110 char limit on the body of cell phone text
    messages (or something like that)

    "James" <> wrote in message
    news:...
    > I'm setting up an ASP page that will take a cell phone number/carrier and
    > e-mail some info as a text message to a client's cell phone. I have the
    > e-mail addresses for the major cell phone carriers. The problem is, it
    > seems that certain carriers interpret the HTML BR tag differently. If I
    > use
    > BR, it shows up "properly" on a Cingular phone, but doesn't break at all
    > on
    > a Verizon phone. Is there a way I can handle this within CDONTS or is
    > there
    > some other method I can use? Would vbCrLf work?
    >
    > Any help would be great,
    > James
    >
    >
     
    Kyle Peterson, May 25, 2005
    #2
    1. Advertising

  3. Use plain text e-mail.

    Also, what server OS are you running? NT4? If 2000 or 2003, instead of
    using CDONTS, use CDOSYS.
    http://www.aspfaq.com/show.asp?id=2026

    '......
    cdoObject.TextBody = "Hi," & vbCrLf & "I'm on a new line."
    '......

    Ray at work

    "James" <> wrote in message
    news:...
    > I'm setting up an ASP page that will take a cell phone number/carrier and
    > e-mail some info as a text message to a client's cell phone. I have the
    > e-mail addresses for the major cell phone carriers. The problem is, it
    > seems that certain carriers interpret the HTML BR tag differently. If I

    use
    > BR, it shows up "properly" on a Cingular phone, but doesn't break at all

    on
    > a Verizon phone. Is there a way I can handle this within CDONTS or is

    there
    > some other method I can use? Would vbCrLf work?
    >
    > Any help would be great,
    > James
    >
    >
     
    Ray Costanzo [MVP], May 25, 2005
    #3
  4. and vbCrLf does work fine for the line breaks.. that is what I have been
    using


    "James" <> wrote in message
    news:...
    > I'm setting up an ASP page that will take a cell phone number/carrier and
    > e-mail some info as a text message to a client's cell phone. I have the
    > e-mail addresses for the major cell phone carriers. The problem is, it
    > seems that certain carriers interpret the HTML BR tag differently. If I
    > use
    > BR, it shows up "properly" on a Cingular phone, but doesn't break at all
    > on
    > a Verizon phone. Is there a way I can handle this within CDONTS or is
    > there
    > some other method I can use? Would vbCrLf work?
    >
    > Any help would be great,
    > James
    >
    >
     
    Kyle Peterson, May 25, 2005
    #4
  5. James

    James Guest

    Is there a standard maximum size? I believe for Verizon it's 160
    characters. Not sure about other providers. I'll definitely need to cap it
    somehow, just not sure what standard to use.

    "Kyle Peterson" <> wrote in message
    news:...
    > I send text mail messages via email all the time.
    > I have been using CDODYS with no trouble.
    > http://www.powerasp.com/content/new/sending_email_cdosys.asp
    >
    > trick is send the email as a plain text email... dont send it as html and

    do
    > not use html tags
    > use real line breaks for spaces when you build the email body...
    >
    > then it will look great on anyones phone
    >
    > also remeber there is a 110 char limit on the body of cell phone text
    > messages (or something like that)
    >
    > "James" <> wrote in message
    > news:...
    > > I'm setting up an ASP page that will take a cell phone number/carrier

    and
    > > e-mail some info as a text message to a client's cell phone. I have the
    > > e-mail addresses for the major cell phone carriers. The problem is, it
    > > seems that certain carriers interpret the HTML BR tag differently. If I
    > > use
    > > BR, it shows up "properly" on a Cingular phone, but doesn't break at all
    > > on
    > > a Verizon phone. Is there a way I can handle this within CDONTS or is
    > > there
    > > some other method I can use? Would vbCrLf work?
    > >
    > > Any help would be great,
    > > James
    > >
    > >

    >
    >
     
    James, May 25, 2005
    #5
  6. James

    James Guest

    Set smsMail = Server.CreateObject("CDONTS.NewMail")
    smsMail.Subject = "New Order"
    smsMail.From = ""
    smsMail.To = ""

    smsBody = smsBody & fileRS("ClientCode") & vbCrLf
    smsBody = smsBody & fileRS("FormType")

    This still isn't giving me line breaks on a Verizon Wireless phone. Any
    thoughts?


    "Kyle Peterson" <> wrote in message
    news:...
    > and vbCrLf does work fine for the line breaks.. that is what I have been
    > using
    >
    >
    > "James" <> wrote in message
    > news:...
    > > I'm setting up an ASP page that will take a cell phone number/carrier

    and
    > > e-mail some info as a text message to a client's cell phone. I have the
    > > e-mail addresses for the major cell phone carriers. The problem is, it
    > > seems that certain carriers interpret the HTML BR tag differently. If I
    > > use
    > > BR, it shows up "properly" on a Cingular phone, but doesn't break at all
    > > on
    > > a Verizon phone. Is there a way I can handle this within CDONTS or is
    > > there
    > > some other method I can use? Would vbCrLf work?
    > >
    > > Any help would be great,
    > > James
    > >
    > >

    >
    >
     
    James, May 25, 2005
    #6
  7. looks I was using vbCr actually
    try that and if that does not work try two in row for troubleshooting sake

    here is some of my code

    ' Here we create a body for the version going to the cell phone
    strBody2 = strBody2 & "From " & ContactUs_Name & ":" & vbCr
    strBody2 = strBody2 & ContactUs_Body



    ' send message to cell phone as well
    Set ObjSendMail = CreateObject("CDO.Message")

    ObjSendMail.Configuration.Fields.Item
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the
    message using the network (SMTP over the network).
    ObjSendMail.Configuration.Fields.Item
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpserver
    ObjSendMail.Configuration.Fields.Item
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    ObjSendMail.Configuration.Fields.Item
    ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use
    SSL for the connection (True or False)
    ObjSendMail.Configuration.Fields.Item
    ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") =
    60

    ObjSendMail.Configuration.Fields.Update

    ObjSendMail.To = ""

    ObjSendMail.Subject = "WebSite: " & ContactUs_Subject
    ObjSendMail.From = ContactUs_Email

    ObjSendMail.TextBody = strBody2
    ObjSendMail.Send
    Set ObjSendMail = Nothing



    "James" <> wrote in message
    news:...
    > Set smsMail = Server.CreateObject("CDONTS.NewMail")
    > smsMail.Subject = "New Order"
    > smsMail.From = ""
    > smsMail.To = ""
    >
    > smsBody = smsBody & fileRS("ClientCode") & vbCrLf
    > smsBody = smsBody & fileRS("FormType")
    >
    > This still isn't giving me line breaks on a Verizon Wireless phone. Any
    > thoughts?
    >
    >
    > "Kyle Peterson" <> wrote in message
    > news:...
    >> and vbCrLf does work fine for the line breaks.. that is what I have been
    >> using
    >>
    >>
    >> "James" <> wrote in message
    >> news:...
    >> > I'm setting up an ASP page that will take a cell phone number/carrier

    > and
    >> > e-mail some info as a text message to a client's cell phone. I have
    >> > the
    >> > e-mail addresses for the major cell phone carriers. The problem is, it
    >> > seems that certain carriers interpret the HTML BR tag differently. If
    >> > I
    >> > use
    >> > BR, it shows up "properly" on a Cingular phone, but doesn't break at
    >> > all
    >> > on
    >> > a Verizon phone. Is there a way I can handle this within CDONTS or is
    >> > there
    >> > some other method I can use? Would vbCrLf work?
    >> >
    >> > Any help would be great,
    >> > James
    >> >
    >> >

    >>
    >>

    >
    >
     
    Kyle Peterson, May 25, 2005
    #7
  8. James

    James Guest

    I replaced with double vbCr's. Still no luck on Verizon Wireless.

    "Kyle Peterson" <> wrote in message
    news:...
    > looks I was using vbCr actually
    > try that and if that does not work try two in row for troubleshooting sake
    >
    > here is some of my code
    >
    > ' Here we create a body for the version going to the cell phone
    > strBody2 = strBody2 & "From " & ContactUs_Name & ":" & vbCr
    > strBody2 = strBody2 & ContactUs_Body
    >
    >
    >
    > ' send message to cell phone as well
    > Set ObjSendMail = CreateObject("CDO.Message")
    >
    > ObjSendMail.Configuration.Fields.Item
    > ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the
    > message using the network (SMTP over the network).
    > ObjSendMail.Configuration.Fields.Item
    > ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpserver
    > ObjSendMail.Configuration.Fields.Item
    > ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    > ObjSendMail.Configuration.Fields.Item
    > ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use
    > SSL for the connection (True or False)
    > ObjSendMail.Configuration.Fields.Item
    > ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") =
    > 60
    >
    > ObjSendMail.Configuration.Fields.Update
    >
    > ObjSendMail.To = ""
    >
    > ObjSendMail.Subject = "WebSite: " & ContactUs_Subject
    > ObjSendMail.From = ContactUs_Email
    >
    > ObjSendMail.TextBody = strBody2
    > ObjSendMail.Send
    > Set ObjSendMail = Nothing
    >
    >
    >
    > "James" <> wrote in message
    > news:...
    > > Set smsMail = Server.CreateObject("CDONTS.NewMail")
    > > smsMail.Subject = "New Order"
    > > smsMail.From = ""
    > > smsMail.To = ""
    > >
    > > smsBody = smsBody & fileRS("ClientCode") & vbCrLf
    > > smsBody = smsBody & fileRS("FormType")
    > >
    > > This still isn't giving me line breaks on a Verizon Wireless phone. Any
    > > thoughts?
    > >
    > >
    > > "Kyle Peterson" <> wrote in message
    > > news:...
    > >> and vbCrLf does work fine for the line breaks.. that is what I have

    been
    > >> using
    > >>
    > >>
    > >> "James" <> wrote in message
    > >> news:...
    > >> > I'm setting up an ASP page that will take a cell phone number/carrier

    > > and
    > >> > e-mail some info as a text message to a client's cell phone. I have
    > >> > the
    > >> > e-mail addresses for the major cell phone carriers. The problem is,

    it
    > >> > seems that certain carriers interpret the HTML BR tag differently.

    If
    > >> > I
    > >> > use
    > >> > BR, it shows up "properly" on a Cingular phone, but doesn't break at
    > >> > all
    > >> > on
    > >> > a Verizon phone. Is there a way I can handle this within CDONTS or

    is
    > >> > there
    > >> > some other method I can use? Would vbCrLf work?
    > >> >
    > >> > Any help would be great,
    > >> > James
    > >> >
    > >> >
    > >>
    > >>

    > >
    > >

    >
    >
     
    James, May 26, 2005
    #8
  9. dont know what to tell you .. works fine for me


    "James" <> wrote in message
    news:%...
    >I replaced with double vbCr's. Still no luck on Verizon Wireless.
    >
    > "Kyle Peterson" <> wrote in message
    > news:...
    >> looks I was using vbCr actually
    >> try that and if that does not work try two in row for troubleshooting
    >> sake
    >>
    >> here is some of my code
    >>
    >> ' Here we create a body for the version going to the cell phone
    >> strBody2 = strBody2 & "From " & ContactUs_Name & ":" & vbCr
    >> strBody2 = strBody2 & ContactUs_Body
    >>
    >>
    >>
    >> ' send message to cell phone as well
    >> Set ObjSendMail = CreateObject("CDO.Message")
    >>
    >> ObjSendMail.Configuration.Fields.Item
    >> ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send
    >> the
    >> message using the network (SMTP over the network).
    >> ObjSendMail.Configuration.Fields.Item
    >> ("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
    >> smtpserver
    >> ObjSendMail.Configuration.Fields.Item
    >> ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    >> ObjSendMail.Configuration.Fields.Item
    >> ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
    >> 'Use
    >> SSL for the connection (True or False)
    >> ObjSendMail.Configuration.Fields.Item
    >> ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
    >> =
    >> 60
    >>
    >> ObjSendMail.Configuration.Fields.Update
    >>
    >> ObjSendMail.To = ""
    >>
    >> ObjSendMail.Subject = "WebSite: " & ContactUs_Subject
    >> ObjSendMail.From = ContactUs_Email
    >>
    >> ObjSendMail.TextBody = strBody2
    >> ObjSendMail.Send
    >> Set ObjSendMail = Nothing
    >>
    >>
    >>
    >> "James" <> wrote in message
    >> news:...
    >> > Set smsMail = Server.CreateObject("CDONTS.NewMail")
    >> > smsMail.Subject = "New Order"
    >> > smsMail.From = ""
    >> > smsMail.To = ""
    >> >
    >> > smsBody = smsBody & fileRS("ClientCode") & vbCrLf
    >> > smsBody = smsBody & fileRS("FormType")
    >> >
    >> > This still isn't giving me line breaks on a Verizon Wireless phone.
    >> > Any
    >> > thoughts?
    >> >
    >> >
    >> > "Kyle Peterson" <> wrote in message
    >> > news:...
    >> >> and vbCrLf does work fine for the line breaks.. that is what I have

    > been
    >> >> using
    >> >>
    >> >>
    >> >> "James" <> wrote in message
    >> >> news:...
    >> >> > I'm setting up an ASP page that will take a cell phone
    >> >> > number/carrier
    >> > and
    >> >> > e-mail some info as a text message to a client's cell phone. I have
    >> >> > the
    >> >> > e-mail addresses for the major cell phone carriers. The problem is,

    > it
    >> >> > seems that certain carriers interpret the HTML BR tag differently.

    > If
    >> >> > I
    >> >> > use
    >> >> > BR, it shows up "properly" on a Cingular phone, but doesn't break at
    >> >> > all
    >> >> > on
    >> >> > a Verizon phone. Is there a way I can handle this within CDONTS or

    > is
    >> >> > there
    >> >> > some other method I can use? Would vbCrLf work?
    >> >> >
    >> >> > Any help would be great,
    >> >> > James
    >> >> >
    >> >> >
    >> >>
    >> >>
    >> >
    >> >

    >>
    >>

    >
    >
     
    Kyle Peterson, May 26, 2005
    #9
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John
    Replies:
    0
    Views:
    1,150
  2. John
    Replies:
    0
    Views:
    1,113
  3. Great Job
    Replies:
    0
    Views:
    443
    Great Job
    Feb 9, 2008
  4. freesms
    Replies:
    0
    Views:
    395
    freesms
    May 11, 2008
  5. freesms
    Replies:
    0
    Views:
    370
    freesms
    May 11, 2008
Loading...

Share This Page