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 ]
|