Strange bug with CDONTS
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > Strange bug with CDONTS




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Strange bug with CDONTS  
Eric Caron


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 10:55 PM

Hi all,

I have a page that lets the users make contact groups and send an email to
them.  I have a form that lets the user enter the details of his message
including his full name and his email address.  Once this form is submitted,
I do the following to get a string for .From property of the CDONTS mail
object:

Sender = userFullName & "<" & userEmailAddress & ">"

Now I stumbled upon a bug where if the user adds a title to his name (i.e.:
"John Smith, MD"), the address for the recipient gets truncated where the
comma is and the recipents can't reply as the address is now invalid.  Is
there a way to encode any special character in the string so that it will be
mailer friendly?

Thanks in advance!







[ Post a follow-up to this message ]



    Re: Strange bug with CDONTS  
Aaron [SQL Server MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 10:55 PM

First off, have you tried using CDO.Message instead?  CDONTS has been
deprecated, and at some point you will be forced to migrate from it anyway.
http://www.aspfaq.com/2026

You might experiment with stripping out problematic characters, surrounding
the name with some kind of delimiter, or just using the address in the From
property.

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Eric Caron" <ecaron@nospam.quebecaffaires.com> wrote in message
news:e$$$TDgXEHA.2940@TK2MSFTNGP09.phx.gbl...
> Hi all,
>
> I have a page that lets the users make contact groups and send an email to
> them.  I have a form that lets the user enter the details of his message
> including his full name and his email address.  Once this form is
submitted,
> I do the following to get a string for .From property of the CDONTS mail
> object:
>
> Sender = userFullName & "<" & userEmailAddress & ">"
>
> Now I stumbled upon a bug where if the user adds a title to his name
(i.e.:
> "John Smith, MD"), the address for the recipient gets truncated where the
> comma is and the recipents can't reply as the address is now invalid.  Is
> there a way to encode any special character in the string so that it will
be
> mailer friendly?
>
> Thanks in advance!
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:26 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register