Problem in HTML [modified]
-
Hi, I am generating HTML Content of mail at runtime from my asp page. Everything works fine. Except for some links and in tags. "!" creep in to the HTML tag from somewhere in the Email Message. I have no idea where this character is coming from. It is showing some links like [](! http://www.gmail.com)If i save the generated the HTML code in text file and Preview it is displaying properly. Problem occurs only when the mail is received by the client Sample code:[](http!<br mode=)
-
Hi, I am generating HTML Content of mail at runtime from my asp page. Everything works fine. Except for some links and in tags. "!" creep in to the HTML tag from somewhere in the Email Message. I have no idea where this character is coming from. It is showing some links like [](! http://www.gmail.com)If i save the generated the HTML code in text file and Preview it is displaying properly. Problem occurs only when the mail is received by the client Sample code:[](http!<br mode=)
-
Have you tried debugging and seeing where things go wrong. That should be your first step.
Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP
I copied the entire HTML Code generated and pasted in a text file and created an HTML file and everything works fine. The same thing works on my local server also. But the problem occurs only when i run the same from my Live Server using CDO.
-
I copied the entire HTML Code generated and pasted in a text file and created an HTML file and everything works fine. The same thing works on my local server also. But the problem occurs only when i run the same from my Live Server using CDO.
Well, if the characters are in the file then I can only assume that your application is doing it, so back to my original sugestion, try debugging. How HTML displays is entirely down to the browser, some are less picky than others. Have you actually examined the data in say notepad to see if the characters are there? If they are, then its your application doing it, it will not be done by magic.
Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP