Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDONTS removes the dot after www


Message #1 by "Grundy, Martin" <martin.grundy@s...> on Tue, 9 Oct 2001 09:34:18 +0100
Does anybody know why sending the following e-mail via an ASP page:



<html>

<head>

<title>CDONTS Removes the DOT</title>

</head>

<body>

<h1>CDONTS Removes the DOT</h1>

<%HTMLa = "<html>"

HTMLa = HTMLa & "<head>"

HTMLa = HTMLa & "<title>Sample HTML e-Mail</title>"

HTMLa = HTMLa & "</head>"

HTMLa = HTMLa & "<body><blockquote>"



HTMLb = "<p><font color='#000000' face='Arial' size='2'>Source: ARC
<ahref='http://www.amrresearch.com/preview/010920alert654.htm'>http://www.amrr

esearch.com/preview/010920alert654.htm</a>  </font></p>"



HTMLc = "</blockquote></body>"

HTMLc = HTMLc & "</html>" 



set myMail = Server.CreateObject("CDONTS.NewMail")

myMail.From = "martin.grundy@s..."

myMail.To = "martin.grundy@s..."

myMail.subject = "BodyFormat = 0, MailFormat = 0"

myMail.BodyFormat = 0

myMail.MailFormat = 0

myMail.Body = HTMLa & HTMLb & HTMLc

myMail.Send

set myMail = Nothing



%>

</body>

</html>



removes the dot between "www" and "amrresearch" so that the receiver of the

mail sees:



	Source: ARC http://wwwamrresearch.com/preview/010920alert654.htm



	instead of



	Source: ARC http://www.amrresearch.com/preview/010920alert654.htm

	?



This is a problem because for certain e-mail receivers, the internet link is

thus invalidated.



Note that this does not happen for other internet links sent in the same way

nor if "amrresearch" is artificially reduced to say "amr".



Martin Grundy

Technical Consultant and Webmaster

Telephone +44 (0) 1256 685314







Disclaimer:



Internet communications are not secure and therefore SSI does not accept legal responsibility for the contents of this message. 
Statements of fact are not binding unless confirmed by letter signed by an authorised signatory of SSI.  Any views and opinions
expressed are solely those of the author and do not necessarily represent those of SSI unless explicitly stated

Message #2 by "Tomm Matthis" <matthis@b...> on Tue, 9 Oct 2001 09:40:33 -0400
Have you tried running Server.HTMLEncode on the strings before sending them?



-- Tomm



> -----Original Message-----

> From: Grundy, Martin [mailto:martin.grundy@s...]

> Sent: Tuesday, October 09, 2001 4:34 AM

> To: ASP CDO

> Subject: [asp_cdo] CDONTS removes the dot after www

>

>

> Does anybody know why sending the following e-mail via an ASP page:

>

> <html>

> <head>

> <title>CDONTS Removes the DOT</title>

> </head>

> <body>

> <h1>CDONTS Removes the DOT</h1>

> <%HTMLa = "<html>"

> HTMLa = HTMLa & "<head>"

> HTMLa = HTMLa & "<title>Sample HTML e-Mail</title>"

> HTMLa = HTMLa & "</head>"

> HTMLa = HTMLa & "<body><blockquote>"

>

> HTMLb = "<p><font color='#000000' face='Arial' size='2'>Source: ARC

> <ahref='http://www.amrresearch.com/preview/010920alert654.htm'>http:

//www.amrr

> esearch.com/preview/010920alert654.htm</a>  </font></p>"

>

> HTMLc = "</blockquote></body>"

> HTMLc = HTMLc & "</html>"

>

> set myMail = Server.CreateObject("CDONTS.NewMail")

> myMail.From = "martin.grundy@s..."

> myMail.To = "martin.grundy@s..."

> myMail.subject = "BodyFormat = 0, MailFormat = 0"

> myMail.BodyFormat = 0

> myMail.MailFormat = 0

> myMail.Body = HTMLa & HTMLb & HTMLc

> myMail.Send

> set myMail = Nothing

>

> %>

> </body>

> </html>

>

> removes the dot between "www" and "amrresearch" so that the receiver of the

> mail sees:

>

>  Source: ARC http://wwwamrresearch.com/preview/010920alert654.htm

>

>  instead of

>

>  Source: ARC http://www.amrresearch.com/preview/010920alert654.htm

>  ?

>

> This is a problem because for certain e-mail receivers, the internet link is

> thus invalidated.

>

> Note that this does not happen for other internet links sent in the same way

> nor if "amrresearch" is artificially reduced to say "amr".

>

> Martin Grundy

> Technical Consultant and Webmaster

> Telephone +44 (0) 1256 685314

>

>

>

Message #3 by "Tomm Matthis" <matthis@b...> on Tue, 9 Oct 2001 09:56:34 -0400
Or even Server.URLEncode ????



<blush>



-- Tomm



> -----Original Message-----

> From: Tomm Matthis [mailto:matthis@b...]

> Sent: Tuesday, October 09, 2001 9:41 AM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDONTS removes the dot after www

>

>

> Have you tried running Server.HTMLEncode on the strings before sending them?

>

> -- Tomm

>

> > -----Original Message-----

> > From: Grundy, Martin [mailto:martin.grundy@s...]

> > Sent: Tuesday, October 09, 2001 4:34 AM

> > To: ASP CDO

> > Subject: [asp_cdo] CDONTS removes the dot after www

> >

> >

> > Does anybody know why sending the following e-mail via an ASP page:

> >

> > <html>

> > <head>

> > <title>CDONTS Removes the DOT</title>

> > </head>

> > <body>

> > <h1>CDONTS Removes the DOT</h1>

> > <%HTMLa = "<html>"

> > HTMLa = HTMLa & "<head>"

> > HTMLa = HTMLa & "<title>Sample HTML e-Mail</title>"

> > HTMLa = HTMLa & "</head>"

> > HTMLa = HTMLa & "<body><blockquote>"

> >

> > HTMLb = "<p><font color='#000000' face='Arial' size='2'>Source: ARC

> > <ahref='http://www.amrresearch.com/preview/010920alert654.htm'>http:

> //www.amrr

> > esearch.com/preview/010920alert654.htm</a>  </font></p>"

> >

> > HTMLc = "</blockquote></body>"

> > HTMLc = HTMLc & "</html>"

> >

> > set myMail = Server.CreateObject("CDONTS.NewMail")

> > myMail.From = "martin.grundy@s..."

> > myMail.To = "martin.grundy@s..."

> > myMail.subject = "BodyFormat = 0, MailFormat = 0"

> > myMail.BodyFormat = 0

> > myMail.MailFormat = 0

> > myMail.Body = HTMLa & HTMLb & HTMLc

> > myMail.Send

> > set myMail = Nothing

> >

> > %>

> > </body>

> > </html>

> >

> > removes the dot between "www" and "amrresearch" so that the

> receiver of the

> > mail sees:

> >

> >  Source: ARC http://wwwamrresearch.com/preview/010920alert654.htm

> >

> >  instead of

> >

> >  Source: ARC http://www.amrresearch.com/preview/010920alert654.htm

> >  ?

> >

> > This is a problem because for certain e-mail receivers, the

> internet link is

> > thus invalidated.

> >

> > Note that this does not happen for other internet links sent in

> the same way

> > nor if "amrresearch" is artificially reduced to say "amr".

> >

> > Martin Grundy

> > Technical Consultant and Webmaster

> > Telephone +44 (0) 1256 685314

> >

> >

> >

>

>




>

>



Message #4 by "Martin Grundy" <martin.grundy@s...> on Mon, 15 Oct 2001 15:59:03
Tomm,



Thanks for the suggestion. I have finally had a chance to try 

Server.URLencode on the http reference, but now instead of



http://wwwamrresearch.com/preview/010920alert654.htm



I get



http%3A%2F%2Fwww%2Eamrresearch%2Ecom%2Fpreview%2F010920alert654%2Ehtm



which is, I suppose, what I asked for!



(I am expecting



http://www.amrresearch.com/preview/010920alert654.htm



i.e. with a dot after www).



Any other ideas?
Message #5 by "Tomm Matthis" <matthis@b...> on Tue, 16 Oct 2001 10:06:43 -0400
Weird... can you post the code again where you're making the a link? This

shouldn't be this problematic.



-- Tomm



> -----Original Message-----

> From: Martin Grundy [mailto:martin.grundy@s...]

> Sent: Monday, October 15, 2001 3:59 PM

> To: ASP CDO

> Subject: [asp_cdo] RE: CDONTS removes the dot after www

>

>

> Tomm,

>

> Thanks for the suggestion. I have finally had a chance to try

> Server.URLencode on the http reference, but now instead of

>

> http://wwwamrresearch.com/preview/010920alert654.htm

>

> I get

>

> http%3A%2F%2Fwww%2Eamrresearch%2Ecom%2Fpreview%2F010920alert654%2Ehtm

>

> which is, I suppose, what I asked for!

>

> (I am expecting

>

> http://www.amrresearch.com/preview/010920alert654.htm

>

> i.e. with a dot after www).

>

> Any other ideas?

>




>

>




  Return to Index